erc20
ERC20 Contract Operations
Example
Section titled “Example”import * as ERC20 from '@filoz/synapse-core/erc20'Namespaces
Section titled “Namespaces”| Namespace | Description |
|---|---|
| approve | - |
| approveCall | - |
| approveSync | - |
| balance | - |
| balanceForPermit | - |
Functions
Section titled “Functions”| Function | Description |
|---|---|
| approve | Approve an ERC20 token allowance |
| approveCall | Create a call to the approve function |
| approveSync | Approve an ERC20 token allowance and wait for confirmation |
| balance | Get the balance, decimals, symbol, and allowance of an ERC20 token. |
| balanceForPermit | Get the balance, name, nonce, and version of an ERC20 token. |
| extractApproveEvent | Extracts the Approval event from transaction logs |