Ankr Docs
Search…
getTx
Get transaction details

Example

1
// Request
2
curl -s -X POST -H 'Content-Type: application/json' --data '{"jsonrpc":"2.0","method":"getTx","params":[1,"37d55ef078dae885f1c9c17569592f2aa0123073652f99c04ff56a2cb87ce302"], "id":1234}' http://<your-app-id>.ankr.com
3
4
// Result
5
{
6
"jsonrpc": "2.0",
7
"id": "1234",
8
"result": {
9
"hash": "37d55ef078dae885f1c9c17569592f2aa0123073652f99c04ff56a2cb87ce302",
10
"type": 1,
11
"height": 37,
12
"size": 12,
13
"fee": {
14
"chainId": 1,
15
"assetId": 1,
16
"symbol": "NULS",
17
"value": 0
18
},
19
"createTime": 1568209860,
20
"remark": null,
21
"txDataHex": null,
22
"txData": {
23
"roundIndex": 1574,
24
"packageIndex": 2,
25
"agentId": "b87ce302"
26
},
27
"txDataList": null,
28
"coinFroms": [],
29
"coinTos": [],
30
"value": 0,
31
"status": 1
32
}
33
}
Copied!
Last modified 6d ago
Copy link