Indexer API
Getting Started
The TON Indexer API provides a powerful way to access indexed blockchain data from the TON network. By storing blockchain data in PostgreSQL, this API allows for efficient queries and retrieval of historical information.
Returns first and last blocks information, can be used as a start point for blockchain search process
Successful Response
Not Found
GET /api/v3/masterchainInfo HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Accept: */*
{
"last": {
"workchain": 1,
"shard": "text",
"seqno": 1,
"root_hash": "text",
"file_hash": "text",
"global_id": 1,
"version": 1,
"after_merge": true,
"before_split": true,
"after_split": true,
"want_merge": true,
"want_split": true,
"key_block": true,
"vert_seqno_incr": true,
"flags": 1,
"gen_utime": "text",
"start_lt": "text",
"end_lt": "text",
"validator_list_hash_short": 1,
"gen_catchain_seqno": 1,
"min_ref_mc_seqno": 1,
"prev_key_block_seqno": 1,
"vert_seqno": 1,
"master_ref_seqno": 1,
"rand_seed": "text",
"created_by": "text",
"tx_count": 1,
"masterchain_block_ref": {
"workchain": 1,
"shard": "text",
"seqno": 1
},
"prev_blocks": [
{
"workchain": 1,
"shard": "text",
"seqno": 1
}
]
},
"first": {
"workchain": 1,
"shard": "text",
"seqno": 1,
"root_hash": "text",
"file_hash": "text",
"global_id": 1,
"version": 1,
"after_merge": true,
"before_split": true,
"after_split": true,
"want_merge": true,
"want_split": true,
"key_block": true,
"vert_seqno_incr": true,
"flags": 1,
"gen_utime": "text",
"start_lt": "text",
"end_lt": "text",
"validator_list_hash_short": 1,
"gen_catchain_seqno": 1,
"min_ref_mc_seqno": 1,
"prev_key_block_seqno": 1,
"vert_seqno": 1,
"master_ref_seqno": 1,
"rand_seed": "text",
"created_by": "text",
"tx_count": 1,
"masterchain_block_ref": {
"workchain": 1,
"shard": "text",
"seqno": 1
},
"prev_blocks": [
{
"workchain": 1,
"shard": "text",
"seqno": 1
}
]
}
}
Returns blocks by specified filters.
Block workchain.
Block shard id. Must be sent with workchain. Example: 8000000000000000
Block seqno. Must be sent with workchain and shard.
Query blocks with generation UTC timestamp after given timestamp.
Query blocks with generation UTC timestamp before given timestamp
Query blocks with lt >= start_lt
Query blocks with lt <= end_lt
Limit number of queried rows. Use with offset to batch read.
128
Skip first N rows. Use with limit to batch read.
0
Sort results by UTC timestamp.
desc
Possible values: Successful Response
Validation Error
GET /api/v3/blocks HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Accept: */*
{
"blocks": [
{
"workchain": 1,
"shard": "text",
"seqno": 1,
"root_hash": "text",
"file_hash": "text",
"global_id": 1,
"version": 1,
"after_merge": true,
"before_split": true,
"after_split": true,
"want_merge": true,
"want_split": true,
"key_block": true,
"vert_seqno_incr": true,
"flags": 1,
"gen_utime": "text",
"start_lt": "text",
"end_lt": "text",
"validator_list_hash_short": 1,
"gen_catchain_seqno": 1,
"min_ref_mc_seqno": 1,
"prev_key_block_seqno": 1,
"vert_seqno": 1,
"master_ref_seqno": 1,
"rand_seed": "text",
"created_by": "text",
"tx_count": 1,
"masterchain_block_ref": {
"workchain": 1,
"shard": "text",
"seqno": 1
},
"prev_blocks": [
{
"workchain": 1,
"shard": "text",
"seqno": 1
}
]
}
]
}
Returns one masterchain block (with seqno equal to argument) and some number of shard blocks (with masterchain_block_ref.seqno equal to argument)
Masterchain block seqno
Successful Response
Not Found
Validation Error
GET /api/v3/masterchainBlockShardState?seqno=1 HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Accept: */*
{
"blocks": [
{
"workchain": 1,
"shard": "text",
"seqno": 1,
"root_hash": "text",
"file_hash": "text",
"global_id": 1,
"version": 1,
"after_merge": true,
"before_split": true,
"after_split": true,
"want_merge": true,
"want_split": true,
"key_block": true,
"vert_seqno_incr": true,
"flags": 1,
"gen_utime": "text",
"start_lt": "text",
"end_lt": "text",
"validator_list_hash_short": 1,
"gen_catchain_seqno": 1,
"min_ref_mc_seqno": 1,
"prev_key_block_seqno": 1,
"vert_seqno": 1,
"master_ref_seqno": 1,
"rand_seed": "text",
"created_by": "text",
"tx_count": 1,
"masterchain_block_ref": {
"workchain": 1,
"shard": "text",
"seqno": 1
},
"prev_blocks": [
{
"workchain": 1,
"shard": "text",
"seqno": 1
}
]
}
]
}
Generates and returns a user-friendly address book for a given contract address list.
List of addresses in any form. Max list size: 1024
Successful Response
Validation Error
GET /api/v3/addressBook?address=text HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Accept: */*
{
"ANY_ADDITIONAL_PROPERTY": {
"user_friendly": "text"
}
}
Returns all workchain blocks, that appeared after previous masterchain block.
Note: this method is not equivalent with /api/v2/shards.
Masterchain block seqno
Successful Response
Validation Error
GET /api/v3/masterchainBlockShards?seqno=1 HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Accept: */*
{
"blocks": [
{
"workchain": 1,
"shard": "text",
"seqno": 1,
"root_hash": "text",
"file_hash": "text",
"global_id": 1,
"version": 1,
"after_merge": true,
"before_split": true,
"after_split": true,
"want_merge": true,
"want_split": true,
"key_block": true,
"vert_seqno_incr": true,
"flags": 1,
"gen_utime": "text",
"start_lt": "text",
"end_lt": "text",
"validator_list_hash_short": 1,
"gen_catchain_seqno": 1,
"min_ref_mc_seqno": 1,
"prev_key_block_seqno": 1,
"vert_seqno": 1,
"master_ref_seqno": 1,
"rand_seed": "text",
"created_by": "text",
"tx_count": 1,
"masterchain_block_ref": {
"workchain": 1,
"shard": "text",
"seqno": 1
},
"prev_blocks": [
{
"workchain": 1,
"shard": "text",
"seqno": 1
}
]
}
]
}
Returns transactions by specified filters.
Block workchain.
Block shard id. Must be sent with workchain. Example: 8000000000000000
Block seqno. Must be sent with workchain and shard. Must be sent in hex form.
List of account addresses to get transactions. Can be sent in hex, base64 or base64url form.
Exclude transactions on specified account addresses
Transaction hash. Acceptable in hex, base64 and base64url forms.
Transaction lt.
Query transactions with generation UTC timestamp after given timestamp.
Query transactions with generation UTC timestamp before given timestamp
Query transactions with lt >= start_lt
Query transactions with lt <= end_lt
Limit number of queried rows. Use with offset to batch read.
128
Skip first N rows. Use with limit to batch read.
0
Sort transactions by lt.
desc
Possible values: Successful Response
Validation Error
GET /api/v3/transactions HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Accept: */*
{
"transactions": [
{
"account": "text",
"hash": "text",
"lt": "text",
"now": 1,
"orig_status": "uninit",
"end_status": "uninit",
"total_fees": "text",
"prev_trans_hash": "text",
"prev_trans_lt": "text",
"description": null,
"block_ref": {
"workchain": 1,
"shard": "text",
"seqno": 1
},
"in_msg": {
"hash": "text",
"source": "text",
"destination": "text",
"value": "text",
"fwd_fee": "text",
"ihr_fee": "text",
"created_lt": "text",
"created_at": "text",
"opcode": "text",
"ihr_disabled": true,
"bounce": true,
"bounced": true,
"import_fee": "text",
"message_content": {
"hash": "text",
"body": "text",
"decoded": {
"type": "text_comment",
"comment": "text"
}
},
"init_state": {
"hash": "text",
"body": "text"
}
},
"out_msgs": [
{
"hash": "text",
"source": "text",
"destination": "text",
"value": "text",
"fwd_fee": "text",
"ihr_fee": "text",
"created_lt": "text",
"created_at": "text",
"opcode": "text",
"ihr_disabled": true,
"bounce": true,
"bounced": true,
"import_fee": "text",
"message_content": {
"hash": "text",
"body": "text",
"decoded": {
"type": "text_comment",
"comment": "text"
}
},
"init_state": {
"hash": "text",
"body": "text"
}
}
],
"account_state_before": {
"hash": "text",
"balance": "text",
"account_status": "uninit",
"frozen_hash": "text",
"code_hash": "text",
"data_hash": "text"
},
"account_state_after": {
"hash": "text",
"balance": "text",
"account_status": "uninit",
"frozen_hash": "text",
"code_hash": "text",
"data_hash": "text"
},
"mc_block_seqno": 1
}
],
"address_book": {
"ANY_ADDITIONAL_PROPERTY": {
"user_friendly": "text"
}
}
}
Returns transactions from masterchain block and from all shards.
Masterchain block seqno
Limit number of queried rows. Use with offset to batch read.
128
Skip first N rows. Use with limit to batch read.
0
Sort transactions by lt.
desc
Possible values: Successful Response
Validation Error
GET /api/v3/transactionsByMasterchainBlock?seqno=1 HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Accept: */*
{
"transactions": [
{
"account": "text",
"hash": "text",
"lt": "text",
"now": 1,
"orig_status": "uninit",
"end_status": "uninit",
"total_fees": "text",
"prev_trans_hash": "text",
"prev_trans_lt": "text",
"description": null,
"block_ref": {
"workchain": 1,
"shard": "text",
"seqno": 1
},
"in_msg": {
"hash": "text",
"source": "text",
"destination": "text",
"value": "text",
"fwd_fee": "text",
"ihr_fee": "text",
"created_lt": "text",
"created_at": "text",
"opcode": "text",
"ihr_disabled": true,
"bounce": true,
"bounced": true,
"import_fee": "text",
"message_content": {
"hash": "text",
"body": "text",
"decoded": {
"type": "text_comment",
"comment": "text"
}
},
"init_state": {
"hash": "text",
"body": "text"
}
},
"out_msgs": [
{
"hash": "text",
"source": "text",
"destination": "text",
"value": "text",
"fwd_fee": "text",
"ihr_fee": "text",
"created_lt": "text",
"created_at": "text",
"opcode": "text",
"ihr_disabled": true,
"bounce": true,
"bounced": true,
"import_fee": "text",
"message_content": {
"hash": "text",
"body": "text",
"decoded": {
"type": "text_comment",
"comment": "text"
}
},
"init_state": {
"hash": "text",
"body": "text"
}
}
],
"account_state_before": {
"hash": "text",
"balance": "text",
"account_status": "uninit",
"frozen_hash": "text",
"code_hash": "text",
"data_hash": "text"
},
"account_state_after": {
"hash": "text",
"balance": "text",
"account_status": "uninit",
"frozen_hash": "text",
"code_hash": "text",
"data_hash": "text"
},
"mc_block_seqno": 1
}
],
"address_book": {
"ANY_ADDITIONAL_PROPERTY": {
"user_friendly": "text"
}
}
}
Returns transactions whose inbound/outbound message has the specified hash. This endpoint returns list of Transaction objects since collisions of message hashes can occur.
Message direction.
Message hash. Acceptable in hex, base64 and base64url forms.
Limit number of queried rows. Use with offset to batch read.
128
Skip first N rows. Use with limit to batch read.
0
Successful Response
Validation Error
GET /api/v3/transactionsByMessage?direction=in&msg_hash=text HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Accept: */*
{
"transactions": [
{
"account": "text",
"hash": "text",
"lt": "text",
"now": 1,
"orig_status": "uninit",
"end_status": "uninit",
"total_fees": "text",
"prev_trans_hash": "text",
"prev_trans_lt": "text",
"description": null,
"block_ref": {
"workchain": 1,
"shard": "text",
"seqno": 1
},
"in_msg": {
"hash": "text",
"source": "text",
"destination": "text",
"value": "text",
"fwd_fee": "text",
"ihr_fee": "text",
"created_lt": "text",
"created_at": "text",
"opcode": "text",
"ihr_disabled": true,
"bounce": true,
"bounced": true,
"import_fee": "text",
"message_content": {
"hash": "text",
"body": "text",
"decoded": {
"type": "text_comment",
"comment": "text"
}
},
"init_state": {
"hash": "text",
"body": "text"
}
},
"out_msgs": [
{
"hash": "text",
"source": "text",
"destination": "text",
"value": "text",
"fwd_fee": "text",
"ihr_fee": "text",
"created_lt": "text",
"created_at": "text",
"opcode": "text",
"ihr_disabled": true,
"bounce": true,
"bounced": true,
"import_fee": "text",
"message_content": {
"hash": "text",
"body": "text",
"decoded": {
"type": "text_comment",
"comment": "text"
}
},
"init_state": {
"hash": "text",
"body": "text"
}
}
],
"account_state_before": {
"hash": "text",
"balance": "text",
"account_status": "uninit",
"frozen_hash": "text",
"code_hash": "text",
"data_hash": "text"
},
"account_state_after": {
"hash": "text",
"balance": "text",
"account_status": "uninit",
"frozen_hash": "text",
"code_hash": "text",
"data_hash": "text"
},
"mc_block_seqno": 1
}
],
"address_book": {
"ANY_ADDITIONAL_PROPERTY": {
"user_friendly": "text"
}
}
}
Returns parent and/or children for specified transaction.
Transaction hash. Acceptable in hex, base64 and base64url forms.
Direction transactions by lt.
both
Possible values: Limit number of queried rows. Use with offset to batch read.
128
Skip first N rows. Use with limit to batch read.
0
Sort transactions by lt.
desc
Possible values: Successful Response
Validation Error
GET /api/v3/adjacentTransactions?hash=text HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Accept: */*
{
"transactions": [
{
"account": "text",
"hash": "text",
"lt": "text",
"now": 1,
"orig_status": "uninit",
"end_status": "uninit",
"total_fees": "text",
"prev_trans_hash": "text",
"prev_trans_lt": "text",
"description": null,
"block_ref": {
"workchain": 1,
"shard": "text",
"seqno": 1
},
"in_msg": {
"hash": "text",
"source": "text",
"destination": "text",
"value": "text",
"fwd_fee": "text",
"ihr_fee": "text",
"created_lt": "text",
"created_at": "text",
"opcode": "text",
"ihr_disabled": true,
"bounce": true,
"bounced": true,
"import_fee": "text",
"message_content": {
"hash": "text",
"body": "text",
"decoded": {
"type": "text_comment",
"comment": "text"
}
},
"init_state": {
"hash": "text",
"body": "text"
}
},
"out_msgs": [
{
"hash": "text",
"source": "text",
"destination": "text",
"value": "text",
"fwd_fee": "text",
"ihr_fee": "text",
"created_lt": "text",
"created_at": "text",
"opcode": "text",
"ihr_disabled": true,
"bounce": true,
"bounced": true,
"import_fee": "text",
"message_content": {
"hash": "text",
"body": "text",
"decoded": {
"type": "text_comment",
"comment": "text"
}
},
"init_state": {
"hash": "text",
"body": "text"
}
}
],
"account_state_before": {
"hash": "text",
"balance": "text",
"account_status": "uninit",
"frozen_hash": "text",
"code_hash": "text",
"data_hash": "text"
},
"account_state_after": {
"hash": "text",
"balance": "text",
"account_status": "uninit",
"frozen_hash": "text",
"code_hash": "text",
"data_hash": "text"
},
"mc_block_seqno": 1
}
],
"address_book": {
"ANY_ADDITIONAL_PROPERTY": {
"user_friendly": "text"
}
}
}
Returns messages by specified filters.
Message hash. Acceptable in hex, base64 and base64url forms.
The source account address. Can be sent in hex, base64 or base64url form. Use value null
to get external messages.
The destination account address. Can be sent in hex, base64 or base64url form. Use value null
to get log messages.
Message body hash. Acceptable in hex, base64 and base64url forms.
Limit number of queried rows. Use with offset to batch read.
128
Skip first N rows. Use with limit to batch read.
0
Successful Response
Validation Error
GET /api/v3/messages HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Accept: */*
{
"messages": [
{
"hash": "text",
"source": "text",
"destination": "text",
"value": "text",
"fwd_fee": "text",
"ihr_fee": "text",
"created_lt": "text",
"created_at": "text",
"opcode": "text",
"ihr_disabled": true,
"bounce": true,
"bounced": true,
"import_fee": "text",
"message_content": {
"hash": "text",
"body": "text",
"decoded": {
"type": "text_comment",
"comment": "text"
}
},
"init_state": {
"hash": "text",
"body": "text"
}
}
]
}
Returns NFT collections.
NFT collection address. Must be sent in hex, base64 or base64url forms.
Address of NFT collection owner. Must be sent in hex, base64 or base64url forms.
Limit number of queried rows. Use with offset to batch read.
128
Skip first N rows. Use with limit to batch read.
0
Successful Response
Validation Error
GET /api/v3/nft/collections HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Accept: */*
{
"nft_collections": [
{
"address": "text",
"owner_address": "text",
"last_transaction_lt": "text",
"next_item_index": "text",
"collection_content": null,
"code_hash": "text",
"data_hash": "text"
}
]
}
Returns NFT items.
NFT address. Must be sent in hex, base64 or base64url forms.
Address of NFT owner. Must be sent in hex, base64 or base64url forms.
NFT collection address. Must be sent in hex, base64 or base64url forms.
NFT Item index. Use it together with collection address.
Limit number of queried rows. Use with offset to batch read.
128
Skip first N rows. Use with limit to batch read.
0
Successful Response
Validation Error
GET /api/v3/nft/items HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Accept: */*
{
"nft_items": [
{
"address": "text",
"collection_address": "text",
"owner_address": "text",
"init": true,
"index": "text",
"last_transaction_lt": "text",
"code_hash": "text",
"data_hash": "text",
"content": null,
"collection": {
"address": "text",
"owner_address": "text",
"last_transaction_lt": "text",
"next_item_index": "text",
"collection_content": null,
"code_hash": "text",
"data_hash": "text"
}
}
]
}
Returns NFT transfers by specified filters.
Address of NFT owner. Must be sent in hex, base64 or base64url forms.
NFT item address. Must be sent in hex, base64 or base64url forms.
NFT collection address. Must be sent in hex, base64 or base64url forms.
Direction transactions by lt.
both
Possible values: Query transactions with generation UTC timestamp after given timestamp.
Query transactions with generation UTC timestamp before given timestamp
Query transactions with lt >= start_lt
Query transactions with lt <= end_lt
Limit number of queried rows. Use with offset to batch read.
128
Skip first N rows. Use with limit to batch read.
0
Sort transactions by lt.
desc
Possible values: Successful Response
Validation Error
GET /api/v3/nft/transfers HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Accept: */*
{
"nft_transfers": [
{
"query_id": "text",
"nft_address": "text",
"transaction_hash": "text",
"transaction_lt": "text",
"transaction_now": 1,
"old_owner": "text",
"new_owner": "text",
"response_destination": "text",
"custom_payload": "text",
"forward_amount": "text",
"forward_payload": "text"
}
]
}
Returns Jetton masters by specified filters.
Jetton Master address. Must be sent in hex, base64 or base64url forms.
Address of Jetton Master's admin. Must be sent in hex, base64 or base64url forms.
Limit number of queried rows. Use with offset to batch read.
128
Skip first N rows. Use with limit to batch read.
0
Successful Response
Validation Error
GET /api/v3/jetton/masters HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Accept: */*
{
"jetton_masters": [
{
"address": "text",
"total_supply": "text",
"mintable": true,
"admin_address": "text",
"last_transaction_lt": "text",
"jetton_wallet_code_hash": "text",
"jetton_content": null,
"code_hash": "text",
"data_hash": "text"
}
]
}
Returns Jetton wallets by specified filters.
Jetton wallet address. Must be sent in hex, base64 or base64url forms.
Address of Jetton wallet's owner. Must be sent in hex, base64 or base64url forms.
Jetton Master. Must be sent in hex, base64 or base64url forms.
Limit number of queried rows. Use with offset to batch read.
128
Skip first N rows. Use with limit to batch read.
0
Successful Response
Validation Error
GET /api/v3/jetton/wallets HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Accept: */*
{
"jetton_wallets": [
{
"address": "text",
"balance": "text",
"owner": "text",
"jetton": "text",
"last_transaction_lt": "text",
"code_hash": "text",
"data_hash": "text"
}
]
}
Returns Jetton transfers by specified filters.
Account address. Must be sent in hex, base64 or base64url forms.
Jetton wallet address. Must be sent in hex, base64 or base64url forms.
Jetton master address. Must be sent in hex, base64 or base64url forms.
Direction transactions by lt.
both
Possible values: Query transactions with generation UTC timestamp after given timestamp.
Query transactions with generation UTC timestamp before given timestamp
Query transactions with lt >= start_lt
Query transactions with lt <= end_lt
Limit number of queried rows. Use with offset to batch read.
128
Skip first N rows. Use with limit to batch read.
0
Sort transactions by lt.
desc
Possible values: Successful Response
Validation Error
GET /api/v3/jetton/transfers HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Accept: */*
{
"jetton_transfers": [
{
"query_id": "text",
"source": "text",
"destination": "text",
"amount": "text",
"source_wallet": "text",
"jetton_master": "text",
"transaction_hash": "text",
"transaction_lt": "text",
"transaction_now": 1,
"response_destination": "text",
"custom_payload": "text",
"forward_ton_amount": "text",
"forward_payload": "text"
}
]
}
Returns Jetton burns by specified filters.
Account address. Must be sent in hex, base64 or base64url forms.
Jetton wallet address. Must be sent in hex, base64 or base64url forms.
Jetton master address. Must be sent in hex, base64 or base64url forms.
Query transactions with generation UTC timestamp after given timestamp.
Query transactions with generation UTC timestamp before given timestamp
Query transactions with lt >= start_lt
Query transactions with lt <= end_lt
Limit number of queried rows. Use with offset to batch read.
128
Skip first N rows. Use with limit to batch read.
0
Sort transactions by lt.
desc
Possible values: Successful Response
Validation Error
GET /api/v3/jetton/burns HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Accept: */*
{
"jetton_burns": [
{
"query_id": "text",
"owner": "text",
"jetton_wallet": "text",
"jetton_master": "text",
"transaction_hash": "text",
"transaction_lt": "text",
"transaction_now": 1,
"amount": "text",
"response_destination": "text",
"custom_payload": "text"
}
]
}
Send external message in boc base64 format to TON network. Returns message hash in hex format.
External messages are sent from the outside to the smart contracts to make them perform certain actions. For instance, a wallet smart contract expects to receive external messages signed by the wallet's owner.
Message in boc base64 format.
Successful Response
Validation Error
POST /api/v3/message HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 76
{
"boc": "te6ccgECBQEAARUAAkWIAWTtae+KgtbrX26Bep8JSq8lFLfGOoyGR/xwdjfvpvEaHg"
}
{
"message_hash": "383E348617141E35BC25ED9CD0EDEC2A4EAF6413948BF1FB7F865CEFE8C2CD44"
}
Run get method of smart contract. Stack supports only num
, cell
and slice
types:
[
{
"type": "num",
"value": "0x12a"
},
{
"type": "cell",
"value": "te6..." // base64 encoded boc with cell
},
{
"type": "slice",
"value": "te6..." // base64 encoded boc with slice
}
]
RunGetMethod request body
Successful Response
Validation Error
POST /api/v3/runGetMethod HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 120
{
"address": "EQBSzBN6cnxDwDjn_IQXqgU8OJXUMcol9pxyL-yLkpKzYs9U",
"method": "seqno",
"stack": [
{
"type": "num",
"value": "0x12a"
}
]
}
{
"gas_used": 1,
"exit_code": 1,
"stack": [
{
"type": "cell",
"value": [
{
"type": "cell",
"value": "[Circular Reference]"
}
]
}
]
}
Get smart contract information.
Account address. Can be sent in raw or user-friendly form.
Successful Response
Validation Error
GET /api/v3/account?address=text HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Accept: */*
{
"balance": "text",
"code": "text",
"data": "text",
"last_transaction_lt": "text",
"last_transaction_hash": "text",
"frozen_hash": "text",
"status": "uninit"
}
Estimate fees required for query processing.
Body, init_code and init_data accepted in base64 encoded format.
EstimateFee request body
Successful Response
Validation Error
POST /api/v3/estimateFee HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 91
{
"address": "text",
"body": "text",
"init_code": "text",
"init_data": "text",
"ignore_chksig": true
}
{
"source_fees": {
"in_fwd_fee": 1,
"storage_fee": 1,
"gas_fee": 1,
"fwd_fee": 1
},
"destination_fees": [
{
"in_fwd_fee": 1,
"storage_fee": 1,
"gas_fee": 1,
"fwd_fee": 1
}
]
}
Get wallet smart contract information. The following wallets are supported: v1r1
, v1r2
, v1r3
, v2r1
, v2r2
, v3r1
, v3r2
, v4r1
, v4r2
.
In case the account is not a wallet error code 409 is returned.
Smart contract address. Can be sent in raw or user-friendly form.
Successful Response
Validation Error
GET /api/v3/wallet?address=text HTTP/1.1
Host:
X-API-Key: YOUR_API_KEY
Accept: */*
{
"balance": "text",
"wallet_type": "text",
"seqno": 1,
"wallet_id": 1,
"last_transaction_lt": "text",
"last_transaction_hash": "text",
"status": "uninit"
}
Last updated
Was this helpful?