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.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new IApprovalsProtocol():
IApprovalsProtocol
Returns
Section titled “Returns”IApprovalsProtocol
Methods
Section titled “Methods”getApprovals()
Section titled “getApprovals()”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.
Parameters
Section titled “Parameters”_options?
Section titled “_options?”Returns
Section titled “Returns”Promise<ApprovalsResult>
getSupportedStandards()
Section titled “getSupportedStandards()”getSupportedStandards():
Promise<ApprovalStandard[]>
Defined in: protocol-approvals-evm/src/approvals-protocol.ts:65
The standards this implementation can discover and revoke.
Returns
Section titled “Returns”Promise<ApprovalStandard[]>
quoteRevoke()
Section titled “quoteRevoke()”quoteRevoke(
_approval):Promise<{fee:bigint; }>
Defined in: protocol-approvals-evm/src/approvals-protocol.ts:71
Estimates the cost of revoking one approval.
Parameters
Section titled “Parameters”_approval
Section titled “_approval”Returns
Section titled “Returns”Promise<{ fee: bigint; }>
revoke()
Section titled “revoke()”revoke(
_approval):Promise<{fee:bigint;hash:string; }>
Defined in: protocol-approvals-evm/src/approvals-protocol.ts:74
Revokes one approval.
Parameters
Section titled “Parameters”_approval
Section titled “_approval”Returns
Section titled “Returns”Promise<{ fee: bigint; hash: string; }>
revokeAll()
Section titled “revokeAll()”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.
Parameters
Section titled “Parameters”_approvals
Section titled “_approvals”Approval[]
Returns
Section titled “Returns”Promise<RevokeResult[]>