Skip to content
docs

IApprovalsProtocol

Defined in: protocol-approvals-evm/src/approvals-protocol.ts:63

The approvals protocol interface — the shape a chain implementation fills.

Revokes go through the account’s own methods (approve, sendTransaction, revokeDelegation), so on an account from the kit’s Wallet.getAccount(...) they pass the wallet’s policies like any other write.

new IApprovalsProtocol(): IApprovalsProtocol

IApprovalsProtocol

getApprovals(_options?): Promise<ApprovalsResult>

Defined in: protocol-approvals-evm/src/approvals-protocol.ts:68

Finds the approvals the account has granted. A read-only account is enough.

GetApprovalsOptions

Promise<ApprovalsResult>


getSupportedStandards(): Promise<ApprovalStandard[]>

Defined in: protocol-approvals-evm/src/approvals-protocol.ts:65

The standards this implementation can discover and revoke.

Promise<ApprovalStandard[]>


quoteRevoke(_approval): Promise<{ fee: bigint; }>

Defined in: protocol-approvals-evm/src/approvals-protocol.ts:71

Estimates the cost of revoking one approval.

Approval

Promise<{ fee: bigint; }>


revoke(_approval): Promise<{ fee: bigint; hash: string; }>

Defined in: protocol-approvals-evm/src/approvals-protocol.ts:74

Revokes one approval.

Approval

Promise<{ fee: bigint; hash: string; }>


revokeAll(_approvals): Promise<RevokeResult[]>

Defined in: protocol-approvals-evm/src/approvals-protocol.ts:81

Revokes several approvals, folding what the chain lets it fold (Permit2 pairs into one lockdown, everything into one user operation on batching accounts). Never throws for a single failed item: see RevokeResult.error.

Approval[]

Promise<RevokeResult[]>