isDeferredAction
1 function isDeferredAction<typedData, primaryType>( 2 typedDataDefinition, 3 accountAddress, 4 ): boolean;
Defined in: account-kit/smart-contracts/src/ma-v2/utils.ts:356
Type guard to check if a TypedDataDefinition is a deferred action.
A deferred action has:
- primaryType: “DeferredAction”
- domain.verifyingContract matching the account address
Type Parameters
| Type Parameter | Default type |
|---|---|
| ‐ |
| keyof |
Parameters
| Parameter | Type | Description |
|---|---|---|
|
| The typed data to check |
|
| Account address to verify against domain.verifyingContract |
Returns
boolean
- True if the typedDataDefinition is a deferred action for this account