Skip to main content

PrepareCosmosTx gRPC Method

Builds a protobuf-encoded Injective Cosmos transaction for signing.

Updated on
Sep 17, 2026

Parameters

chain_id
integer

The numeric Web3 chain ID associated with the target transaction; use 1 for Injective Mainnet.

sender_address
string

The Injective address of the transaction sender.

memo
string

The optional text memo to include in the transaction.

timeout_height
integer

The block height after which the transaction is no longer valid.

fee
object

The gas price, gas limit, and delegation preference for the transaction.

price
array

The coin amounts that define the transaction gas price.

denom
string

The denomination of the coin used to pay the gas fee.

amount
string

The decimal coin amount used for the transaction gas price.

gas
integer

The maximum amount of gas the transaction may consume.

delegate_fee
boolean

Whether the transaction must use delegated fee payment.

msgs
array

The Cosmos message JSON documents to include in the transaction, each UTF-8 encoded and represented as base64 in JSON requests.

Returns

tx
string

The prepared protobuf transaction bytes, base64-encoded in JSON responses.

sign_mode
string

The Cosmos signing mode required for the prepared transaction.

pub_key_type
string

The protobuf type URL that identifies the required public-key and signature format.

fee_payer
string

The Injective address of the account paying the transaction fee.

fee_payer_sig
string

The hex-encoded ethsecp256k1 signature produced by the fee payer.

fee_payer_pub_key
object

The type and bytes of the fee payer’s ethsecp256k1 public key.

type
string

The protobuf type URL identifying the public-key format.

key
string

The hex-encoded ethsecp256k1 public-key bytes.

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free