Skip to main content

PrepareTx gRPC Method

Builds an EIP-712-signable payload for an Injective Web3 transaction.

Updated on
Sep 17, 2026

Parameters

chain_id
integer

The numeric Web3 chain ID used in the EIP-712 signing domain; use 1 for Injective Mainnet.

signer_address
string

The Ethereum-format address of the transaction signer.

sequence
integer

Deprecated. This value is ignored by PrepareTx.

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.

eip712_wrapper
string

The EIP-712 wrapper version to use. Accepted values are v1 and v2, case-insensitively.

Returns

data
string

The EIP-712 typed-data payload to sign with eth_signTypedData_v4.

sequence
string

The account sequence, or nonce, required to sign the prepared transaction.

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.

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