Skip to content

ERC20 Contract Operations

import * as ERC20 from '@filoz/synapse-core/erc20'
NamespaceDescription
approve-
approveCall-
approveSync-
balance-
balanceForPermit-
FunctionDescription
approveApprove an ERC20 token allowance
approveCallCreate a call to the approve function
approveSyncApprove an ERC20 token allowance and wait for confirmation
balanceGet the balance, decimals, symbol, and allowance of an ERC20 token.
balanceForPermitGet the balance, name, nonce, and version of an ERC20 token.
extractApproveEventExtracts the Approval event from transaction logs