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

Referring cells of a script

GET
/scripts/referring_cells
Return list of cells 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:
0x00000000000000000000000000000000000000000000000000545950455f4944
hash_type
string 
required
hash_type, such as, type|data
Example:
type
page
string 
optional
Page of query
Example:
1
page_size
string 
optional
How many dao-events are displayed per page
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/scripts/referring_cells?code_hash=0x00000000000000000000000000000000000000000000000000545950455f4944&hash_type=type&page=1&page_size=10' \
--header 'Accept: application/vnd.api+json' \
--header 'Content-Type: application/vnd.api+json'

Responses

🟢200Success
application/json
Body
message
string 
required
Example
{
    "data": {
        "id": 1,
        "code_hash": "0x00000000000000000000000000000000000000000000000000545950455f4944",
        "hash_type": "type",
        "capacity_of_deployed_cells": "10000000000000.0",
        "capacity_of_referring_cells": "126496300000000.0",
        "referring_cells": [
            {
                "id": 1,
                "capacity": "11200000000.0",
                "data": "0x6c696e6120307831386530323066366231323337613364303662373531323166323561376566613035353065346233663434663937343832326634373139303234323463313034",
                "ckb_transaction_id": 1,
                "created_at": "2022-10-13T15:53:44.123+08:00",
                "updated_at": "2022-10-13T15:53:44.123+08:00",
                "status": "live",
                "address_id": 1,
                "block_id": 1,
                "tx_hash": "0xe2fb199810d49a4d8beec56718ba2593b665db9d52299a0f9e6e75416d73ff5c",
                "cell_index": 0,
                "generated_by_id": 1,
                "consumed_by_id": null,
                "cell_type": "normal",
                "data_size": 0,
                "occupied_capacity": 0,
                "block_timestamp": 1573852190812,
                "consumed_block_timestamp": 0,
                "type_hash": null,
                "udt_amount": null,
                "dao": "0x8874337e541ea12e0000c16ff286230029bfa3320800000000710b00c0fefe06",
                "lock_script_id": 1,
                "type_script_id": null
            },
            {
                "id": 2,
                "capacity": "10000000000000.0",
                "data": "0x7f454c460201010000000000000000000200f30001000000c206010000000000400000000000000050c80000000000000100000040003800020040000c000b00010000000500000000000000000000000000010000000000000001000000000068be00000000000068be0000000000000010000000000000010000000600000000c000000000000000c001000000000000c0010000000000a807000000000000e0070000000000000010000000000000130101c43703efff2338813a2334913a2338413937071100233c113a2330213b233c31392334513923306139233c713723388137233491372330a1371a91140893070735b6973788efff3704efff3385070193070735a164b697930584cc056abe9526e826f4014681460147814793084a80730000000f00f00fa27701253ee86313053e63e3f456b70611001008138706353297130904d03a991387063532973a9881454a85c2f0bed4efa03068631c0552b7071100180893870735ba97b709f0ffbe990946ca854e85efa0b05f03bc8900d14703270c006315f750b70711001408054793870735b697930504cd6217be9526ec26f8881601468146050781479308aa81730000000f00f00fc27501252eec631a053463eab434b7041100938704351808130604d1ba973e968816efa0d07c631a054a6657930710046313f74ac675130610040802efb0e07c180893870435ba97130504d23e959387043513080002ba97930584cdbe9542e842fc268301468146014781479308da80730000000f00f00fe27701253ee8631b0528639c072d930703353704efff1808ba97930484f0be949305000226851a89efa0406d180893070935ba97930504d2be95130600022685ef40a0300366810746758145efb0c075180893070935ba97930584cb2146be952685ef40802e62666318062637071100140893070735b709efffb6973384370193070735b697138a09ce054321683e9a131783038568233804cb233004cf8816d28501468546050781479388a881730000000f00f00f833704ce01252338f4ca63036508631f0520636ff820b7061100100893870635938a09cbb297be9a93870635938989f0b2978544be992169854cba8b468b29a06316051e6366f91ed6854e852146ef406024833704cb8504a2854e853e8699c3ef404023233824cb233024cf8816d2850146a6865e878147da88730000000f00f00f833704ce01252338f4cae31a95fbefa0105837071100140893070735b709efffb6973384370193070735b697138a89ceaa8421683e9a8568233804cb233404cf8816d2850146a686054781479388a881730000000f00f00f833784ce01252338f4ca6300e508631205146362f81437071100140893070735938a09cbb697be9a93070735938989f0b697be992169468b29a0631c0510636cf910d6854e852146ef402017833704cb8504a2854e853e8699c3ef400016233824cb233424cf8816d2850146a68605478147da88730000000f00f00f833784ce01252338f4cae31ae5fa370a11001408b707efff13070a353697938507d4ba9513070a353697938787f03305f70013060002efa0005d3704efff13070a35140893070a35856c930984cf130904e33697b6978144130b0002ba993e99938a1c82716d094afd5bdaec4a85ce850146a6860d478547d688730000000f00f00fe667012521cd630345071305b0f9370311001a918330813b0334013b8334813a0339013a83398139033a0139833a8138033b0138833b8137033c0137833c8136033d01361301013c82808c162685ef40e00671b3755565bf295555bf13060002ca8513050d02efb0804719c58504e39d74f71305b0f961bf3707110014089307073537081000b6973385074193070735b697930504cf3a83be95c2e80146a6860d4781479388cc82730000000f00f00fc667012539f9e39a07f50c08130603352e96b307f6403ee493070335ae97a265930484debe94b7070800ae97130703350c082e97130604da3a96374701001307e7f52334e124374701001307a7f7233ce124834601142267a6854a85233801242330012602f33aeb3eefefa0506979c1370a1100180893070a35ba97930904d6be9993070a35ba97930604d4be962686ce854a85efa0906f8547aa84631af5080c0893070a35ae97130604cc3e961307201093071002ce868c164a853ef0efa0d04b63159506180893070a35ba97130484f03e94930500022285efa0402e027609c68c162285ef307072370711001408b707efff13070735938787f03697130600028c163305f700efa0c03c51468c1613054c00efb0a031e30305e4055581b57d5535bd795525bd2d5515bd455505
Modified at 2023-02-27 09:10:32
Previous
Transactions referring to a specific script
Next
Deployed cells of a script
Built with