ApprovalsProtocolEvmConfig
Defined in: protocol-approvals-evm/src/approvals-protocol-evm.ts:32
Properties
Section titled “Properties”batch?
Section titled “batch?”
optionalbatch?:boolean
Defined in: protocol-approvals-evm/src/approvals-protocol-evm.ts:50
The account accepts sendTransaction(tx[]) as one operation (ERC-4337 / 7702-gasless accounts). Default false.
blockRange?
Section titled “blockRange?”
optionalblockRange?:number|null
Defined in: protocol-approvals-evm/src/approvals-protocol-evm.ts:42
Pre-chunk eth_getLogs to this many blocks (QuickNode: 10 000). Default null = try the whole range, split on refusal.
cache?
Section titled “cache?”
optionalcache?:ApprovalsCache
Defined in: protocol-approvals-evm/src/approvals-protocol-evm.ts:46
Persists candidates + last scanned block so rescans are incremental.
chainId?
Section titled “chainId?”
optionalchainId?:number
Defined in: protocol-approvals-evm/src/approvals-protocol-evm.ts:36
Skips the eth_chainId round trip when known.
concurrency?
Section titled “concurrency?”
optionalconcurrency?:number
Defined in: protocol-approvals-evm/src/approvals-protocol-evm.ts:54
Parallel RPC requests for discovery and verification. Default 4.
fromBlock?
Section titled “fromBlock?”
optionalfromBlock?:number
Defined in: protocol-approvals-evm/src/approvals-protocol-evm.ts:40
Where a cold scan starts (the wallet’s creation block, ideally). Default 0.
includeDelegation?
Section titled “includeDelegation?”
optionalincludeDelegation?:boolean
Defined in: protocol-approvals-evm/src/approvals-protocol-evm.ts:52
Also report the account’s EIP-7702 delegation. Default true.
labels?
Section titled “labels?”
optionallabels?:SpenderLabelResolver
Defined in: protocol-approvals-evm/src/approvals-protocol-evm.ts:58
Spender label resolver (e.g. EtherscanLabels); failures never fail the scan.
multicall?
Section titled “multicall?”
optionalmulticall?:string|false
Defined in: protocol-approvals-evm/src/approvals-protocol-evm.ts:48
Multicall3 address, or false for single eth_calls.
provider?
Section titled “provider?”
optionalprovider?:EvmProvider|EvmProvider[]
Defined in: protocol-approvals-evm/src/approvals-protocol-evm.ts:34
RPC URL(s) or EIP-1193 provider(s); a list fails over in order. Defaults to the account’s.
retryDelay?
Section titled “retryDelay?”
optionalretryDelay?:number
Defined in: protocol-approvals-evm/src/approvals-protocol-evm.ts:56
Milliseconds between retries of a transient eth_getLogs failure. Default 300.
source?
Section titled “source?”
optionalsource?:ApprovalSource
Defined in: protocol-approvals-evm/src/approvals-protocol-evm.ts:44
A custom discovery source (an indexer); default RpcLogsSource.
tokens?
Section titled “tokens?”
optionaltokens?:ActivityTokens
Defined in: protocol-approvals-evm/src/approvals-protocol-evm.ts:38
Token labels (lowercase address → symbol / decimals) for activity titles, e.g. “Approved USDC for Permit2”.