transferFromAlgorand()

Create a grouped transaction to transfer tokens to the contract on Algorand

Method Parameters

client: Algodv2

Algodv2 from algosdk

tokenBridgeId: bigint

Algorand bridge contract id

bridgeId: bigint

Algorand core contract id

senderAddr: string

Sender address

assetId: int

Asset id of the token to be bridged

qty: bigint

Amount to be bridged (whole number format)

receiver: string

Receiver address in hex

chain: ChainId | ChainName

Destination chain

fee: bigint

Arbiter fee

Returns

This method returns a Promise which resolves with a TransactionSignerPair[] object:

Success: Returns non-empty TransactionSignerPair[] object

Fail: Returns empty TransactionSignerPair[] object

Usage

Last updated