IApprovalsProtocol
Defined in: protocols/approvals.ts:115
Find the approvals an account granted, flag the risky ones, and revoke them.
Methods
Section titled “Methods”getApprovals()
Section titled “getApprovals()”getApprovals(
options?):Promise<ApprovalsResult>
Defined in: protocols/approvals.ts:119
Live approvals of the account, with risks and scan coverage.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Promise<ApprovalsResult>
getSupportedStandards()
Section titled “getSupportedStandards()”getSupportedStandards():
Promise<ApprovalStandard[]>
Defined in: protocols/approvals.ts:117
Approval kinds this module can find and revoke.
Returns
Section titled “Returns”Promise<ApprovalStandard[]>
quoteRevoke()
Section titled “quoteRevoke()”quoteRevoke(
approval):Promise<{fee:bigint; }>
Defined in: protocols/approvals.ts:121
Network fee 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<RevokeResult>
Defined in: protocols/approvals.ts:123
Revoke one approval.
Parameters
Section titled “Parameters”approval
Section titled “approval”Returns
Section titled “Returns”Promise<RevokeResult>
revokeAll()
Section titled “revokeAll()”revokeAll(
approvals):Promise<RevokeResult[]>
Defined in: protocols/approvals.ts:128
Revoke several, batching where the standard allows. Continues past failures; each result
carries its own error.
Parameters
Section titled “Parameters”approvals
Section titled “approvals”Approval[]
Returns
Section titled “Returns”Promise<RevokeResult[]>