Transaction
The transaction API provide users the entries to interact with the transactions.
Query Transaction
Query Transaction Information
The Query Transaction Information API provides users to get the transaction information according to id.
Get transaction informantion by ID
Authorizations
Path parameters
idstringRequired
Transaction ID
Header parameters
AuthorizationstringRequired
Bearer Open_JWT
Responses
200
Transaction informantion
application/json
400
Invalid request
application/json
500
Internal Server error
application/json
599
Businesss error
application/json
get
/v1/tx/{id}GET /v1/tx/{id} HTTP/1.1
Host: api.nftrainbow.cn
Authorization: text
Accept: */*
{
"error_msg": "text",
"hash": "text",
"is_finalized": true,
"is_success": true,
"state_code": -10,
"state_msg": "text"
}Name
Meaning
Param Type
Data Type
Authorization
Bearer Token
Header
string
Name
Meaning
Param Type
Data Type
Required
id
The id of the transaction
Path
string
Name
Meaning
Type
hash
The hash of the transaction
string
state_code
The code of the transaction state
integer
state_msg
The msg of the state
string
is_finalized
Whether the transaction is finalized
boolean
is_success
Whether the transaction is successful
boolean
error_msg
The msg of the error during executing
string
{
"hash": "0xd7b1403ff021df36b98bece9eacdb3cab7cc10c5ff76dfb0f885bc08b362658f",
"state_code": 3,
"state_msg": "Excuted and success",
"is_finalized": true,
"is_success": true,
"error_msg": ""
}curl --request GET \
--url https://api.nftrainbow.cn/v1/tx/{id} \
--header 'Authorization: Bearer {JWT}' \
--header 'Content-Type: application/json'Last updated