Skip to content

Documentation / js-sdk-core / UnsignedTransactionRequestWithChainId

Type alias: UnsignedTransactionRequestWithChainId

UnsignedTransactionRequestWithChainId: UnsignedTransactionRequest & Object

UnsignedTransactionRequest specifies the chainId field as optional, which matches ethers, wagmi, and a bunch of other libraries.

However, we need the transaction's chainId to ensure it does price conversion, quote labeling, etc. importantly.

Note: If the developer does not set a chainId in their UnsignedTransactionRequest, we default to the embedded provider's current chainId

Type declaration

chainId

chainId: number