Onchain Transaction
1.rollIn
Roll your ETH to cycle
ethersSigner: standard signer of ethers.js
fromChainId: the chain id where you initiate rollin transaction
receiveAddress: the address you will receive token on cycle
amount: its name explained itself
Standard ethers.TransactionResponse
sdk.rollIn(ethersSigner: ethers.Signer, fromChainId: number, receiveAddress: string, amount: string): Promise<ethers.TransactionResponse>;2.rollOut
Roll your ETH from cycle to other chains
ethersSigner: standard signer of ethers.js
toChainId: the chain id where you want to bridge your token
receiveAddress: the address you will receive token on cycle
amount: its name explained itself
Standard ethers.TransactionResponse
sdk.rollOut(ethersSigner: ethers.Signer, toChainId: number, receiveAddress: string, amount: string): Promise<ethers.TransactionResponse>;3.rollInMessage
Roll your message to cycle
ethersSigner: standard signer of ethers.js
fromChainId: the chain id where you initiate rollin transaction
receiveAddress: the address you will receive token on cycle
amount: its name explained itself
Standard ethers.TransactionResponse
sdk.rollInMessage(ethersSigner: ethers.Signer, fromChainId: number, receiveAddress: string, message: string): Promise<ethers.TransactionResponse>;4.rollOutMessage
Roll your message from cycle to other chains
ethersSigner: standard signer of ethers.js
toChainId: the chain id where you want to bridge your token
receiveAddress: the address you will receive token on cycle
message: its name explained itself
Standard ethers.TransactionResponse
sdk.rollOutMessage(ethersSigner: ethers.Signer, toChainId: number, receiveAddress: string, message: string): Promise<ethers.TransactionResponse>;5.claimAssets
Claim your assets after being rolled out. The assets rolled in will be claimed automatically.
ethersSigner: standard signer of ethers.js
claimInfo: the proxy object including everthing needed to claim
Standard ethers.TransactionResponse
sdk.claimAsset(ethersSigner: ethers.Signer, claimInfo: IClaimInfo): Promise<ethers.TransactionResponse>;6.claimMessage
Claim your message after being rolled out. The assets rolled in will be claimed automatically.
ethersSigner: standard signer of ethers.js
claimInfo: the proxy object including everthing needed to claim
Standard ethers.TransactionResponse
sdk.claimMessage(ethersSigner: ethers.Signer, claimInfo: IClaimInfo): Promise<ethers.TransactionResponse>;