# [Ride v4 and v3] Data transaction functions
⚠️ This is the documentation for the Standard library version 4 and 3. 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:
- List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry] for Standard library version 4.
- List[DataEntry] for Standard library version 3.
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 | 30 for Standard Library version 3 4 for Standard Library version 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 | 30 for Standard Library version 3 4 for Standard Library version 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 | 30 for Standard Library version 3 4 for Standard Library version 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 | 30 for Standard Library version 3 4 for Standard Library version 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 | 30 for Standard Library version 3 4 for Standard Library version 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 | 30 for Standard Library version 3 4 for Standard Library version 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 | 30 for Standard Library version 3 4 for Standard Library version 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 | 30 for Standard Library version 3 4 for Standard Library version 4 |
# getBinary(List[], String): ByteVector|Unit
Gets a binary value from a list of data entires by key.
# For Standard Library Version 4
getBinary(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], key: String): ByteVector|Unit
# For Standard Library Version 3
getBinary(data: List[DataEntry], 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.
# For Standard Library Version 4
getBinary(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], index: Int): ByteVector|Unit
# For Standard Library Version 3
getBinary(data: List[DataEntry], 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.
# For Standard Library Version 4
getBinaryValue(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], key: String): ByteVector
# For Standard Library Version 3
getBinaryValue(data: List[DataEntry], 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.
# For Standard Library Version 4
getBinaryValue(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], index: Int): ByteVector
# For Standard Library Version 3
getBinaryValue(data: List[DataEntry], 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.
# For Standard Library Version 4
getBoolean(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], key: String): Boolean|Unit
# For Standard Library Version 3
getBoolean(data: List[DataEntry], 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.
# For Standard Library Version 4
getBoolean(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], index: Int): Boolean|Unit
# For Standard Library Version 3
getBoolean(data: List[DataEntry], 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.
# For Standard Library Version 4
getBooleanValue(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], key: String): Boolean
# For Standard Library Version 3
getBooleanValue(data: List[DataEntry], 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.
# For Standard Library Version 4
getBooleanValue(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], index: Int): Boolean
# For Standard Library Version 3
getBooleanValue(data: List[DataEntry], 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.
# For Standard Library Version 4
getInteger(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], key: String): Int|Unit
# For Standard Library Version 3
getInteger(data: List[DataEntry], 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.
# For Standard Library Version 4
getInteger(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], index: Int): Int|Unit
# For Standard Library Version 3
getInteger(data: List[DataEntry], 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.
# For Standard Library Version 4
getIntegerValue(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], key: String): Int
# For Standard Library Version 3
getIntegerValue(data: List[DataEntry], 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.
# For Standard Library Version 4
getIntegerValue(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], index: Int): Int
# For Standard Library Version 3
getIntegerValue(data: List[DataEntry], 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.
# For Standard Library Version 4
getString(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], key: String): String|Unit
# For Standard Library Version 3
getString(data: List[DataEntry], 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.
# For Standard Library Version 4
getString(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], index: Int): String|Unit
# For Standard Library Version 3
getString(data: List[DataEntry], 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.
# For Standard Library Version 4
getStringValue(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], key: String): String
# For Standard Library Version 3
getStringValue(data: List[DataEntry], 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.
# For Standard Library Version 4
getStringValue(data: List[BinaryEntry|BooleanEntry|IntegerEntry|StringEntry], index: Int): String
# For Standard Library Version 3
getStringValue(data: List[DataEntry], index: Int): String
# Parameters
Parameter | Description |
---|---|
data: List[] | List of data entries, usually tx.data |
index: Int | Index |