Returns an Ethereum Interface instance for interacting with an ERC-20 token contract.
Interface
This function creates an Interface using the standard ERC-20 ABI, enabling interactions with ERC-20 compliant tokens.
An Ethers.js Interface instance for the ERC-20 contract.
const erc20Interface = erc20ForSPLContract();erc20Interface.encodeFunctionData('transferSolana', [associatedToken.toBuffer(), fullAmount]); Copy
const erc20Interface = erc20ForSPLContract();erc20Interface.encodeFunctionData('transferSolana', [associatedToken.toBuffer(), fullAmount]);
Returns an Ethereum
Interface
instance for interacting with an ERC-20 token contract.This function creates an
Interface
using the standard ERC-20 ABI, enabling interactions with ERC-20 compliant tokens.