Account data storage functions

Learn more about account data storage

# Name Description Complexity
1 assetBalancе(Address|Alias, ByteVector): Int Gets account balance by token ID 100
2 getBinary(Address|Alias, String): ByteVector|Unit Gets an array of bytes by key 100
3 getBinaryValue(Address|Alias, String): ByteVector Gets an array of bytes by key. Throws an exception if there is no data 100
4 getBoolean(Address|Alias, String): Boolean|Unit Gets a boolean value by key 100
5 getBooleanValue(Address|Alias, String): Boolean Gets a boolean value by key. Throws an exception if there is no data 100
6 getInteger(Address|Alias, String): Int|Unit Gets an integer by key 100
7 getIntegerValue(Address|Alias, String): Int Gets an integer by key. Throws an exception if there is no data 100
8 getString(Address|Alias, String): String|Unit Gets a string by key 100
9 getStringValue(Address|Alias, String): String Gets a string by key. Throws an exception if there is no data 100
10 wavesBalance(Address|Alias): Int Gets account balance in WAVES 109

assetBalance(Address|Alias, ByteVector): Int

Gets account balance by token ID.

assetBalance(addressOrAlias: Address|Alias, assetId: ByteVector): Int

Parameters

addressOrAlias: Address|Alias

Address or alias of the account.

assetId: ByteVector

Token ID.

getBinary(Address|Alias, String): ByteVector|Unit

Gets an array of bytes by key.

getBinary(addressOrAlias: Address|Alias, key: String): ByteVector|Unit

Parameters

addressOrAlias: Address|Alias

Address or alias of the account.

key: String

The key.

getBinaryValue(Address|Alias, String): ByteVector

Gets an array of bytes by key. Throws an exception if there is no data.

getBinaryValue(addressOrAlias: Address|Alias, key: String): ByteVector

Parameters

addressOrAlias: Address|Alias

Address or alias of the account.

key: String

The key.

getBoolean(Address|Alias, String): Boolean|Unit

Gets a boolean value by key.

getBoolean(addressOrAlias: Address|Alias, key: String): Boolean|Unit

Parameters

addressOrAlias: Address|Alias

Address or alias of the account.

key: String

The key.

getBooleanValue(Address|Alias, String): Boolean

Gets a boolean value by key. Throws an exception if there is no data.

getBooleanValue(addressOrAlias: Address|Alias, key: String): Boolean

Parameters

addressOrAlias: Address|Alias

Address or alias of the account.

key: String

The key.

getInteger(Address|Alias, String): Int|Unit

Gets an integer by key.

getInteger(addressOrAlias: Address|Alias, key: String): Int|Unit

Parameters

addressOrAlias: Address|Alias

Address or alias of the account.

key: String

The key.

getIntegerValue(Address|Alias, String): Int

Gets an integer by key. Throws an exception if there is no data.

getIntegerValue(addressOrAlias: Address|Alias, key: String): Int

Parameters

addressOrAlias: Address|Alias

Address or alias of the account.

key: String

The key.

getString(Address|Alias, String): String|Unit

Gets a string by key.

getString(addressOrAlias: Address|Alias, key: String): String|Unit

Parameters

addressOrAlias: Address|Alias

Address or alias of the account.

key: String

The key.

getStringValue(Address|Alias, String): String

Gets a string by key. Throws an exception if there is no data.

getStringValue(addressOrAlias: Address|Alias, key: String): String

Parameters

addressOrAlias: Address|Alias

Address or alias of the account.

key: String

The key.

wavesBalance(Address|Alias): Int

Gets account balance in WAVES.

wavesBalance(addressOrAlias: Address|Alias): Int

Parameters

addressOrAlias: Address|Alias

Address or alias of the account.

results matching ""

    No results matching ""