CKB Explorer English
  1. v2
CKB Explorer English
  • v1
    • Statistics
      • Statistic Info Charts
      • Daily Statistics
      • Block Statistics
      • Epoch Statistics
      • Statistics
      • Tip Block Number
    • Block List
      GET
    • Block by number or hash
      GET
    • Address
      GET
    • Transaction
      GET
    • Transaction List
      GET
    • UDT List
      GET
    • UDT
      GET
    • Udt Transaction List
      GET
    • Block Transaction List
      GET
    • Address Transaction List
      GET
    • Contract Transaction List
      GET
  • v2
    • NFT
      • NFT Hodlers List
      • NFT Collection List
      • NFT Collection
      • NFT Item
      • NFT Item List
      • NFT Transfer List
    • CoTA
      • Issuer of CoTA
      • CoTA NFT Class
      • Sender of CoTA NFT Item
      • Claim Status
      • Minted CoTA NFT Class by a specific issuer
      • CoTA Transaction List
    • Cell List
      GET
    • Live Cell List
      GET
    • Bit Accounts
      POST
    • Bit Accounts Copy
      POST
    • DAO Events of an address
      GET
    • Transactions referring to a specific script
      GET
    • Referring cells of a script
      GET
    • Deployed cells of a script
      GET
    • Script Info
      GET
    • Miner Versions Distribution
      GET
    • Pending Transaction List
      GET
    • Transaction Fees
      GET
  1. v2

Transaction Fees

Testing
GET
/statistics/transaction_fees
Cost of obtaining all tx
Chinese version: https://www.apifox.cn/web/project/962207

Request

Query Params
page
integer 
optional
Page number, default is 1
Example:
1
page_size
integer 
optional
How many items are displayed on each page, 10 by default
Example:
10
last_n_day
integer 
optional
Show transactions in the past few days_ Fee (last_n_days_transaction_fee_rates in the corresponding result) is 6 by default, and the maximum value is 20
Example:
6
Header Params
Accept
string 
optional
Example:
application/vnd.api+json
Content-Type
string 
optional
Example:
application/vnd.api+json

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://mainnet-api.explorer.nervos.org/api/v2/statistics/transaction_fees?page=1&page_size=10&last_n_day=6' \
--header 'Accept: application/vnd.api+json' \
--header 'Content-Type: application/vnd.api+json'

Responses

🟢200Success
application/json
Body
transaction_fee_rates
array [object {4}] 
required
id
integer 
required
timestamp
integer 
required
fee_rate
integer 
required
confirmation_time
integer 
required
pending_transaction_fee_rates
array[string]
required
last_n_days_transaction_fee_rates
array [object {2}] 
required
date
string 
required
fee_rate
number 
required
Example
{
  "transaction_fee_rates": [
    {
      "id": 17539378,
      "timestamp": 1673669693,
      "fee_rate": 0,
      "confirmation_time": 11
    },
    {
      "id": 17539377,
      "timestamp": 1673669693,
      "fee_rate": 1.1074197120708749,
      "confirmation_time": 12
    },
    {
      "id": 17539376,
      "timestamp": 1673669693,
      "fee_rate": 1.1074197120708749,
      "confirmation_time": 13
    }
  ],
  "pending_transaction_fee_rates": [
    {
      "id": 2,
      "fee_rate": 0
    },
    {
      "id": 1,
      "fee_rate": 0
    }
  ],
  "last_n_days_transaction_fee_rates": [
    {
      "date": "2023-01-14T00:00:00.000+00:00",
      "fee_rate": "0.00000008544518608636935261016627"
    },
    {
      "date": "2023-01-13T00:00:00.000+00:00",
      "fee_rate": "0.00000007191871857757579661659231"
    },
    {
      "date": "2023-01-12T00:00:00.000+00:00",
      "fee_rate": "0.00000005489535279531177736769346"
    },
    {
      "date": "2023-01-11T00:00:00.000+00:00",
      "fee_rate": "0.00000009303205754865450675405469"
    },
    {
      "date": "2023-01-10T00:00:00.000+00:00",
      "fee_rate": "0.00000031925939557464105920828024"
    },
    {
      "date": "2023-01-09T00:00:00.000+00:00",
      "fee_rate": "0.00000022412663196970118725147738"
    },
    {
      "date": "2023-01-08T00:00:00.000+00:00",
      "fee_rate": "0.00000004512429694415110836790901"
    }
  ]
}
Modified at 2023-02-27 07:23:55
Previous
Pending Transaction List
Built with