Skip to content

Documentation / server-auth / SolanaSignTransactionRpcInputType

Type alias: SolanaSignTransactionRpcInputType<TTransactionType>

SolanaSignTransactionRpcInputType<TTransactionType>: WithOptionalIdempotencyKey<WithWalletIdOrAddressChainType<SolanaBaseTransactionRpcInputType<TTransactionType> & Object, "solana">>

The input parameters for the signTransaction RPC method to sign a Solana transaction. If you use this type directly you can optionally narrow it to just Transaction or VersionedTransaction, like SolanaSignTransactionRpcInputType<VersionedTransaction>. Otherwise, the rpc method will determine the type of transaction you passed in and return the appropriate type.

Type parameters

TTransactionType extends Transaction | VersionedTransaction = VersionedTransaction | Transaction