Hooks
useCheckWaasFeeOptions
Hook for checking transaction fee options in Sequence WaaS
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 WaaS (Wallet as a Service) and provides functionality to:
- Check if a transaction will be sponsored
- Get available fee options for unsponsored transactions
- Retrieve fee quotes for transactions
Was this page helpful?