Skip to content

Instantly share code, notes, and snippets.

@mattlockyer
Created December 6, 2019 19:20
Show Gist options
  • Save mattlockyer/8441daf7e16a8631ce0b6c87d4dc6cb7 to your computer and use it in GitHub Desktop.
Save mattlockyer/8441daf7e16a8631ce0b6c87d4dc6cb7 to your computer and use it in GitHub Desktop.
Harmony Transaction Log Curl Script (testnet)
SHARD0=https://api.s0.b.hmny.io
SHARD1=https://api.s1.b.hmny.io
SHARD2=https://api.s2.b.hmny.io
#your params
SHARD=SHARD1
#example is HRC20 mint and transfer
TXID=0x039d2f87e6bdb81220e5a7490dc783ea835443f57f4e12d16d90dd0b3aa1f5af
#curl
curl -X POST $SHARD1 -H 'Accept: */*' -H 'Accept-Encoding: gzip, deflate' -H 'Cache-Control: no-cache' -H 'Connection: keep-alive' -H 'Content-Length: 162' -H 'Content-Type: application/json' -H 'Host: api.s1.b.hmny.io' -H 'Postman-Token: d5415117-657a-49f9-9100-a5b7ebc70daf,cc2f3cb9-2d10-408c-a003-d6e0822ec985' -H 'User-Agent: PostmanRuntime/7.19.0' -H 'cache-control: no-cache' -d '{
"jsonrpc":"2.0",
"method":"hmy_getTransactionReceipt",
"params":["'$TXID'"],
"id":1
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment