Hooks
useFees Hook
Hook for getting fees related logic.
Import
Usage
Parameters
Parameter | Type | Definition |
---|---|---|
chainId | number | Chain ID of the network to which the dApp is connected. |
config | Config | wagmi config. |
Returns
Value | Return Type | Definition |
---|---|---|
calculateActaFees | (amount: bigint, validator?: Address) => Promise<bigint> | Get the value of Actalink fees. |
getActaFeesRecipients | (validator?: Address) ⇒ Promise<{ actaFeesRecipient: Hex; paymasterFeesRecipient: Hex; }> | Get the addresses of Actalink fee receiver and Paymaster fees receiver . |
getPaymasterfees | (validator?: Address) ⇒ Promise<bigint> | Get the value of Paymaster fees. |
error | `string | null` |