Skip to content
docs

Approval

Defined in: core/dist/index-QWdcwE6y.d.ts:807

One live approval the account granted.

amount: bigint | null

Defined in: core/dist/index-QWdcwE6y.d.ts:819

Allowance in base units; null for operator approvals and delegations.


chainId: string | number

Defined in: core/dist/index-QWdcwE6y.d.ts:813

Chain it lives on.


optional expiration?: number

Defined in: core/dist/index-QWdcwE6y.d.ts:825

Unix seconds; Permit2 and authz only.


optional grantedAt?: object

Defined in: core/dist/index-QWdcwE6y.d.ts:827

Where the approval was granted, when the source knows.

optional block?: number

optional txHash?: string


id: string

Defined in: core/dist/index-QWdcwE6y.d.ts:809

Deterministic key: chainId:standard:token:spender[:tokenId].


risks: ApprovalRisk[]

Defined in: core/dist/index-QWdcwE6y.d.ts:832

Every risk that applies; empty when none.


spender: string

Defined in: core/dist/index-QWdcwE6y.d.ts:817

Who may spend: the spender, operator or delegate.


optional spenderLabel?: object

Defined in: core/dist/index-QWdcwE6y.d.ts:834

Known name of the spender, when a label source has one.

name: string

optional url?: string


standard: ApprovalStandard

Defined in: core/dist/index-QWdcwE6y.d.ts:811

Which kind of approval.


token: string

Defined in: core/dist/index-QWdcwE6y.d.ts:815

Token contract (or mint); for eip7702 the account itself.


optional tokenId?: string

Defined in: core/dist/index-QWdcwE6y.d.ts:823

NFT id, for a per-token approval.


unlimited: boolean

Defined in: core/dist/index-QWdcwE6y.d.ts:821

The allowance is effectively unbounded.