Account
create
- Creates an instance of WalletKeypar using password. This method is used to create a WalletKeypar using password. The Keypair contains some essential information, such as:
address
public key
key store
and so on, and it is used for pretty much any personalized operation that user can do using FindoraSdk
Parameters:
<string>
- Password of account
Results:
Promise<WalletKeypar>
- An instance ofWalletKeypar
Example:
getBalance
- Get the balance of the specific asset for the given user
Using this function user can retrieve the balance for the specific asset code, which could be either custom asset or an FRA asset
Parameters:
<WalletKeypar>
- An instance of WalletKeypar<string>
- (optional) Asset Code which could be either custom asset or an FRA asset.
Results:
Promise<string>
- The balance of the specific asset for the given user.
Example:
getBalanceInWei
- Get the balance of the specific asset for the given user in Wei format
Using this function user can retrieve the balance for the specific asset code, which could be either custom asset or an FRA asset
Parameters:
<WalletKeypar>
- An instance of WalletKeypar<string>
- (optional) Asset Code which could be either custom asset or an FRA asset.
Results:
Promise<BigNumberValue>
- The balance of the specific asset for the given user in Wei format.
Example:
getCreatedAssets
- Get an array of instances of ProcessedIssuedRecord using wallet address.
This method is used to get created Assets. The ProcessedIssuedRecord contains some essential information, such as:
code
record
id
ownerMemo
and so on. It's the issued asset.
Parameters:
<string>
- Wallet address.
Results:
Promise<ProcessedIssuedRecord[]>
- an array ofProcessedIssuedRecord
instances.
Example:
Last updated