Approval
Defined in: core/dist/index-QWdcwE6y.d.ts:807
One live approval the account granted.
Properties
Section titled “Properties”amount
Section titled “amount”amount:
bigint|null
Defined in: core/dist/index-QWdcwE6y.d.ts:819
Allowance in base units; null for operator approvals and delegations.
chainId
Section titled “chainId”chainId:
string|number
Defined in: core/dist/index-QWdcwE6y.d.ts:813
Chain it lives on.
expiration?
Section titled “expiration?”
optionalexpiration?:number
Defined in: core/dist/index-QWdcwE6y.d.ts:825
Unix seconds; Permit2 and authz only.
grantedAt?
Section titled “grantedAt?”
optionalgrantedAt?:object
Defined in: core/dist/index-QWdcwE6y.d.ts:827
Where the approval was granted, when the source knows.
block?
Section titled “block?”
optionalblock?:number
txHash?
Section titled “txHash?”
optionaltxHash?: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
Section titled “spender”spender:
string
Defined in: core/dist/index-QWdcwE6y.d.ts:817
Who may spend: the spender, operator or delegate.
spenderLabel?
Section titled “spenderLabel?”
optionalspenderLabel?:object
Defined in: core/dist/index-QWdcwE6y.d.ts:834
Known name of the spender, when a label source has one.
name:
string
optionalurl?:string
standard
Section titled “standard”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.
tokenId?
Section titled “tokenId?”
optionaltokenId?:string
Defined in: core/dist/index-QWdcwE6y.d.ts:823
NFT id, for a per-token approval.
unlimited
Section titled “unlimited”unlimited:
boolean
Defined in: core/dist/index-QWdcwE6y.d.ts:821
The allowance is effectively unbounded.