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

Script Info

GET
/scripts/general_info
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
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/general_info?code_hash=0x00000000000000000000000000000000000000000000000000545950455f4944&hash_type=type' \
--header 'Accept: application/vnd.api+json' \
--header 'Content-Type: application/vnd.api+json'

Responses

🟢200Success
application/json
Body
data
object 
required
id
integer 
required
code_hash
string 
required
hash_type
string 
required
script_type
string 
required
capacity_of_deployed_cells
string 
required
capacity_of_referring_cells
string 
required
count_of_transactions
integer 
required
count_of_deployed_cells
integer 
required
count_of_referring_cells
integer 
required
Example
{
  "data": {
    "id": 23837,
    "code_hash": "0x00000000000000000000000000000000000000000000000000545950455f4944",
    "hash_type": "type",
    "script_type": "TypeScript",
    "capacity_of_deployed_cells": "8702600000000.0",
    "capacity_of_referring_cells": "2300925866222555.0",
    "count_of_transactions": 2,
    "count_of_deployed_cells": 1,
    "count_of_referring_cells": 4938
  }
}
Modified at 2023-02-27 07:25:17
Previous
Deployed cells of a script
Next
Miner Versions Distribution
Built with