Common structures

# Name Description
1 Address The structure of an address
2 Asset The structure of a token
3 AssetPair The structure of a pair of tokens of an order
4 AttachedPayment The structure of an invoke script transaction payment
5 BlockInfo The structure of a block
6 DataEntry The structure of a data record of an account data storage
7 Invocation The structure of the abbreviated representation of an invoke script transaction
8 Order The structure of an order
9 ScriptResult The structure of the execution result of a callable function
10 ScriptTransfer The structure of a token transfer
11 Transfer The structure of a mass transfer transaction token transfer
12 TransferSet The structure of a list of token transfers
13 WriteSet The structure of a list of data records of an account data storage

Address

The structure of an address.

Constructor

Address(bytes: ByteVector)

Fields

# Name Data type Description
1 bytes ByteVector The array of bytes of an address

Asset

The structure of a token.

Constructor

Asset(id: ByteVector, quantity: Int, decimals: Int, issuer: Address, issuerPublicKey: ByteVector, reissuable: Boolean, scripted: Boolean, sponsored: Boolean)

Fields

# Name Data type Description
1 id ByteVector The ID of a token
2 quantity Int The number of issued tokens
3 decimals Int The number of decimal places
4 issuer Address The address of the account that issued a token
5 issuerPublicKey ByteVector The public key of the account that issued a token
6 reissuable Boolean true — token can be reissued, false — cannot be reissued
7 scripted Boolean true — smart asset, false — regular token
8 sponsored Boolean true — token can be sponsored, false — cannot be sponsored

AssetPair

The structure of a pair of tokens of an order.

Constructor

AssetPair(amountAsset: ByteVector|Unit, priceAsset: ByteVector|Unit)

Fields

# Name Data type Description
1 amountAsset ByteVector|Unit The first token of a pair
2 priceAsset ByteVector|Unit The second token of a pair

AttachedPayment

The structure of an invoke script transaction payment.

Constructor

AttachedPayment(assetId: ByteVector|Unit, amount: Int)

Fields

# Name Data type Description
1 assetId ByteVector|Unit The ID of a token
2 amount Int The payment amount

BlockInfo

The structure of a block.

Constructor

BlockInfo(timestamp: Int, height: Int, baseTarget: Int, generationSignature: ByteVector, generator: Address, generatorPublicKey: ByteVector)

Fields

# Name Data type Description
1 timestamp Int The Unix time of the creation of a block
2 height Int The block height
3 baseTarget Int The complexity of the block creation
4 generationSignature ByteVector The signature of a key block
5 generator Address The address of an [/blockchain/account.md) account that created a block
6 generatorPublicKey ByteVector The public key of the account that created a block

DataEntry

The structure of a data record of an account data storage.

Constructor

DataEntry(key: String, value: Int|Boolean|ByteVector|String)

Fields

# Name Data type Description
1 key String The key of a record
2 value Int|Boolean|ByteVector|String The value of a record

Invocation

The structure of the abbreviated representation of an invoke script transaction.

Constructor

Invocation(caller: Address, callerPublicKey: ByteVector, payment: AttachedPayment|Unit, transactionId: ByteVector, fee: Int, feeAssetId: ByteVector|Unit)

Fields

# Name Data type Description
1 caller Address The address of an account that sent a transaction
2 callerPublicKey ByteVector The public key of an account that sent a transaction
3 payment AttachedPayment|Unit The attached payment
4 transactionId ByteVector The ID of a transaction
5 fee Int The transaction fee
6 feeAssetId ByteVector|Unit The token of a transaction fee

Order

The structure of an order.

Constructor

Order(id: ByteVector, matcherPublicKey: ByteVector, assetPair: AssetPair, orderType: Buy|Sell, price: Int, amount: Int, timestamp: Int, expiration: Int, matcherFee: Int, matcherFeeAssetId: ByteVector|Unit, sender: Address, senderPublicKey: ByteVector, bodyBytes: ByteVector, proofs: List[ByteVector])

Fields

# Name Data type Description
1 id ByteVector The ID of an order
2 matcherPublicKey ByteVector The public key of a matcher
3 assetPair AssetPair The pair of tokens
4 orderType Buy|Sell The type of an order — selling or buying
5 price Int The price of a token to exchange
6 amount Int The number of tokens to exchange
7 timestamp Int The Unix time of the validation of an order by a matcher
8 expiration Int The Unix time when an uncompleted order will be cancelled
9 matcherFee Int The transaction fee
10 matcherFeeAssetId ByteVector|Unit The token of a transaction fee. Currently, can only be WAVES
11 sender Address The address of the sender of an order
12 senderPublicKey ByteVector The public key of the sender of an order
13 bodyBytes ByteVector The array of bytes of an order
14 proofs List[ByteVector] The array of proofs

ScriptResult

The structure of the execution result of a callable function.

Constructor

ScriptResult(writeSet: WriteSet, transferSet: TransferSet)

Fields

# Name Data type Description
1 writeSet WriteSet The list of records of an account data storage
2 transferSet TransferSet The list of tokens of a transfer

ScriptTransfer

The structure of a token transfer.

Constructor

ScriptTransfer(recipient: Address|Alias, amount: Int, asset: ByteVector|Unit)

Fields

# Name Data type Description
1 recipient Address|Alias The address or the alias of a recipient of tokens
2 amount Int The number of tokens
3 asset ByteVector|Unit The ID of a token

Transfer

The structure of a mass transfer transaction token transfer.

Constructor

Transfer(recipient: Address|Alias, amount: Int)

Fields

# Name Data type Description
1 recipient Address|Alias The address of a recipient of tokens
2 amount Int Number of tokens

TransferSet

The structure of a list of token transfers.

Constructor

TransferSet(transfers: List[ScriptTransfer])

Fields

# Name Data type Description
1 transfers List[ScriptTransfer] The list of token transfers

WriteSet

The structure of a list of data records of an account data storage.

Constructor

WriteSet(data: List[DataEntry])

Fields

# Name Data type Description
1 data List[DataEntry] The list of data records of an account data storage

results matching ""

    No results matching ""