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

Pending Transaction List

Testing
GET
/pending_transactions
Get all pending transactions
Chinese version: https://www.apifox.cn/web/project/962207

Request

Query Params
sort
string 
optional
Format: ${sort_column}[.asc | .desc]. Specifies the sorting method. Valid sort_column values: time,fee,capacity. Example: time.desc for ascending order based on created at. Default: id.desc (sorting by id in descending order) if the parameter is empty.
Example:
time.desc
page
integer 
optional
Page number, default is 1
Example:
2
page_size
integer 
optional
How many items are displayed on each page, 10 by default
Example:
10
Header Params
Accept
string 
required
Example:
application/vnd.api+json
Content-Type
string 
required
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/pending_transactions?sort=time.desc&page=2&page_size=10' \
--header 'Accept: application/vnd.api+json' \
--header 'Content-Type: application/vnd.api+json'

Responses

🟢200Success
application/json
Body
data
array [object {21}] 
required
id
integer 
required
cell_deps
array [object {2}] 
required
tx_hash
string 
required
header_deps
array[string]
required
inputs
array [object {2}] 
required
outputs
array [object {3}] 
required
outputs_data
array[string]
required
version
integer 
required
witnesses
array[string]
required
transaction_fee
integer 
required
block_number
integer 
required
block_timestamp
integer 
required
cycles
integer 
required
tx_size
integer 
required
display_inputs
array [object {7}] 
required
display_outputs
array [object {6}] 
required
tx_status
string 
required
created_at
string 
required
updated_at
string 
required
detailed_message
null 
required
bytes
integer 
required
meta
object 
required
total
integer 
required
page_size
integer 
required
Example
{
  "data": [
    {
      "id": 2,
      "cell_deps": [
        {
          "dep_type": "dep_group",
          "out_point": {
            "index": 0,
            "tx_hash": "0x71a7ba8fc96349fea0ed3a5c47992e3b4084b031a42264a018e0072e8172e46c"
          }
        }
      ],
      "tx_hash": "0x16f8597efd8591fca36d28a2686ca81e6b6dcae55d4e3c90dfea5e6f53cadbbc",
      "header_deps": [],
      "inputs": [
        {
          "since": 0,
          "previous_output": {
            "index": 0,
            "tx_hash": "0xe1624fa2a51f167836c80707eeeabbb471e044fb1caaf6af504a56081505a9be"
          }
        }
      ],
      "outputs": [
        {
          "lock": {
            "args": "0xc4e1f110928ba12737027e358408c3d41f35e984",
            "code_hash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
            "hash_type": "type"
          },
          "type": null,
          "capacity": 3894438252755
        }
      ],
      "outputs_data": [
        "0x"
      ],
      "version": 0,
      "witnesses": [
        "0x5500000010000000550000005500000041000000b8e82693a9a3d948ca6adfb18a25e4210727425b68f70c4ff02e6eae0d5db55d273203bc8970e18b48b7516ed21e4c8ac963d5d4c4f2b63f3dc60225012f106b01"
      ],
      "transaction_fee": 1455,
      "block_number": 0,
      "block_timestamp": 0,
      "cycles": 1707100,
      "tx_size": 355,
      "display_inputs": [
        {
          "capacity": 3894438254210,
          "cell_info": {
            "data": "0x",
            "lock": {
              "args": "0xee1107949b859e16e6789609741405c5e416c6a2",
              "code_hash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
              "hash_type": "type"
            }
          },
          "cell_type": "normal",
          "cell_index": "0",
          "address_hash": "ckb1qyqwuyg8jjdct8skueufvzt5zszuteqkc63q4vmp2r",
          "from_cellbase": false,
          "generated_tx_hash": "0xe1624fa2a51f167836c80707eeeabbb471e044fb1caaf6af504a56081505a9be"
        }
      ],
      "display_outputs": [
        {
          "status": "live",
          "capacity": 3894438252755,
          "cell_info": {
            "data": "0x",
            "lock": {
              "args": "0xc4e1f110928ba12737027e358408c3d41f35e984",
              "code_hash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
              "hash_type": "type"
            }
          },
          "cell_type": "normal",
          "address_hash": "ckb1qyqvfc03zzfghgf8xup8udvyprpag8e4axzqes9hgq",
          "consumed_tx_hash": ""
        }
      ],
      "tx_status": "pending",
      "created_at": "2023-01-13T11:02:46.177+08:00",
      "updated_at": "2023-01-13T11:02:46.177+08:00",
      "detailed_message": null,
      "bytes": 0
    },
    {
      "id": 1,
      "cell_deps": [
        {
          "dep_type": "dep_group",
          "out_point": {
            "index": 0,
            "tx_hash": "0x71a7ba8fc96349fea0ed3a5c47992e3b4084b031a42264a018e0072e8172e46c"
          }
        }
      ],
      "tx_hash": "0x137ff082421307d6dda56625ddfdb0d963b14d5ae67ac95ed3dd24836c458541",
      "header_deps": [],
      "inputs": [
        {
          "since": 0,
          "previous_output": {
            "index": 0,
            "tx_hash": "0x218a0530bcfe58d9ae0db21fa3da4f3bfb6758ed4eb13ebc1f6a9c9f63905b22"
          }
        }
      ],
      "outputs": [
        {
          "lock": {
            "args": "0x50d918c4a00342a4057f34b11fd00f185760be81",
            "code_hash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
            "hash_type": "type"
          },
          "type": null,
          "capacity": 350526297966
        }
      ],
      "outputs_data": [
        "0x"
      ],
      "version": 0,
      "witnesses": [
        "0x5500000010000000550000005500000041000000e61ada02a83ad579c5c0863ade9157ee955461789e7f6387fb3a71128888e3c41e042cc07044165a2393992035ff46349d35a33b526feb93b5cfa0fcc725556001"
      ],
      "transaction_fee": 1455,
      "block_number": 0,
      "block_timestamp": 0,
      "cycles": 1714932,
      "tx_size": 355,
      "display_inputs": [
        {
          "capacity": 350526299421,
          "cell_info": {
            "data": "0x",
            "lock": {
              "args": "0x27f54916ba4528a57a5cb8edcb8850d17e639ec9",
              "code_hash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
              "hash_type": "type"
            }
          },
          "cell_type": "normal",
          "cell_index": "0",
          "address_hash": "ckb1qyqz0a2fz6ay22990fwt3mwt3pgdzlnrnmyswcl503",
          "from_cellbase": false,
          "generated_tx_hash": "0x218a0530bcfe58d9ae0db21fa3da4f3bfb6758ed4eb13ebc1f6a9c9f63905b22"
        }
      ],
      "display_outputs": [
        {
          "status": "live",
          "capacity": 350526297966,
          "cell_info": {
            "data": "0x",
            "lock": {
              "args": "0x50d918c4a00342a4057f34b11fd00f185760be81",
              "code_hash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
              "hash_type": "type"
            }
          },
          "cell_type": "normal",
          "address_hash": "ckb1qyq9pkgccjsqxs4yq4lnfvgl6q83s4mqh6qst5wsy9",
          "consumed_tx_hash": ""
        }
      ],
      "tx_status": "pending",
      "created_at": "2023-01-13T11:02:09.637+08:00",
      "updated_at": "2023-01-13T11:02:09.637+08:00",
      "detailed_message": null,
      "bytes": 0
    }
  ],
  "meta": {
    "total": 2,
    "page_size": 10
  }
}
Modified at 2023-07-12 02:47:55
Previous
Miner Versions Distribution
Next
Transaction Fees
Built with