cosmostation / cosmosjs

:star: CosmosJS - Cosmos JavaScript Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to Broasdcast StdTX

poojachigitey opened this issue · comments

let stdSignMsg = cosmos.newStdMsg({
msgs: [
{
type: 'cosmos-sdk/MsgSend',
value: {
amount: [
{
amount: '10',
denom: 'fmt',
},
],
from_address: ffHubAddress,
to_address: ffHubAddress,
},
},
],
chain_id: chainId,
fee: {
amount: [{
amount: '10',
denom: 'fmt',
}],
gas: '200',
},
memo: '',
account_number: {"${decoded.value.account_number}"},
sequence: {"${decoded.value.sequence}"},
});

Response:

code: 18
codespace: "sdk"
gas_used: "6408"
height: "0"
raw_log: "must contain at least one message: invalid request"
txhash: "127F087017E3D4ED59D06F536B0168224E910AB20AC07E966B9D3FB43023FB4F"

Can I know the actual stdSignMsg's json and ffHub's rest server url?

commented

I had direct conversation with you through telelgram, and I believe it is resolved, so I will close this.