# [Ride v4 and v3] Account data storage functions
⚠️ This is the documentation for the Standard library version 4 and 3. We recommend to use version 6. Go to version 6
Learn more about account data storage.
Name | Description | Complexity |
---|---|---|
getBinary(Address|Alias, String): ByteVector|Unit | Gets an array of bytes by key | 100 for Standard Library version 3 10 for Standard Library version 4 |
getBinaryValue(Address|Alias, String): ByteVector | Gets an array of bytes by key. Fails if there is no data | 100 for Standard Library version 3 10 for Standard Library version 4 |
getBoolean(Address|Alias, String): Boolean|Unit | Gets a boolean value by key | 100 for Standard Library version 3 10 for Standard Library version 4 |
getBooleanValue(Address|Alias, String): Boolean | Gets a boolean value by key. Fails if there is no data | 100 for Standard Library version 3 10 for Standard Library version 4 |
getInteger(Address|Alias, String): Int|Unit | Gets an integer by key | 100 for Standard Library version 3 10 for Standard Library version 4 |
getIntegerValue(Address|Alias, String): Int | Gets an integer by key. Fails if there is no data | 100 for Standard Library version 3 10 for Standard Library version 4 |
getString(Address|Alias, String): String|Unit | Gets a string by key | 100 for Standard Library version 3 10 for Standard Library version 4 |
getStringValue(Address|Alias, String): String | Gets a string by key. Fails if there is no data | 100 for Standard Library version 3 10 for Standard Library version 4 |
# getBinary
Gets an array of bytes by key.
getBinary(addressOrAlias: Address|Alias, key: String): ByteVector|Unit
# Parameters
Parameter | Description |
---|---|
addressOrAlias : Address|Alias | Address or alias of the account |
key : String | The key |
# getBinaryValue
Gets an array of bytes by key. Fails if there is no data.
getBinaryValue(addressOrAlias: Address|Alias, key: String): ByteVector
# Parameters
Parameter | Description |
---|---|
addressOrAlias : Address|Alias | Address or alias of the account |
key : String | The key |
# getBoolean
Gets a boolean value by key.
getBoolean(addressOrAlias: Address|Alias, key: String): Boolean|Unit
# Parameters
Parameter | Description |
---|---|
addressOrAlias : Address|Alias | Address or alias of the account |
key : String | The key |
# getBooleanValue
Gets a boolean value by key. Fails if there is no data.
getBooleanValue(addressOrAlias: Address|Alias, key: String): Boolean
# Parameters
Parameter | Description |
---|---|
addressOrAlias : Address|Alias | Address or alias of the account |
key : String | The key |
# getInteger
Gets an integer by key.
getInteger(addressOrAlias: Address|Alias, key: String): Int|Unit
# Parameters
Parameter | Description |
---|---|
addressOrAlias : Address|Alias | Address or alias of the account |
key : String | The key |
# getIntegerValue
Gets an integer by key. Fails if there is no data.
getIntegerValue(addressOrAlias: Address|Alias, key: String): Int
# Parameters
Parameter | Description |
---|---|
addressOrAlias : Address|Alias | Address or alias of the account |
key : String | The key |
# getString
Gets a string by key.
getString(addressOrAlias: Address|Alias, key: String): String|Unit
# Parameters
Parameter | Description |
---|---|
addressOrAlias : Address|Alias | Address or alias of the account |
key : String | The key |
# getStringValue
Gets a string by key. Fails if there is no data.
getStringValue(addressOrAlias: Address|Alias, key: String): String
# Parameters
Parameter | Description |
---|---|
addressOrAlias : Address|Alias | Address or alias of the account |
key : String | The key |