# [Ride v5] Data transaction functions
⚠️ This is the documentation for the Standard library version 5. We recommend to use version 6. Go to version 6
The functions listed below retrieve data by key from the Data transaction structure or from any list of data entries.
Name | Description | Complexity |
---|---|---|
getBinary(List[], String): ByteVector|Unit | Gets a binary value from a list of data entires by key | 10 |
getBinary(List[], Int): ByteVector|Unit | Gets a binary value from a list of data entires by index | 4 |
getBinaryValue(List[], String): ByteVector | Gets a binary value from a list of data entires by key. Fails if there is no data | 10 |
getBinaryValue(List[], Int): ByteVector | Gets a binary value from a list of data entires by index. Fails if there is no data | 4 |
getBoolean(List[], String): Boolean|Unit | Gets a boolean value from a list of data entires by key | 10 |
getBoolean(List[], Int): Boolean|Unit | Gets a boolean value from a list of data entires by index | 4 |
getBooleanValue(List[], String): Boolean | Gets a boolean value from a list of data entires by key. Fails if there is no data | 10 |
getBooleanValue(List[], Int: Boolean | Gets a boolean value from a list of data entires by index. Fails if there is no data | 4 |
getInteger(List[], String): Int|Unit | Gets an integer value from a list of data entires by key | 10 |
getInteger(List[], Int): Int|Unit | Gets an integer value from a list of data entires by index | 4 |
getIntegerValue(List[], String): Int | Gets an integer value from a list of data entires by key. Fails if there is no data | 10 |
getIntegerValue(List[], Int): Int | Gets an integer value from a list of data entires by index. Fails if there is no data | 4 |
getString(List[] String): String|Unit | Gets a string value from a list of data entires by key | 10 |
getString(List[], Int): String|Unit | Gets a string value from a list of data entires by index | 4 |
getStringValue(List[], String): String | Gets a string value from a list of data entires by key. Fails if there is no data | 10 |
getStringValue(List[], Int): String | Gets a string value from a list of data entires by index. Fails if there is no data | 4 |
# getBinary(List[], String): ByteVector|Unit
Gets a binary value from a list of data entires by key.
getBinary(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], key: String): ByteVector|Unit
# Parameters
Parameter | Description |
---|---|
data: List[] | List of data entries, usually tx.data |
key: String | Key |
# getBinary(List[], Int): ByteVector|Unit
Gets a binary value from a list of data entires by index.
getBinary(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], index: Int): ByteVector|Unit
# Parameters
Parameter | Description |
---|---|
data: List[] | List of data entries, usually tx.data |
index: Int | Index |
# getBinaryValue(List[], String): ByteVector
Gets a binary value from a list of data entires by key. Fails if there is no data.
getBinaryValue(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], key: String): ByteVector
# Parameters
Parameter | Description |
---|---|
data: List[] | List of data entries, usually tx.data |
key: String | Key |
# getBinaryValue(List[], Int): ByteVector
Gets a binary value from a list of data entires by index. Fails if there is no data.
getBinaryValue(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], index: Int): ByteVector
# Parameters
Parameter | Description |
---|---|
data: List[] | List of data entries, usually tx.data |
index: Int | Index |
# getBoolean(List[], String): Boolean|Unit
Gets a boolean value from a list of data entires by key.
getBoolean(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], key: String): Boolean|Unit
# Parameters
Parameter | Description |
---|---|
data: List[] | List of data entries, usually tx.data |
key: String | Key |
# getBoolean(List[], Int): Boolean|Unit
Gets a boolean value from a list of data entires by index.
getBoolean(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], index: Int): Boolean|Unit
# Parameters
Parameter | Description |
---|---|
data: List[] | List of data entries, usually tx.data |
index: Int | Index |
# getBooleanValue(List[], String): Boolean
Gets a boolean value from a list of data entires by key. Fails if there is no data.
getBooleanValue(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], key: String): Boolean
# Parameters
Parameter | Description |
---|---|
data: List[] | List of data entries, usually tx.data |
key: String | Key |
# getBooleanValue(List[], Int): Boolean
Gets a boolean value from a list of data entires by index. Fails if there is no data.
getBooleanValue(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], index: Int): Boolean
# Parameters
Parameter | Description |
---|---|
data: List[] | List of data entries, usually tx.data |
index: Int | Index |
# getInteger(List[], String): Int|Unit
Gets integer from a list of data entires by key.
getInteger(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], key: String): Int|Unit
# Parameters
Parameter | Description |
---|---|
data: List[] | List of data entries, usually tx.data |
key: String | Key |
# getInteger(List[], Int): Int|Unit
Gets an integer value from a list of data entires by index.
getInteger(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], index: Int): Int|Unit
# Parameters
Parameter | Description |
---|---|
data: List[] | List of data entries, usually tx.data |
index: Int | Index |
# getIntegerValue(List[], String): Int
Gets an integer value from a list of data entires by key. Fails if there is no data.
getIntegerValue(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], key: String): Int
# Parameters
Parameter | Description |
---|---|
data: List[] | List of data entries, usually tx.data |
key: String | Key |
# getIntegerValue(List[], Int): Int
Gets an integer value from a list of data entires by index. Fails if there is no data.
getIntegerValue(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], index: Int): Int
# Parameters
Parameter | Description |
---|---|
data: List[] | List of data entries, usually tx.data |
index: Int | Index |
# getString(List[], String): String|Unit
Gets a string value from a list of data entires by key.
getString(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], key: String): String|Unit
# Parameters
Parameter | Description |
---|---|
data: List[] | List of data entries, usually tx.data |
key: String | Key |
# getString(List[], Int): String|Unit
Gets a string value from a list of data entires by index.
getString(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], index: Int): String|Unit
# Parameters
Parameter | Description |
---|---|
data: List[] | List of data entries, usually tx.data |
index: Int | Index |
# getStringValue(List[], String): String
Gets a string value from a list of data entires by key. Fails if there is no data.
getStringValue(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], key: String): String
# Parameters
Parameter | Description |
---|---|
data: List[] | List of data entries, usually tx.data |
key: String | Key |
# getStringValue(List[], Int): String
Gets a string value from a list of data entires by index. Fails if there is no data.
getStringValue(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], index: Int): String
# Parameters
Parameter | Description |
---|---|
data: List[] | List of data entries, usually tx.data |
index: Int | Index |