Hi guys ! I've had a hard time trying to make a request in order to broadcast an Osmosis transaction , i created a transaction object like that :
{
"chain_id": "osmosis-1",
"account_number": "164427",
"sequence": "0",
"fee": {
"gas": "80000",
"amount": [
{
"denom": "uosmo",
"amount": "0"
}
]
},
"msgs": [
{
"type": "cosmos-sdk/MsgSend",
"value": {
"from_address": "from",
"to_address": "to",
"amount": [
{
"denom": "uosmo",
"amount": "2000000"
}
]
}
}
],
"memo": ""
}
i've tried all of them and i get the same error message : expected 2 wire type, got 3: tx parse error
here's the complete response object :
{
"jsonrpc": "2.0",
"id": -1,
"result": {
"code": 2,
"data": "",
"log": "expected 2 wire type, got 3: tx parse error",
"codespace": "sdk",
"hash": "895B9320CC7FF7960A4E2982F493BD4390174729B4528BAC44CA08AE37C0D10A"
}
}
Does anyone know how to broadcast a transaction using the REST APIs ?? Thank you !!