waves_logo Docs
  • Ride Programming Language
    Ride Programming Language
  • Getting Started
    Getting Started
  • Syntax Basics
    • Directives
      Directives
    • Definition
      Definition
    • Expression
      Expression
    • Variable
      Variable
    • Function
      Function
    • Exception
      Exception
    • Comment
      Comment
    Syntax Basics
  • Script Types
    • dApp Script
      • Annotations
        Annotations
      • Callable Function
        Callable Function
      • Verifier Function
        Verifier Function
      dApp Script
    • Account Script
      Account Script
    • Asset Script
      Asset Script
    Script Types
  • Standard Library
    Standard Library
  • Data types
    • Any
      Any
    • BigInt
      BigInt
    • Boolean
      Boolean
    • ByteVector
      ByteVector
    • Int
      Int
    • String
      String
    • Unit
      Unit
    • List
      List
    • Tuple
      Tuple
    • Union
      Union
    Data types
  • Structures
    • Script Actions
      • BinaryEntry
        BinaryEntry
      • BooleanEntry
        BooleanEntry
      • Burn
        Burn
      • DeleteEntry
        DeleteEntry
      • IntegerEntry
        IntegerEntry
      • Issue
        Issue
      • Lease
        Lease
      • LeaseCancel
        LeaseCancel
      • Reissue
        Reissue
      • ScriptTransfer
        ScriptTransfer
      • SponsorFee
        SponsorFee
      • StringEntry
        StringEntry
      Script Actions
    • Common Structures
      • Address
        Address
      • Alias
        Alias
      • Asset
        Asset
      • AssetPair
        AssetPair
      • AttachedPayment
        AttachedPayment
      • BalanceDetails
        BalanceDetails
      • BlockInfo
        BlockInfo
      • Invocation
        Invocation
      • Order
        Order
      • Transfer
        Transfer
      Common Structures
    • Transaction Structures
      • BurnTransaction
        BurnTransaction
      • CreateAliasTransaction
        CreateAliasTransaction
      • DataTransaction
        DataTransaction
      • ExchangeTransaction
        ExchangeTransaction
      • GenesisTransaction
        GenesisTransaction
      • InvokeScriptTransaction
        InvokeScriptTransaction
      • IssueTransaction
        IssueTransaction
      • LeaseCancelTransaction
        LeaseCancelTransaction
      • LeaseTransaction
        LeaseTransaction
      • MassTransferTransaction
        MassTransferTransaction
      • ReissueTransaction
        ReissueTransaction
      • SetAssetScriptTransaction
        SetAssetScriptTransaction
      • SetScriptTransaction
        SetScriptTransaction
      • SponsorFeeTransaction
        SponsorFeeTransaction
      • TransferTransaction
        TransferTransaction
      • UpdateAssetInfoTransaction
        UpdateAssetInfoTransaction
      Transaction Structures
    Structures
  • Built-in Variables
    Built-in Variables
  • Built-in Functions
    • Account Data Storage Functions
      Account Data Storage Functions
    • Blockchain Functions
      Blockchain Functions
    • Byte Array Functions
      Byte Array Functions
    • Converting Functions
      Converting Functions
    • dApp-to-dApp Invocation Function
      dApp-to-dApp Invocation Function
    • Data Transaction Functions
      Data Transaction Functions
    • Decoding Functions
      Decoding Functions
    • Encoding Functions
      Encoding Functions
    • Exception Functions
      Exception Functions
    • Hashing Functions
      Hashing Functions
    • List Functions
      List Functions
    • Math Functions
      Math Functions
    • String Functions
      String Functions
    • Union Functions
      Union Functions
    • Verification Functions
      Verification Functions
    Built-in Functions
  • Operators
    Operators
  • match ... case: Pattern Matching
    match ... case: Pattern Matching
  • Iterations with FOLD<N>
    Iterations with FOLD<N>
  • dApp-to-dApp Invocation
    dApp-to-dApp Invocation
  • Limitations
    • Complexity
      Complexity
    • Data Weight
      Data Weight
    Limitations
  • Previous Versions
    • Version 5
      • Callable Function
        Callable Function
      • Data types
        • Any
          Any
        • BigInt
          BigInt
        • Boolean
          Boolean
        • ByteVector
          ByteVector
        • Int
          Int
        • String
          String
        • Unit
          Unit
        • List
          List
        • Tuple
          Tuple
        • Union
          Union
        Data types
      • Structures
        • Script Actions
          • BinaryEntry
            BinaryEntry
          • BooleanEntry
            BooleanEntry
          • Burn
            Burn
          • DeleteEntry
            DeleteEntry
          • IntegerEntry
            IntegerEntry
          • Issue
            Issue
          • Lease
            Lease
          • LeaseCancel
            LeaseCancel
          • Reissue
            Reissue
          • ScriptTransfer
            ScriptTransfer
          • SponsorFee
            SponsorFee
          • StringEntry
            StringEntry
          Script Actions
        • Common Structures
          • Address
            Address
          • Alias
            Alias
          • Asset
            Asset
          • AssetPair
            AssetPair
          • AttachedPayment
            AttachedPayment
          • BalanceDetails
            BalanceDetails
          • BlockInfo
            BlockInfo
          • Invocation
            Invocation
          • Order
            Order
          • Transfer
            Transfer
          Common Structures
        • Transaction Structures
          • BurnTransaction
            BurnTransaction
          • CreateAliasTransaction
            CreateAliasTransaction
          • DataTransaction
            DataTransaction
          • ExchangeTransaction
            ExchangeTransaction
          • GenesisTransaction
            GenesisTransaction
          • InvokeScriptTransaction
            InvokeScriptTransaction
          • IssueTransaction
            IssueTransaction
          • LeaseCancelTransaction
            LeaseCancelTransaction
          • LeaseTransaction
            LeaseTransaction
          • MassTransferTransaction
            MassTransferTransaction
          • ReissueTransaction
            ReissueTransaction
          • SetAssetScriptTransaction
            SetAssetScriptTransaction
          • SetScriptTransaction
            SetScriptTransaction
          • SponsorFeeTransaction
            SponsorFeeTransaction
          • TransferTransaction
            TransferTransaction
          • UpdateAssetInfoTransaction
            UpdateAssetInfoTransaction
          Transaction Structures
        Structures
      • Built-in Variables
        Built-in Variables
      • Built-in Functions
        • Account Data Storage Functions
          Account Data Storage Functions
        • Blockchain Functions
          Blockchain Functions
        • Byte Array Functions
          Byte Array Functions
        • Converting Functions
          Converting Functions
        • dApp-to-dApp Invocation Function
          dApp-to-dApp Invocation Function
        • Data Transaction Functions
          Data Transaction Functions
        • Decoding Functions
          Decoding Functions
        • Encoding Functions
          Encoding Functions
        • Exception Functions
          Exception Functions
        • Hashing Functions
          Hashing Functions
        • List Functions
          List Functions
        • Math Functions
          Math Functions
        • String Functions
          String Functions
        • Union Functions
          Union Functions
        • Verification Functions
          Verification Functions
        Built-in Functions
      • Operators
        Operators
      • Limitations
        • Data Weight
          Data Weight
        Limitations
      Version 5
    • Version 4 and 3
      • Callable Function
        Callable Function
      • Data types
        • Boolean
          Boolean
        • ByteVector
          ByteVector
        • Int
          Int
        • String
          String
        • Unit
          Unit
        • List
          List
        • Tuple
          Tuple
        • Union
          Union
        Data types
      • Structures
        • Script Actions
          • BinaryEntry (v4)
            BinaryEntry (v4)
          • BooleanEntry (v4)
            BooleanEntry (v4)
          • Burn (v4)
            Burn (v4)
          • DataEntry (v3)
            DataEntry (v3)
          • DeleteEntry (v4)
            DeleteEntry (v4)
          • IntegerEntry (v4)
            IntegerEntry (v4)
          • Issue (v4)
            Issue (v4)
          • Reissue (v4)
            Reissue (v4)
          • ScriptTransfer (v3 and v4)
            ScriptTransfer (v3 and v4)
          • SponsorFee (v4)
            SponsorFee (v4)
          • StringEntry (v4)
            StringEntry (v4)
          Script Actions
        • Script Results (v3)
          • ScriptResult
            ScriptResult
          • TransferSet
            TransferSet
          • WriteSet
            WriteSet
          Script Results (v3)
        • Common Structures
          • Address
            Address
          • Alias
            Alias
          • Asset
            Asset
          • AssetPair
            AssetPair
          • AttachedPayment
            AttachedPayment
          • BalanceDetails
            BalanceDetails
          • BlockInfo
            BlockInfo
          • Invocation
            Invocation
          • Order
            Order
          • Transfer
            Transfer
          Common Structures
        • Transaction Structures
          • BurnTransaction
            BurnTransaction
          • CreateAliasTransaction
            CreateAliasTransaction
          • DataTransaction
            DataTransaction
          • ExchangeTransaction
            ExchangeTransaction
          • GenesisTransaction
            GenesisTransaction
          • InvokeScriptTransaction
            InvokeScriptTransaction
          • IssueTransaction
            IssueTransaction
          • LeaseCancelTransaction
            LeaseCancelTransaction
          • LeaseTransaction
            LeaseTransaction
          • MassTransferTransaction
            MassTransferTransaction
          • ReissueTransaction
            ReissueTransaction
          • SetAssetScriptTransaction
            SetAssetScriptTransaction
          • SetScriptTransaction
            SetScriptTransaction
          • SponsorFeeTransaction
            SponsorFeeTransaction
          • TransferTransaction
            TransferTransaction
          • UpdateAssetInfoTransaction
            UpdateAssetInfoTransaction
          Transaction Structures
        Structures
      • Built-in Variables
        Built-in Variables
      • Built-in Functions
        • Account Data Storage Functions
          Account Data Storage Functions
        • Blockchain Functions
          Blockchain Functions
        • Byte Array Functions
          Byte Array Functions
        • Converting Functions
          Converting Functions
        • Data Transaction Functions
          Data Transaction Functions
        • Decoding Functions
          Decoding Functions
        • Encoding Functions
          Encoding Functions
        • Exception Functions
          Exception Functions
        • Hashing Functions
          Hashing Functions
        • List Functions
          List Functions
        • Math Functions
          Math Functions
        • String Functions
          String Functions
        • Union Functions
          Union Functions
        • Verification Functions
          Verification Functions
        Built-in Functions
      • Operators
        Operators
      • Limitations
        • Data Weight
          Data Weight
        Limitations
      Version 4 and 3
    Previous Versions
  • Import Libraries
    Import Libraries
  • Ride Components
    Ride Components
      • English
      • Русский
      On this page
        • getBinary(List[], String): ByteVector|Unit
        • getBinary(List[], Int): ByteVector|Unit
        • getBinaryValue(List[], String): ByteVector
        • getBinaryValue(List[], Int): ByteVector
        • getBoolean(List[], String): Boolean|Unit
        • getBoolean(List[], Int): Boolean|Unit
        • getBooleanValue(List[], String): Boolean
        • getBooleanValue(List[], Int): Boolean
        • getInteger(List[], String): Int|Unit
        • getInteger(List[], Int): Int|Unit
        • getIntegerValue(List[], String): Int
        • getIntegerValue(List[], Int): Int
        • getString(List[], String): String|Unit
        • getString(List[], Int): String|Unit
        • getStringValue(List[], String): String
        • getStringValue(List[], Int): String
      waves_logo Docs

          # [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
          Converting Functions
          Decoding Functions
          Converting Functions
          Decoding Functions