Send transaction

Hi there!

I can send an ATOM via the CLI to the COSMOS-SDK. Is there any other way to send an ATOM? RPC or REST methods?

Hey Viktor,

you can inject signed transaction of any kind (Transfer, Delegate, Unbond etc. ) to the network via the Cosmos Lite Client. Have a look here. I guess post_txs is what you are looking for.

Best,

Florian from Staking Facilities

Hi Katernoir, thanks! By Cosmos Lite Client I can send ONLY signed transactionā€¦ But sign Tx are posible only in CLIā€¦

Thatā€™s not true, transactions can be signed in various ways (e.g. using the cosmos-ledger library or writing your own signing solution)
What are you trying to achieve? Maybe if we know what youā€™re trying to do, we can point you in the right direction

My goal is to install a cosmos-hub fullnode in the docker and then send commands to the docker to check the transaction history and send transactions. I tried to sign transactions through the WingsDao, but ā€œ/post_txsā€ is returned with an error. Maybe you can tell me an example of how a transaction should look like for signing and in what format to send it to ā€œ/post_txsā€?

1 Like

do you solve this problem?
i have the same issue, how do you solve this problem?
root@stage-usdt-node:/home/jim# curl ā€˜localhost:26657/broadcast_tx_commit?tx=67846a18d9c1d59b2599d2ce733ed4a0e5e62e748b2e6548a94f4129a1ec51411fa166f1b5ea063f204b44609baf3bbda10693937e2752353b1e26de164e5ecaā€™
{
ā€œjsonrpcā€: ā€œ2.0ā€,
ā€œidā€: ā€œā€,
ā€œerrorā€: {
ā€œcodeā€: -32602,
ā€œmessageā€: ā€œInvalid paramsā€,
ā€œdataā€: ā€œError converting http params to arguments: invalid character ā€˜aā€™ after top-level valueā€
}
}

Hi coolbobo!
To solve this problem I use https://github.com/cosmostation/cosmosjs for create tx, and ā€œfetchā€ to send