For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

get
/v1/tx/{id}

Get transaction informantion by ID

Authorizations
Path parameters
idstringRequired

Transaction ID

Header parameters
AuthorizationstringRequired

Bearer Open_JWT

Responses
200

Transaction informantion

application/json
error_msgstringOptional
hashstringOptional
is_finalizedbooleanOptional
is_successbooleanOptional
state_codeinteger · enumOptionalPossible values:
state_msgstringOptional
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

Last updated