Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about the result of a success/fail in transaction #109

Closed
leeheejoo opened this issue Mar 13, 2020 · 1 comment
Closed

Question about the result of a success/fail in transaction #109

leeheejoo opened this issue Mar 13, 2020 · 1 comment

Comments

@leeheejoo
Copy link

In the transaction section below, can I find out what is the result of the transaction success or fail?

{
"jsonrpc": "2.0",
"id": "",
"result": {
"hash": "AB1B84C7C0B0B195941DCE9CFE1A54214B72D5DB54AD388D8B146A6B62911E8E",
"height": "7560096",
"index": 0,
"tx_result": {
"data": "eyJvcmRlcl9pZCI6IjgxM0U0OTM5RjE1NjdCMjE5NzA0RkZDMkFENERGNThCREUwMTA4NzktNDMifQ==",
"log": "Msg 0: ",
"tags": [
{
"key": "YWN0aW9u",
"value": "b3JkZXJOZXc="
}
]
},
"tx": "2wHwYl3uCmPObcBDChSBPkk58VZ7IZcE/8KtTfWL3gEIeRIrODEzRTQ5MzlGMTU2N0IyMTk3MDRGRkMyQUQ0REY1OEJERTAxMDg3OS00MxoNWkVCUkEtMTZEX0JOQiACKAEwwIQ9OJBOQAEScAom61rphyECE5vdld5ywirCorD4eFOxzKLorfnFikponHXTJjATRBoSQFmMOnTcCNgtl2aO01I6EFoq+3UsW+NNCftfMVjVXbL1RaJGYmPPgPAtEYTdUO/E2KY2omKQmmMuvt3qpCbAkrIY0uUYICo="
}
}

@chainwhisper
Copy link
Contributor

Hello, @leeheejoo
You can use this function to get transaction result: https://github.com/binance-chain/go-sdk/blob/master/client/basic/basic.go#L68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants