Skip to content

Instantly share code, notes, and snippets.

@kelonye
Last active May 5, 2020 11:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kelonye/891593360ed6ab5d647c81db43f77c21 to your computer and use it in GitHub Desktop.
Save kelonye/891593360ed6ab5d647c81db43f77c21 to your computer and use it in GitHub Desktop.
Attempt to send funds from band-cosmoshub(gaia) to band-consumer on a new account.
{
"tx":{
"msg":[
{
"type":"ibc/transfer/MsgTransfer",
"value":{
"source_port":"transfer",
"source_channel":"ybkzdbrgsp",
"dest_height":"0",
"amount":[
{
"denom":"transfer/qtwfqolgoh/uatom",
"amount":"1000000"
}
],
"sender":"cosmos1d9l4wyzt472xlzlrw4e3nt9jklvznus3yvdgxy",
"receiver":"cosmos1d9l4wyzt472xlzlrw4e3nt9jklvznus3yvdgxy"
}
}
],
"fee":{
"gas":"200000",
"amount":[
{
"denom":"uatom",
"amount":"1000000"
}
]
},
"signatures":[
{
"pub_key":{
"type":"tendermint/PubKeySecp256k1",
"value":"A9IpwOjMMchLIOf/fgq03uRpAjfDpG31VkW5LgkelEDG"
},
"signature":"AtT7oMxK1i5ot209+K1UzKmpeTVPoqj0ue3XQMJCVdgrtmPH1R+lZw6qiiNSbgbZs1UXm5Ba0+eCe/4fFl6pnQ==",
"account_number":"139",
"sequence":"0"
}
],
"memo":"Stsh0HsGCCiO9jMhPoKgQ1wPfh8uv0Zl"
},
"mode":"block"
}
@kelonye
Copy link
Author

kelonye commented May 5, 2020

Trying to broadcast the above at http://gaia-ibc-hackathon.node.bandchain.org:1317/txs with:

curl 'http://gaia-ibc-hackathon.node.bandchain.org:1317/txs' \
  --data-binary '{"tx":{"msg":[{"type":"ibc/transfer/MsgTransfer","value":{"source_port":"transfer","source_channel":"ybkzdbrgsp","dest_height":"0","amount":[{"denom":"transfer/qtwfqolgoh/uatom","amount":"1000000"}],"sender":"cosmos1d9l4wyzt472xlzlrw4e3nt9jklvznus3yvdgxy","receiver":"cosmos1d9l4wyzt472xlzlrw4e3nt9jklvznus3yvdgxy"}}],"fee":{"gas":"200000","amount":[{"denom":"uatom","amount":"1000000"}]},"signatures":[{"pub_key":{"type":"tendermint/PubKeySecp256k1","value":"A9IpwOjMMchLIOf/fgq03uRpAjfDpG31VkW5LgkelEDG"},"signature":"AtT7oMxK1i5ot209+K1UzKmpeTVPoqj0ue3XQMJCVdgrtmPH1R+lZw6qiiNSbgbZs1UXm5Ba0+eCe/4fFl6pnQ==","account_number":"139","sequence":"0"}],"memo":"Stsh0HsGCCiO9jMhPoKgQ1wPfh8uv0Zl"},"mode":"block"}' \
  --compressed

And getting this error:

{"height":"0","txhash":"A7403472834088E9845F85EA6F33E89748DA6B3E8A68E4E5AE82EB7888078431","codespace":"sdk","code":8,"raw_log":"unrecognized public key type: \u003cnil\u003e: invalid pubkey","gas_wanted":"200000","gas_used":"35317"}

@kelonye
Copy link
Author

kelonye commented May 5, 2020

The error: unrecognized public key type: \u003cnil\u003e: invalid pubkey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment