Skip to content

erc20

ERC20 Contract Operations

import * as ERC20 from '@filoz/synapse-core/erc20'
Namespace Description
approve -
approveCall -
approveSync -
balance -
balanceForPermit -
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