Created
December 21, 2020 08:40
-
-
Save Sajjon/88fc793615ddca0bf7333f58ebf0dbe0 to your computer and use it in GitHub Desktop.
Get status of Zilliqa transaction using command line interface and API: https://dev.zilliqa.com/docs/apis/api-transaction-get-transaction-status
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -d '{ | |
"id": "1", | |
"jsonrpc": "2.0", | |
"method": "GetTransactionStatus", | |
"params": ["<YOUR_TRANSACTION_HASH_WITHOUT_LEADING_0x_CHARS_GOES_HERE>"] | |
}' -H "Content-Type: application/json" -X POST "https://api.zilliqa.com/" | python -m json.tool |
If you are curious about what the status
numbers mean, here is the code mapping it to a status message, a code update part of the Pull Request #269 merged on 2020-12-15 (not a coder? A 'Pull Request' is like "an update of code with a 'report'").
https://dev.zilliqa.com/docs/apis/api-transaction-get-transaction-status
This will be easier to read
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to use:
<YOUR_TRANSACTION_HASH_WITHOUT_LEADING_0x_CHARS_GOES_HERE>
, thus replacing it completely, so that you do not see any<
or>
but so that you see[“
before your transaction hash and”]
immediately after - with no space in between. 💡Important: make sure to remove any leading characters”0x”
from the transaction hash!1
to3
(and2
in between?)