Encoding a tx in protobuf

Hei,

I saw that this endpoint /txs/encode allows to encode an Amino JSON tx to an Amino binary tx.

For “amino binary tx” do you mean protobuf?

The endpoint works great for MsgSend transactions but it gives this error "error": "json: cannot unmarshal array into Go value of type map[string]json.RawMessage" when trying to encode a staking/MsgDelegate tx.

What am I missing?

1 Like