-
Notifications
You must be signed in to change notification settings - Fork 118
How to decode the data in transaction? #53
Comments
example in golang
|
thanks @huangsuyu , @ruslansalikhov ! Both of yours are very helpful to me! |
hello @ruslansalikhov i am done with this issue using go language except transaction hash can you guide me what method i need to use for transaction id like var ParseAminoTx = func(w http.ResponseWriter, r * http.Request) {
} output {"message":"[{"msg":[{"inputs":[{"address":"bnb1l6dxh9kz055vs0qkdn3n43y6tez38csj4q7x5d","coins":[{"denom":"BNB","amount":35012840862}]}],"outputs":[{"address":"bnb1lc5c3paqzh55d7n7zd6dgvhaqq5905wzr849tj","coins":[{"denom":"BNB","amount":35012840862}]}]}],"signatures":[{"pub_key":[3,165,86,194,182,176,112,115,122,16,46,98,131,28,150,125,18,116,161,70,233,71,121,53,154,100,138,255,227,113,66,81,75],"signature":"P66nAeKx/671oBzc37WRnxxXCOxmIJOdCCZEEeSxiv1ualjMoI7sKDiZoTHzS6e1mpjqIa2MHYEM/Tq99+BfCQ==","account_number":27586,"sequence":77}],"memo":"","source":0,"data":null}]","status":true} |
Hello, @amjadDev |
i tired got this error |
thanks !! sorted decodetx64, err := base64.StdEncoding.DecodeString("ygHwYl3uClAqLIf6CiQKFJGTdSD0BFj1tBTSZ5YbRsGXid1wEgwKA0JOQhCAmpGy9gISJAoUNZyodQE2lvxtwuhMFhar4FgLeWESDAoDQk5CEICakbL2AhJwCibrWumHIQNW4KWAOJpv0syRzVJcbVpNgFSvcN8XSE5YZ4+fV0oLTRJAmEC1SzRLFtH+xCE/0ajwJGYaLw4AqdoMqZHVQlxc1rQHCsnkC8/qYTKKd+MZvPmhRfvp12fSRf93olACfFnLwxgzIPmDBSAC") this is working for me. |
@huangsuyu I am trying to get transaction data from data_hash "data_hash": "A7044A2430D5F4F461A59E1634F4739B1128912946424A207A73F27B7FCA1C29", what decryption should i need to use. here is my block result "block_id": { |
Hi @ruslansalikhov Do you have example in Node Js? |
Hi @amjadDev I need to get transaction hash as well using Node JS If you can guide me how to do it would be very helpful. |
Any news? I have at the same trouble with JS sdk |
please check binance javascript sdk. |
@alexspark21 if u needed I will provide Golang code in form of REST API where you can pass the hash from your js application and will receive txid. |
@blockmonk JS SDK for now not supported Transfer type, and I can't decode encoded response from RPC to human response which doing perfectly HTTP API endpoint https://dex.binance.org/api/v1/transactions-in-block/61989125 |
Hi, I noticed in the docs that the data in tx is encoded in Amino logic. Is there any handy tool or library to decode these content? Appreciate for any insights : )
The text was updated successfully, but these errors were encountered: