-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Unable to broadcast TX via tendermint or REST API #10535
Comments
Can you please post the signed tx file that you're broadcasting? |
sure:
this was generated using the cosmos SDK (with golang) as per the doc @ this message is invalid in the first place (for example it's using I even tried to build a transaction manually, same results. |
The file contents are incorrect -- it doesn't contain any messages. |
Yes, this is what i stated in the previous message. However: the fact that the error message remains the same even for empty files indicated that the error is not related to the contents of the file. I have tried to debug the issue myself but the code doesn't have enough comments and is difficult to debug without having an up-to-date documentation |
(1) It returns an error code in addition to a messsage. |
Hi Alexander, Thanks for taking some time looking into this, the lack of up-to-date documentation is frustrating and it seems that you are not reading the whole issue anyway, so I'll close this issue and "again" try examples from your official documentation @ https://docs.cosmos.network/master/run-node/txs.html#programmatically-with-go |
Summary of Bug
Tendermint response:
curl -X POST https://lcd-sentinel.cosmostation.io/txs -d testtx.json {"error":"this transaction cannot be broadcasted via legacy REST endpoints, because it does not support Amino serialization. Please either use CLI, gRPC, gRPC-gateway, or directly query the Tendermint RPC endpoint to broadcast this transaction. The new REST endpoint (via gRPC-gateway) is POST /cosmos/tx/v1beta1/txs. Please also see the REST endpoints migration guide at
REST response:
curl -X POST https://lcd-sentinel.cosmostation.io/cosmos/tx/v1beta1/txs -d testtx.json { "code": 3, "message": "invalid character 'e' in literal true (expecting 'r')", "details": [ ] }
this is the same response no matter what's inside that file (even if it's empty)
Version
sentinel-hub fa7cd3c7d5f427308d8a837a18b951482ce5c9e2 0.8.3
Steps to Reproduce
check summary
For Admin Use
The text was updated successfully, but these errors were encountered: