Preparing search index...
The search index is not available
glitter-finance
glitter-finance
AlgorandConnect
Class AlgorandConnect
Hierarchy
AlgorandConnect
Index
Constructors
constructor
Properties
accounts
Store
assets
Repo
client
client
Indexer
config
Methods
bridge
Transactions
get
Address
get
Algod
Client
get
Algod
Indexer
get
Asset
get
Balance
optin
Asset
optin
Asset
Transaction
wait
For
Balance
wait
For
Balance
Change
wait
For
Min
Balance
Constructors
constructor
new
Algorand
Connect
(
config
:
AlgorandConfig
)
:
AlgorandConnect
Parameters
config:
AlgorandConfig
Returns
AlgorandConnect
Properties
Readonly
accounts
Store
accounts
Store
:
AlgorandAccountsStore
Readonly
assets
Repo
assets
Repo
:
AssetsRepository
Readonly
client
client
:
default
Readonly
client
Indexer
client
Indexer
:
default
Readonly
config
config
:
AlgorandConfig
Methods
bridge
Transactions
bridge
Transactions
(
sourceAddress
:
string
, destinationAdress
:
string
, destinationNetwork
:
BridgeNetworks
, tokenSymbol
:
string
, amount
:
bigint
)
:
Promise
<
Transaction
[]
>
Returns
Parameters
sourceAddress:
string
destinationAdress:
string
destinationNetwork:
BridgeNetworks
tokenSymbol:
string
amount:
bigint
Returns
Promise
<
Transaction
[]
>
get
Address
get
Address
(
key
:
"bridge"
|
"asaOwner"
|
"algoOwner"
|
"bridgeOwner"
|
"feeReceiver"
|
"multiSig1"
|
"multiSig2"
|
"asaVault"
|
"algoVault"
|
"usdcReceiver"
|
"usdcDeposit"
|
"tokenBridgeV2Address"
)
:
string
Returns
Parameters
key:
"bridge"
|
"asaOwner"
|
"algoOwner"
|
"bridgeOwner"
|
"feeReceiver"
|
"multiSig1"
|
"multiSig2"
|
"asaVault"
|
"algoVault"
|
"usdcReceiver"
|
"usdcDeposit"
|
"tokenBridgeV2Address"
Returns
string
get
Algod
Client
get
Algod
Client
(
)
:
default
Returns
Returns
default
get
Algod
Indexer
get
Algod
Indexer
(
)
:
default
Returns
Returns
default
get
Asset
get
Asset
(
tokenSymbol
:
string
)
:
undefined
|
AlgorandStandardAssetConfig
|
AlgorandNativeTokenConfig
Returns
Parameters
tokenSymbol:
string
Returns
undefined
|
AlgorandStandardAssetConfig
|
AlgorandNativeTokenConfig
get
Balance
get
Balance
(
address
:
string
, tokenSymbol
:
string
)
:
Promise
<
{
balanceBn
:
BigNumber
;
balanceHuman
:
BigNumber
;
}
>
Returns
Parameters
address:
string
tokenSymbol:
string
Returns
Promise
<
{
balanceBn
:
BigNumber
;
balanceHuman
:
BigNumber
;
}
>
optin
Asset
optin
Asset
(
signerAddress
:
string
, tokenSymbol
:
string
)
:
Promise
<
string
>
Parameters
signerAddress:
string
tokenSymbol:
string
Returns
Promise
<
string
>
optin
Asset
Transaction
optin
Asset
Transaction
(
signerAddress
:
string
, tokenSymbol
:
string
)
:
Promise
<
Transaction
>
Returns
Parameters
signerAddress:
string
tokenSymbol:
string
Returns
Promise
<
Transaction
>
wait
For
Balance
wait
For
Balance
(
address
:
string
, expectedAmount
:
number
, tokenSymbol
:
string
, timeoutSeconds
?:
number
, threshold
?:
number
, anybalance
?:
boolean
, noBalance
?:
boolean
)
:
Promise
<
number
>
Returns
Parameters
address:
string
expectedAmount:
number
tokenSymbol:
string
timeoutSeconds:
number
= 60
threshold:
number
= 0.001
anybalance:
boolean
= false
noBalance:
boolean
= false
Returns
Promise
<
number
>
wait
For
Balance
Change
wait
For
Balance
Change
(
address
:
string
, tokenSymbol
:
string
, startingAmount
:
number
, timeoutSeconds
?:
number
)
:
Promise
<
number
>
Returns
Parameters
address:
string
tokenSymbol:
string
startingAmount:
number
timeoutSeconds:
number
= 60
Returns
Promise
<
number
>
wait
For
Min
Balance
wait
For
Min
Balance
(
address
:
string
, minAmount
:
number
, tokenSymbol
:
string
, timeoutSeconds
?:
number
)
:
Promise
<
number
>
Returns
Parameters
address:
string
minAmount:
number
tokenSymbol:
string
timeoutSeconds:
number
= 60
Returns
Promise
<
number
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
glitter-
finance
Algorand
Connect
constructor
accounts
Store
assets
Repo
client
client
Indexer
config
bridge
Transactions
get
Address
get
Algod
Client
get
Algod
Indexer
get
Asset
get
Balance
optin
Asset
optin
Asset
Transaction
wait
For
Balance
wait
For
Balance
Change
wait
For
Min
Balance
Generated using
TypeDoc
Returns