Standard Library

Types

type adds
Unit Native
Int Native
Boolean Native
ByteVector Native
String Native
Address
Alias
Transfer
Order
AssetPair
DataEntry
Transaction TransferTransaction IssueTransaction ReissueTransaction BurnTransaction LeaseTransaction LeaseCancelTransaction MassTransferTransaction CreateAliasTransaction SetScriptTransaction SponsorFeeTransaction ExchangeTransaction DataTransaction
GenesisTransaction
PaymentTransaction
TransferTransaction
IssueTransaction
ReissueTransaction
BurnTransaction
LeaseTransaction
LeaseCancelTransaction
MassTransferTransaction
CreateAliasTransaction
SetScriptTransaction
SponsorFeeTransaction
ExchangeTransaction
DataTransaction

Input variables

vars type doc
unit Unit Single instance value
height Int Current blockchain height
tx Order TransferTransaction IssueTransaction ReissueTransaction BurnTransaction LeaseTransaction LeaseCancelTransaction MassTransferTransaction CreateAliasTransaction SetScriptTransaction SponsorFeeTransaction ExchangeTransaction DataTransaction Processing transaction

Functions

funcs cost doc params type
fraction 1 Multiply and dividion with big integer intermediate representation
  • value Int multiplyer
  • numerator Int multiplyer
  • denominator Int divisor
Int
size 1 Size of bytes vector Int
toBytes 1 Bytes array representation ByteVector
toBytes 1 Bytes array representation ByteVector
toBytes 1 Bytes array representation ByteVector
take 1 Take firsts bytes subvector ByteVector
drop 1 Skip firsts bytes ByteVector
takeRight Take vector tail ByteVector
dropRight Cut vectors tail ByteVector
size 1 Scting size in characters Int
toString 1 String representation String
toString 1 String representation String
take 1 Take string prefix String
drop 1 Remmove sring prefix String
takeRight Take string suffix String
dropRight Remove string suffix String
_isInstanceOf 1 Internal function to check value type Boolean
isDefined Check the value is defined
  • @a OPTION[ T] Option value
Boolean
extract Extract value from option or fail
  • @a OPTION[ T] Optional value
T
throw 1 Fail script Nothing
throw Fail script
    Nothing
    * 1 Integer multiplication
    • a Int multiplyer
    • b Int multiplyer
    Int
    / 1 Integer devision
    • a Int divisible
    • b Int divisor
    Int
    % 1 Modulo
    • a Int divisible
    • b Int divisor
    Int
    + 1 Integer sum Int
    - 1 Integer substitution Int
    + 10 Limited strings concatination String
    + 10 Limited bytes vectors concatination ByteVector
    == 1 Equality
    • a T value
    • b T value
    Boolean
    != Inequality
    • @a T value
    • @b T value
    Boolean
    >= 1 Integer grater or equal comparation Boolean
    > 1 Integer grater comparation Boolean
    getElement 2 Get list element by position
    • arr LIST[ T] list
    • pos Int element position
    T
    size 2 Size of list
    • arr LIST[ T] list
    Int
    - Change integer sign Int
    ! unary negation Boolean
    keccak256 10 256 bit Keccak/SHA-3/TIPS-202 ByteVector
    blake2b256 10 256 bit BLAKE ByteVector
    sha256 10 256 bit SHA-2 ByteVector
    sigVerify 100 check signature Boolean
    toBase58String 10 Base58 encode String
    fromBase58String 10 Base58 decode ByteVector
    toBase64String 10 Base64 encode String
    fromBase64String 10 Base64 decode ByteVector
    transactionById 100 Lookup transaction Unit GenesisTransaction PaymentTransaction TransferTransaction IssueTransaction ReissueTransaction BurnTransaction LeaseTransaction LeaseCancelTransaction MassTransferTransaction CreateAliasTransaction SetScriptTransaction SponsorFeeTransaction ExchangeTransaction DataTransaction
    transactionHeightById 100 get height when transaction was stored to blockchain OPTION[ Int]
    getInteger 100 get data from the account state OPTION[ Int]
    getBoolean 100 get data from the account state OPTION[ Boolean]
    getBinary 100 get data from the account state OPTION ByteVector
    getString 100 get data from the account state OPTION[ String]
    getInteger 10 Find and extract data by key
    • data LIST[ [DataEntry](#DataEntry)] DataEntry vector, usally tx.data
    • key String key
    OPTION[ Int]
    getBoolean 10 Find and extract data by key
    • data LIST[ [DataEntry](#DataEntry)] DataEntry vector, usally tx.data
    • key String key
    OPTION[ Boolean]
    getBinary 10 Find and extract data by key
    • data LIST[ [DataEntry](#DataEntry)] DataEntry vector, usally tx.data
    • key String key
    OPTION ByteVector
    getString 10 Find and extract data by key
    • data LIST[ [DataEntry](#DataEntry)] DataEntry vector, usally tx.data
    • key String key
    OPTION[ String]
    getInteger Extract data by index
    • @data LIST[ [DataEntry](#DataEntry)] DataEntry vector, usally tx.data
    • @index Int index
    OPTION[ Int]
    getBoolean Extract data by index
    • @data LIST[ [DataEntry](#DataEntry)] DataEntry vector, usally tx.data
    • @index Int index
    OPTION[ Boolean]
    getBinary Extract data by index
    • @data LIST[ [DataEntry](#DataEntry)] DataEntry vector, usally tx.data
    • @index Int index
    OPTION ByteVector
    getString Extract data by index
    • @data LIST[ [DataEntry](#DataEntry)] DataEntry vector, usally tx.data
    • @index Int index
    OPTION[ String]
    addressFromPublicKey Convert public key to account address Address
    addressFromString Decode account address OPTION[ Address]
    addressFromRecipient 100 Extract address or lookup alias
    • AddressOrAlias Address Alias address or alias, usually tx.recipient
    Address
    assetBalance 100 get asset balance for account Int
    wavesBalance get WAVES balanse for account Int

    Common fields

    tx type id fee timestamp version sender senderPublicKey bodyBytes proofs
    TransferTransaction ByteVector Int Int Int Address ByteVector ByteVector LIST[ByteVector]
    IssueTransaction ByteVector Int Int Int Address ByteVector ByteVector LIST[ByteVector]
    ReissueTransaction ByteVector Int Int Int Address ByteVector ByteVector LIST[ByteVector]
    BurnTransaction ByteVector Int Int Int Address ByteVector ByteVector LIST[ByteVector]
    LeaseTransaction ByteVector Int Int Int Address ByteVector ByteVector LIST[ByteVector]
    LeaseCancelTransaction ByteVector Int Int Int Address ByteVector ByteVector LIST[ByteVector]
    MassTransferTransaction ByteVector Int Int Int Address ByteVector ByteVector LIST[ByteVector]
    CreateAliasTransaction ByteVector Int Int Int Address ByteVector ByteVector LIST[ByteVector]
    SetScriptTransaction ByteVector Int Int Int Address ByteVector ByteVector LIST[ByteVector]
    SponsorFeeTransaction ByteVector Int Int Int Address ByteVector ByteVector LIST[ByteVector]
    ExchangeTransaction ByteVector Int Int Int Address ByteVector ByteVector LIST[ByteVector]
    DataTransaction ByteVector Int Int Int Address ByteVector ByteVector LIST[ByteVector]

    Transfers fields

    PaymentTransactionTransferTransactionMassTransferTransaction
    amount Int Int-
    recipient Address Alias Address Alias-
    feeAssetId- OPTION[ByteVector] OPTION[ByteVector]
    assetId- OPTION[ByteVector] OPTION[ByteVector]
    attachment- ByteVector ByteVector
    totalAmount-- Int
    transfers-- LIST[Transfer]
    transferCount-- Int

    Issuing assets fields

    IssueTransactionReissueTransactionBurnTransactionSponsorFeeTransaction
    quantity Int Int Int-
    name ByteVector---
    description ByteVector---
    reissuable Boolean Boolean--
    decimals Int---
    script OPTION[ByteVector]---
    assetId- ByteVector ByteVector ByteVector
    minSponsoredAssetFee--- OPTION[Int]

    Leasing fields

    LeaseTransactionLeaseCancelTransaction
    amount Int-
    recipient Address Alias-
    leaseId- ByteVector

    Other fields

    CreateAliasTransactionSetScriptTransactionExchangeTransactionDataTransaction
    alias String---
    script- OPTION[ByteVector]--
    buyOrder-- Order-
    sellOrder-- Order-
    price-- Int-
    amount-- Int-
    buyMatcherFee-- Int-
    sellMatcherFee-- Int-
    data--- LIST[DataEntry]

    results matching ""

      No results matching ""