Skip to main content
This hook will be deprecated in v6, it can only be used with Connect SDK v5.

Import

Usage

Return Type

The hook returns a function with the following signature:

Parameters

transactions

Transaction[] Array of transactions to check fee options for.

chainId

number The ID of the blockchain network where the transaction will be executed.

Return Object Properties

isSponsored

boolean Indicates whether the transaction will be sponsored (true) or requires fee payment (false).

feeOptions

FeeOption[] | undefined Available fee payment options if the transaction is not sponsored.

feeQuote

string | undefined The fee quote for the transaction if available.

Notes

This hook is specifically designed for use with Sequence and provides functionality to:
  • Check if a transaction will be sponsored
  • Get available fee options for unsponsored transactions
  • Retrieve fee quotes for transactions