Skip to content
Public Queries

Transaction Result QueryTry API

POST chain_queryInfo (Transaction Result Query)

Note:For any action that returns a txhash field, the action updates the chain. Query the action result every second until it returns to complete the API submission process.

hash transactionhash

Sliceno: metaspace number (mainmetaspace number 0)

Example Code
Request
{
"jsonrpc": "3.0",
"method": "chain_queryInfo",
"params": [
  "pubChainQuery",
  "op=queryTx&hash=0xf8af2a6966c3......&sliceno=0",
  "encryp=none"
],
"id": "1"
}
Response
{
"jsonrpc":  "3.0",
 "id":  "1",
 "result": {
  "ret":  "0",
   "err":  "",
   "content": [
    {
      "root":  "0d233ef6a3ddfacdf46",
       //worldstatus "status":  2,
       //transactionstatus:  0,
       transactionstill intransactionpool,
       1,
       transactionalreadypackagedwaitconfirm in,
       2,
       alreadyconfirmreturnexecuteresult,
       3,
       transactionfaildelete "transactionhash":  "0x414f5206c1bc79",
      //transactionhash "contractAddress":  "0x000000000000000",
      //createaddress "blockhash":  "0x0e09ff036fad9e67da6a4b",
      //blockhash "blockNumber":  35,
       //blockheight "transactionIndex":  1,
       //blocktransactionindex "return_data":  "",
       //transactionresult "from":  "0x000000000000000000000000000",
      //sender "to":  "0xb880e69da1e4bfa1e4bbbbe5889be5",
      //recipient "nonce":  0,
       //transactionindex "txtype":  2,
       //transactiontype//transactiontype 0x1normalactivity,
       0x2transferactivity,
       0x3deviceactivity(hidden,
       afterlaterenabled),
       0x4contentactivity,
       0x5platformactivity "tx_content":  "01fe01fe01fe01f",
       //transactioncontent "amount":  0,
       //transactionamount "timeval":  43 //transactiontime
    }
  ]
}

On this page