1.0.1 • Published 4 years ago
oportal-sdk v1.0.1
OPortal SDK
CrossOut
export const crossOut = async (
library: JsonRpcProvider,
currentChainID: number,
account: string,
tokenAddress: string,
targetChainID: number,
to: string,
amount: string
): Promise<TransactionReceipt> {}library: Wallet provider
currentChainID: Current wallet chain id
account: User account
tokenAddress: Token address(only support USDT)
targetChainID: Destination chain id
to: Destination chain address
amount: USDT amount(should be multiplied by 10 ** decimals)
targetChainID: Current wallet chain id