Kit
Type aliases

GetFeeForMessageApi

GetFeeForMessageApi = object

Methods

getFeeForMessage()

getFeeForMessage(message, config?): SolanaRpcResponse<GetFeeForMessageApiResponse>

Returns the fee the network will charge for a particular message

Parameters

ParameterTypeDescription
messageTransactionMessageBytesBase64A transaction message encoded as a base64 string
config?Readonly<{ commitment?: Commitment; minContextSlot?: Slot; }>-

Returns

SolanaRpcResponse<GetFeeForMessageApiResponse>

The fee that the network will charge to process the message, in Lamports, as computed at the specified blockhash.

See

https://solana.com/docs/rpc/http/getfeeformessage

On this page