Create an instance of AlgorandConnect.
The Algorand configuration object.
Readonly
accountsThe Algorand accounts store.
Readonly
assetsThe Assets repository.
Readonly
clientThe Algorand client instance.
Readonly
clientThe Algorand Indexer client.
Readonly
configThe Algorand configuration object.
Initiates bridge transactions to transfer tokens from the source network to the destination network.
The source address on the source network.
The destination address on the destination network.
The destination network type.
The symbol of the token being transferred.
The amount of tokens to be transferred (as a BigInt).
Retrieves the address corresponding to a specified key from the bridge accounts configuration.
The key for the bridge account address.
Retrieves the asset configuration for a specified token symbol.
The symbol of the token.
Retrieves the balance of a specified token for a given address.
The address for which to retrieve the token balance.
The symbol of the token.
Checks if a specified address is opted-in to a given asset.
The ID of the asset.
The address to check.
Performs an opt-in operation for a specified token symbol.
The address of the account performing the opt-in.
The symbol of the token to opt-in.
Generates an opt-in transaction for a specified token symbol.
The address of the account performing the opt-in.
The symbol of the token to opt-in.
Waits for the balance of a specified token for a given address to match the expected amount within a timeout period.
The address for which to wait for the balance.
The expected balance amount to wait for.
The symbol of the token.
Optional
timeoutSeconds: number = 60The timeout duration in seconds.
Optional
threshold: number = 0.001The threshold to consider the balance amount as a match.
Optional
anybalance: boolean = falseIf true, waits for any balance change (greater or smaller) to match the expected amount.
Optional
noBalance: boolean = falseIf true, waits for no balance (zero) to match the expected amount.
Waits for the balance of a specified token for a given address to change from the starting amount.
The address for which to wait for the balance change.
The symbol of the token.
The starting balance amount to compare against.
Optional
timeoutSeconds: number = 60The timeout duration in seconds.
Waits for the balance of a specified token for a given address to reach or exceed the minimum amount.
The address for which to wait for the minimum balance.
The minimum balance amount to wait for.
The symbol of the token.
Optional
timeoutSeconds: number = 60The timeout duration in seconds.
Generated using TypeDoc
Class representing the Algorand connection.