NFTRainbow
NFTRainbow 控制台GithubWhat's an NFT?
  • NFTRainbow - NFT 彩虹桥 🌈🌉🦄
  • Tutorials
    • Mints
      • 铸造NFT快速指南
    • Interactive Flowchart
    • By Community
      • NFTRainbow 使用教程
    • Account Solutions
    • Guides
      • 控制台合约代付设置
      • 元数据管理
      • Rainbow 铸造工具简介
  • Docs
    • FAQs
    • Changelog
    • RoadMap
    • Conflux Sponsor
    • Terminology
    • Prices
  • Products
    • Conflux RPC Bridge
    • ERC-6551
    • Web3 Services
  • API Reference
    • Open-API
      • Login
      • Files
      • Metadata
      • Contract
      • Mints
      • Transfers
      • Transaction
      • NFT
      • Burns
    • Swagger-Doc
    • Postman Collection
    • SDKs
      • Go-SDK
    • Common Errors
  • ABOUT THE APIs
    • Authentication
    • Error codes
    • Quotas and rate limits
Powered by GitBook
On this page
  1. API Reference
  2. Open-API

Transaction

The transaction API provide users the entries to interact with the transactions.

PreviousTransfersNextNFT

Last updated 1 year ago

Query Transaction

Query Transaction Information

The Query Transaction Information API provides users to get the transaction information according to id.

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'

Get transaction informantion by ID

get

Get transaction informantion by ID

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
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"
}
  • Query Transaction
  • Query Transaction Information
  • GETGet transaction informantion by ID