Last active
August 17, 2017 13:16
-
-
Save bogatyy/f942f9776f39358369e98c0c69e557e3 to your computer and use it in GitHub Desktop.
Using curl to inspect transactions
This file contains hidden or 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 -X POST --data \ | |
'{"jsonrpc":"2.0","method":"eth_getTransactionByHash", \ | |
"params":["0x314e0246cfc55bc0882cbf165145c168834e99924e3ff7619ebd8290e713386d"], \ | |
"id":123}' localhost:8545 | |
{"jsonrpc":"2.0","id":123, "result":{ | |
"blockHash":"0x42ea1578c23b159186853961dfbdfcdec6b40d23d8f1d971827412bc6948386b", | |
"blockNumber":"0x3dfb88", | |
"From":"0xcaf82fcb3a0323566c0f306684376e3e66d6284b", | |
# this is the Bancor Purchase contract address | |
"To":"0x77a77eca75445841875ebb67a33d0a97dc34d924", | |
# converting hex to decimal, this is 50 gwei, making it a 2$ fee on half-million dollar transaction | |
"gasPrice":"0xba43b7400", | |
"hash":"0x314e0246cfc55bc0882cbf165145c168834e99924e3ff7619ebd8290e713386d", | |
# converting hex to decimal, this is 2*10^21, which is 2000 ETH, or half-million USD | |
"value":"0x6c6b935b8bbd400000", | |
...}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment