Equivalent to the SDK’sDocumentation Index
Fetch the complete documentation index at: https://developers.paxoslabs.com/llms.txt
Use this file to discover all available pages before exploring further.
client.permit.authorize(...) branch resolution — the v1.0.0 SDK returns 'permit' | 'approval' | 'already_approved' based on the same on-chain ERC20.allowance(owner, spender) check shown below. Direct-contract callers run the read themselves.
Contract Method
allowance(owner, spender)
Returns the amount of tokens the spender is approved to transfer on behalf of the owner.
| Parameter | Type | Description |
|---|---|---|
owner | address | The token holder’s address |
spender | address | The contract authorized to spend |
uint256 — approved amount in the token’s smallest unit
ABI
Usage
| Check | Token contract | Owner | Spender |
|---|---|---|---|
| Deposit token approval | Deposit token (e.g., USDC) | User’s address | vault.communityCodeDepositorModuleId (DistributorCodeDepositor) |
| Account share approval | BoringVault | User’s address | vault.withdrawQueueModuleId (WithdrawQueue) |
approve() first. See the Deposits or Withdrawals guides for the full flow.
Contract addresses are obtained via Account Discovery.