Overview
Once autosign is configured, you can enable and manage it in your application using theautoSign object from useInterwovenKit(). This guide covers how to
use autosign in your code.
This page assumes autosign is already configured on
InterwovenKitProvider.
See Configuration and Provider
Setup first.Accessing Autosign
TheautoSign object is available via the useInterwovenKit() hook:
Enabling Autosign
To enable autosign, call theenable() method. This opens a drawer where users
confirm the autosign setup and select an expiration duration.
The following examples show client components for enabling and disabling
autosign. You can adapt this logic to your own UI or component structure.
Example: ToggleAutosignButton
Enabling for a Specific Chain
Specify a chain ID to enable autosign for a particular chain:What Happens When Enabled
WhenautoSign.enable() is called:
1
Drawer Opens
A drawer appears asking the user to confirm autosign setup, showing which permissions will be granted.
2
Expiration Selection
The user can select an expiration duration from available defaults or use a
custom duration.
3
Wallet Derivation
InterwovenKit requests a signature from the connected wallet and derives a
dedicated AutoSign wallet for the current app origin.
4
Permission Grant
The user signs a single transaction to grant
authz and feegrant
permissions to the AutoSign wallet.5
Activation
Autosign becomes active for the specified chain and message types. The Promise resolves on success.
Sending Transactions with Autosign
Once autosign is enabled, you can send transactions without user confirmation usingsubmitTxBlock. This method signs and broadcasts transactions directly
using the AutoSign wallet when the transaction matches the configured grants.
Disabling Autosign
Users can disable autosign at any time. This revokes all grants for the selected chain and prevents further automatic signing.Checking Autosign Status
Use theisEnabledByChain property to check if autosign is active for a chain: