Skip to main content
Equivalent to SDK’s isDepositSpendApproved() and isWithdrawalSpendApproved().

Contract Method

allowance(owner, spender)

Returns the amount of tokens the spender is approved to transfer on behalf of the owner. Returns: uint256 — approved amount in the token’s smallest unit

ABI

Usage

If the returned allowance is less than the amount you intend to deposit or withdraw, you need to call approve() first. See the Deposits or Withdrawals guides for the full flow. Contract addresses are obtained via Account Discovery.