POST
https://prv.gateway.indexer.biya.io
/
injective_exchange_rpc.InjectiveExchangeRPC
/
PrepareTx
PrepareTx
curl --request POST \
  --url https://prv.gateway.indexer.biya.io/injective_exchange_rpc.InjectiveExchangeRPC/PrepareTx \
  --header 'Content-Type: application/json' \
  --data '
{
  "chain_id": 123,
  "signer_address": "<string>",
  "sequence": 123,
  "memo": "<string>",
  "timeout_height": 123,
  "fee": {},
  "msgs": [
    {}
  ],
  "eip712_wrapper": "<string>"
}
'
Generate a Web3-signable body for a Cosmos transaction.
chain_id
number
required
Chain ID (required)
signer_address
string
required
Signer address (required)
sequence
number
Sequence number (optional, deprecated)
memo
string
Transaction memo (optional)
timeout_height
number
Timeout height (optional)
fee
object
Transaction fee object (optional)
msgs
array
required
Array of base64-encoded messages (required)
eip712_wrapper
string
EIP712 wrapper (optional)

Response

{
  "data": "string",
  "sequence": "number",
  "sign_mode": "string",
  "pub_key_type": "string",
  "fee_payer": "string",
  "fee_payer_sig": "string"
}