Transactions
APIs to obtain transaction related details
Transaction type
Value
Type
Description
208
int
deploy smart contract
209
int
invoke neovm smart contract
210
int
invoke wasmvm smart contract
Description
Value
Type
Description
transfer
String
transfer
gasconsume
String
consumed gas
ontId-
String
Ont ID
claimRecord-
String
claim Record
auth
String
authorization
{"NeedStorage":true, ...}
String
If the transaction type is 208, the filed content is the description of the contract
Event Type
Value
Type
Description
0
int
others
1
int
deploy contract
2
int
gas consumed
3
int
transfer
4
int
ONT ID
5
int
claim record
6
int
authorization
1. Get latest transaction list
Url RequestField
Type
Description
count
int
number of latest transactions (count is limited between 1 and 50)
ResponseField
Type
Description
tx_hash
String
transaction hash
tx_type
int
transaction type (208/209/210)
tx_time
int
UNIX time of the transaction
block_height
int
block height
confirm_flag
int
transaction state on the blockchain, 0:failure 1:success
block_index
int
The index of transactions within a block
fee
String
fee
2. Get transaction list by page
Url RequestField
Type
Description
page_size
int
number of records in one page (limited between 1 and 20)
page_number
int
page number (atleast 1 or greater)
ResponseField
Type
Description
total
int
total transactions
tx_hash
String
transaction hash
tx_type
int
transaction type (208/209/210)
tx_time
int
UNIX time of the transaction
block_height
int
block height
confirm_flag
int
transaction state on the blockchain, 0:failure 1:success
block_index
int
The index of transactions within a block
fee
String
transaction fee
3. Get latest non-ontid transaction list
Url RequestField
Type
Description
count
int
number of latest non-ontid transactions (limited between 1 and 50)
ResponseField
Type
Description
tx_hash
String
transaction hash
tx_type
int
transaction type (209/210)
tx_time
int
UNIX time of the transaction
block_height
int
block height
confirm_flag
int
transaction state on the blockchain, 0:failure 1:success
block_index
int
The index of transactions within a block
fee
String
transaction fee
4. Get non-ontid transaction list by page
Url RequestField
Type
Description
page_size
int
number of records in one page (limited between 1 and 20)
page_number
int
page number (atleast 1 or greater)
ResponseField
Type
Description
total
int
total transactions
tx_hash
String
transaction hash
tx_type
int
transaction type (208/209/210)
tx_time
int
UNIX time of the transaction
block_height
int
block height
confirm_flag
int
transaction state on the blockchain, 0:failure 1:success
block_index
int
The index of transactions within a block
fee
String
fee
5. Get transaction detail by txhash
Url RequestField
Type
Description
tx_hash
String
transaction hash
ResponseField
Type
Description
tx_hash
String
transaction hash
tx_type
int
transaction type (208/209/210)
tx_time
int
UNIX time of the transaction
block_height
int
block height
confirm_flag
int
transaction state on the blockchain, 0:failure 1:success
block_index
int
The index of transactions within a block
fee
String
fee
description
String
transaction description for given ONT ID
event_type
int
event type reference
detail
Object
transaction detail
detail
field
detail
fieldDeploy smart contract transaction
Smart contract detail in description filed
Transfer transaction
ResponseField
Type
Description
transfers.asset_name
String
asset name
transfers.to_address
String
toaddres
transfers.from_address
String
fromaddress
transfers.amount
String
amount
transfers.description
String
transfer reference
transfers.contract_hash
String
contract hash
ONT ID transaction
ResponseField
Type
Description
ontid
String
ONT ID
description
String
transaction description for given ONT ID
6. Get transaction input data
Returns input data and contract abi (if exists) for EVM transactions. Returns input data and resolution results of responses (if can be resolved) for naive and neoVM transactions.
txHash
String
transaction hash
Example Response
Returns from the EVM:
Resolution results of native VM and neoVM transactions:
Returns for wasmVM transactions and transactions that can't be resolved:
original_view
String
original input data
abi
String
contract abi, returns when query is for EVM transactions and contract abi exists, otherwise this field is not returned
default_view
Map
default view of the corresponding page, only returns when resolution is successful
decode
List
resolution result, only returns when resolution is successful
Last updated