Documentation Index
Fetch the complete documentation index at: https://docs.cloud.coinbase.com/llms.txt
Use this file to discover all available pages before exploring further.
function waitForEvmEip7702Delegation(options: WaitForEvmEip7702DelegationOptions): Promise<
| false
| EvmEip7702DelegationOperation>;
Polls the EIP-7702 delegation operation status until it reaches COMPLETED, FAILED, or the timeout is reached.
Parameters
| Parameter | Type | Description |
|---|
options | WaitForEvmEip7702DelegationOptions | Options for the delegation operation to check and polling behavior. |
Returns
Promise<
| false
| EvmEip7702DelegationOperation>
The delegation operation on COMPLETED; false on timeout.
Throws
Error if the operation status is FAILED.
Example
const result = await waitForEvmEip7702Delegation({
delegationOperationId: 'op-123',
timeoutMs: 60_000,
});
if (result) {
console.log('Delegation completed:', result.transactionHash);
} else {
console.log('Timed out');
}