oportal-sdk
v1.0.1
Published
OPortal SDK
Downloads
2
Readme
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