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

Transactions referring to a specific script

GET
/scripts/ckb_transactions
Return list of transactions referring to a specific script
Chinese version: https://www.apifox.cn/web/project/962207

Request

Query Params
code_hash
string 
required
code_hash of script
Example:
0x7f5a09b8bd0e85bcf2ccad96411ccba2f289748a1c16900b0635c2ed9126f288
hash_type
string 
required
hash_type, such as, type|data
Example:
type
page
string 
required
Page of query
Example:
1
page_size
string 
required
How many dao-events are displayed per page
Example:
25
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/scripts/ckb_transactions?code_hash=0x7f5a09b8bd0e85bcf2ccad96411ccba2f289748a1c16900b0635c2ed9126f288&hash_type=type&page=1&page_size=25' \
--header 'Accept: application/vnd.api+json' \
--header 'Content-Type: application/vnd.api+json'

Responses

🟢200Success
application/json
Body
status
integer 
required
error
string 
required
Example
{
  "data": {
    "id": 1,
    "code_hash": "0x00000000000000000000000000000000000000000000000000545950455f4944",
    "hash_type": "type",
    "capacity_of_deployed_cells": "10000000000000.0",
    "capacity_of_referring_cells": "126496300000000.0",
    "ckb_transactions": [
      {
        "id": 2,
        "tx_hash": "0x71a7ba8fc96349fea0ed3a5c47992e3b4084b031a42264a018e0072e8172e46c",
        "block_id": 1,
        "block_number": 0,
        "block_timestamp": 1573852190812,
        "transaction_fee": 0,
        "version": 0,
        "created_at": "2022-10-13T15:53:22.257+08:00",
        "updated_at": "2022-10-13T15:53:48.711+08:00",
        "is_cellbase": false,
        "header_deps": null,
        "cell_deps": [
          {
            "dep_type": "code",
            "out_point": {
              "index": 3,
              "tx_hash": "0xe2fb199810d49a4d8beec56718ba2593b665db9d52299a0f9e6e75416d73ff5c"
            }
          },
          {
            "dep_type": "code",
            "out_point": {
              "index": 1,
              "tx_hash": "0xe2fb199810d49a4d8beec56718ba2593b665db9d52299a0f9e6e75416d73ff5c"
            }
          }
        ],
        "witnesses": [
          "0x3ed693609d3ff7049415d33a2fff8eed581cf2790fae4785e27793330cfd55a6109b84a94494eae64217339bc9aafdf4e6453964c90e6752d96e20d127ca874901"
        ],
        "live_cell_changes": 1,
        "capacity_involved": 23400000000,
        "contained_address_ids": [
          1,
          2
        ],
        "tags": [],
        "contained_udt_ids": [],
        "dao_address_ids": [],
        "udt_address_ids": [],
        "bytes": 0,
        "tx_status": "committed"
      }
    ]
  },
  "meta": {
    "total": 1,
    "page_size": 10
  }
}
Modified at 2023-02-27 07:19:21
Previous
DAO Events of an address
Next
Referring cells of a script
Built with