UsageHooks
useGaslessTransaction
Returns
| Property | Type | Description |
|---|---|---|
sendGaslessTransaction | (params: { functionName: string; args?: unknown[]; abi?: unknown; contractAddress?: string }) => Promise<void> | Sends the meta-transaction |
isLoading | boolean | true while the transaction is being prepared or broadcast |
error | string | null | Error message, if any |
txHash | string | null | Transaction hash once broadcast |
reset | () => void | Resets the hook state |
If you need more help, explore our other articles or reach out to our support team via chat or email support@avacloud.io. All examples provided are for demonstration purposes only.
Learn More About AvaCloud | Download Case Studies | Schedule an AvaCloud Demo