Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@burstjs/core

Package Overview
Dependencies
Maintainers
2
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@burstjs/core

Burst-related functions and models for building Burstcoin applications.

  • 0.4.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-30.77%
Maintainers
2
Weekly downloads
 
Created
Source

@burstjs/core

Burst-related functions and models for building Burstcoin applications.

Installation

burstJS can be used with NodeJS or Web. Two formats are available

Using with NodeJS and/or modern web frameworks

Install using npm:

npm install @burstjs/core

or using yarn:

yarn add @burstjs/core
Example
import {composeApi, ApiSettings} from '@burstjs/core'
import {convertNQTStringToNumber} from '@burstjs/util'

const apiSettings = new ApiSettings('http://at-testnet.burst-alliance.org:6876', 'burst');
const api = composeApi(apiSettings);

// this self-executing file makes turns this file into a starting point of your app

(async () => {
try{
const {balanceNQT} = await api.account.getAccountBalance('13036514135565182944')
console.log(`Account Balance: ${convertNQTStringToNumber(balanceNQT)} BURST`)
}
catch(e){ // e is of type HttpError (as part of @burstjs/http)
console.error(`Whooops, something went wrong: ${e.message}`)
}
})()

Using in classic <script>

Each package is available as bundled standalone library using IIFE. This way burstJS can be used also within <script>-Tags. This might be useful for Wordpress and/or other PHP applications.

Just import the package using the HTML <script> tag.

<script src='https://cdn.jsdelivr.net/npm/@burstjs/core/dist/burstjs.min.js'></script>

Example
(function(){
const api = b$.composeApi({
nodeHost: "http://at-testnet.burst-alliance.org:6876",
apiRootUrl: "/burst"
});

api.network.getBlockchainStatus().then(console.log).catch(console.error);
})()

See more here:

@burstjs/core Online Documentation


API Reference

Modules

api

Classes

ApiSettings

Settings for API used in [[composeApi]]

ContractHelper

Helper class for contracts

A contract owns additional data, which is splitted in 8 byte blocks. The content is encoded in hexadecimal representation and big endianness. This helper class facilitates access to these data

BurstService

Generic BRS Web Service class.

Members

ApiSettings

Composes the API, i.e. setup the environment and mounts the API structure with its functions.

const api = composeApi({
  nodeHost: 'https://wallet1.burst-team.us:2083', // one of the mainnet nodes
})

Note, that this method mounts the entire API, i.e. all available methods. One may also customize the API composition using [[ApiComposer]].

Functions

createParametersFromAttachment(attachment, params)

Creates BRS Http send parameters for a transaction from attachment data

api

api~ApiImpl

Copyright (c) 2019 Burst Apps Team

Kind: inner class of api

api~ApiComposer

The API composer mounts the API for given service and selected methods

Usually you would use [[composeApi]], which gives you all available API methods. Unfortunately, this will import almost all dependencies, even if you need only a fraction of the methods. To take advantage of tree-shaking (dead code elimination) you can compose your own API with the methods you need. This can reduce your final bundle significantly.

Usage:


const burstService = new BurstService({
    nodeHost: 'https://testnet.burst.fun',
})

const api = apiComposer .create(burstService) .withMessageApi({ sendTextMessage }) .withAccountApi({ getAccountTransactions, getUnconfirmedAccountTransactions, getAccountBalance, generateSendTransactionQRCode, generateSendTransactionQRCodeAddress, }) .compose();

The with<section>Api uses factory methods from the api.core.factories package

Kind: inner class of api

apiComposer.withBlockApi(creatorMap)

Adds the [[BlockApi]] to be composed

Kind: instance method of ApiComposer

ParamDescription
creatorMap

A map of creator/factory functions for the endpoints

apiComposer.withAccountApi(creatorMap)

Adds the [[AccountApi]] to be composed

Kind: instance method of ApiComposer

ParamDescription
creatorMap

A map of creator/factory functions for the endpoints

apiComposer.withNetworkApi(creatorMap)

Adds the [[NetworkApi]] to be composed

Kind: instance method of ApiComposer

ParamDescription
creatorMap

A map of creator/factory functions for the endpoints

apiComposer.withMessageApi(creatorMap)

Adds the [[MessageApi]] to be composed

Kind: instance method of ApiComposer

ParamDescription
creatorMap

A map of creator/factory functions for the endpoints

apiComposer.withTransactionApi(creatorMap)

Adds the [[TransactionApi]] to be composed

Kind: instance method of ApiComposer

ParamDescription
creatorMap

A map of creator/factory functions for the endpoints

apiComposer.withAliasApi(creatorMap)

Adds the [[AliasApi]] to be composed

Kind: instance method of ApiComposer

ParamDescription
creatorMap

A map of creator/factory functions for the endpoints

apiComposer.withAssetApi(creatorMap)

Adds the [[AssetApi]] to be composed

Kind: instance method of ApiComposer

ParamDescription
creatorMap

A map of creator/factory functions for the endpoints

apiComposer.withContractApi(creatorMap)

Adds the [[ContractApi]] to be composed

Kind: instance method of ApiComposer

ParamDescription
creatorMap

A map of creator/factory functions for the endpoints

apiComposer.compose()

Composes the API Note: As of being a builder pattern, this need to call this method as last

Kind: instance method of ApiComposer

ApiComposer.create(service) ⇒

Creates the composer instance

Kind: static method of ApiComposer
Returns:

the composer instance

Param
service

core

core.FeeQuantNQT

The default deadline (in minutes) for Transactions

Kind: static property of core

core.DefaultDeadline

The default endpoint for [[ApiSettings]]

Kind: static property of core

core.Attachment

Message class

The Message class is used to model a plain message attached to a transaction.

Kind: static property of core

core.AttachmentMessage

EncryptedMessage class

The EncryptedMessage class is a model for a encrypted message attached to a transaction.

Kind: static property of core

core~Account

Account class

The account class serves as a model for a Burstcoin account. It's meant to model the response from BRS API, except publicKey has been moved into the keys object.

Kind: inner class of core

core~Attachment

Attachment class

The attachment class is used to appended to transaction where appropriate. It is a super class for Message and EncryptedMessage.

Kind: inner class of core

core~BurstNode

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

Kind: inner class of core

core~TransactionArbitrarySubtype

Constants for arbitrary subtypes

Kind: inner property of core

core~TransactionAssetSubtype

Constants for asset subtypes

Kind: inner property of core

core~TransactionEscrowSubtype

Constants for escrow subtypes

Kind: inner property of core

core~TransactionLeasingSubtype

Constants for leasing subtypes

Kind: inner property of core

core~TransactionMarketplaceSubtype

Constants for marketplace subtypes

Kind: inner property of core

core~TransactionPaymentSubtype

Constants for payment subtypes

Kind: inner property of core

core~TransactionRewardRecipientSubtype

Constants for reward recipient subtypes (Pool Operation)

Kind: inner property of core

core~TransactionSmartContractSubtype

Constants for smart contract (aka AT) subtypes

Kind: inner property of core

core~TransactionType

Constants for transaction types

The transaction type is part of every [[Transaction]] object and used to distinguish block data. Additionally, to the transaction type a subtype is sent, that specifies the kind of transaction more detailly.

Kind: inner property of core

core~FeeQuantNQT

The smallest possible fee

Kind: inner constant of core

core~getAttachmentVersion(transaction) ⇒

Get the transaction attachment version identifier

Attachment types are identified by a field version.

Kind: inner method of core
Returns:

return Identifier, if exists, otherwise undefined

ParamDescription
transaction

The transaction to be checked

core~isAttachmentVersion(transaction, versionIdentifier) ⇒

Checks if a transaction attachment is of specific version

Kind: inner method of core
Returns:

true, if version string matches

ParamDescription
transaction

The transaction to be checked

versionIdentifier

The version string, i.e. MultiOutCreation

core~getContractDatablock(position, length) ⇒

Extracts a variables value as hexadecimal string from a contract's machine data

This is a generic function to extract arbitrary data from a contract. I's recommended to use the [[ContractHelper]] class instead

Kind: inner method of core
Returns:

The value as hexadecimal string (already considering endianness)

ParamDefaultDescription
position

The variables position

length16

The length of data to be extracted

core~constructAttachment(transaction, params) ⇒

Deprecated

Kind: inner method of core
Returns:

HttpParams


Hidden:

ParamDescription
transaction

The transaction with the attachment

params

Some HttpParams

core~signAndBroadcastTransaction(unsignedTransaction, service) ⇒

Signs and broadcasts a transaction

Kind: inner method of core
Returns:

The transaction Id


Hidden:

ParamDescription
unsignedTransaction

The unsigned transaction context

service

The service used for

core~getRecipientAmountsFromMultiOutPayment(transaction) ⇒

Tries to extract recipients and its amounts for multi out payments (different and same amount)

Kind: inner method of core
Returns:

A list of recipients and their payed amount (in NQT)


Throws:

  • An exception in case of wrong transaction types

ParamDescription
transaction

The transaction

core~getRecipientsAmount(recipientId, transaction) ⇒

Gets the amount from a transaction, considering ordinary and multi out transactions (with same and different payments)

Kind: inner method of core
Returns:

the amount in BURST (not NQT)

ParamDescription
recipientId

The numeric id of the recipient

transaction

The payment transaction

core~isMultiOutSameTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction with same amounts for each recipient

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core~isMultiOutTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction (with different amounts)

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core

core.FeeQuantNQT

The default deadline (in minutes) for Transactions

Kind: static property of core

core.DefaultDeadline

The default endpoint for [[ApiSettings]]

Kind: static property of core

core.Attachment

Message class

The Message class is used to model a plain message attached to a transaction.

Kind: static property of core

core.AttachmentMessage

EncryptedMessage class

The EncryptedMessage class is a model for a encrypted message attached to a transaction.

Kind: static property of core

core~Account

Account class

The account class serves as a model for a Burstcoin account. It's meant to model the response from BRS API, except publicKey has been moved into the keys object.

Kind: inner class of core

core~Attachment

Attachment class

The attachment class is used to appended to transaction where appropriate. It is a super class for Message and EncryptedMessage.

Kind: inner class of core

core~BurstNode

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

Kind: inner class of core

core~TransactionArbitrarySubtype

Constants for arbitrary subtypes

Kind: inner property of core

core~TransactionAssetSubtype

Constants for asset subtypes

Kind: inner property of core

core~TransactionEscrowSubtype

Constants for escrow subtypes

Kind: inner property of core

core~TransactionLeasingSubtype

Constants for leasing subtypes

Kind: inner property of core

core~TransactionMarketplaceSubtype

Constants for marketplace subtypes

Kind: inner property of core

core~TransactionPaymentSubtype

Constants for payment subtypes

Kind: inner property of core

core~TransactionRewardRecipientSubtype

Constants for reward recipient subtypes (Pool Operation)

Kind: inner property of core

core~TransactionSmartContractSubtype

Constants for smart contract (aka AT) subtypes

Kind: inner property of core

core~TransactionType

Constants for transaction types

The transaction type is part of every [[Transaction]] object and used to distinguish block data. Additionally, to the transaction type a subtype is sent, that specifies the kind of transaction more detailly.

Kind: inner property of core

core~FeeQuantNQT

The smallest possible fee

Kind: inner constant of core

core~getAttachmentVersion(transaction) ⇒

Get the transaction attachment version identifier

Attachment types are identified by a field version.

Kind: inner method of core
Returns:

return Identifier, if exists, otherwise undefined

ParamDescription
transaction

The transaction to be checked

core~isAttachmentVersion(transaction, versionIdentifier) ⇒

Checks if a transaction attachment is of specific version

Kind: inner method of core
Returns:

true, if version string matches

ParamDescription
transaction

The transaction to be checked

versionIdentifier

The version string, i.e. MultiOutCreation

core~getContractDatablock(position, length) ⇒

Extracts a variables value as hexadecimal string from a contract's machine data

This is a generic function to extract arbitrary data from a contract. I's recommended to use the [[ContractHelper]] class instead

Kind: inner method of core
Returns:

The value as hexadecimal string (already considering endianness)

ParamDefaultDescription
position

The variables position

length16

The length of data to be extracted

core~constructAttachment(transaction, params) ⇒

Deprecated

Kind: inner method of core
Returns:

HttpParams


Hidden:

ParamDescription
transaction

The transaction with the attachment

params

Some HttpParams

core~signAndBroadcastTransaction(unsignedTransaction, service) ⇒

Signs and broadcasts a transaction

Kind: inner method of core
Returns:

The transaction Id


Hidden:

ParamDescription
unsignedTransaction

The unsigned transaction context

service

The service used for

core~getRecipientAmountsFromMultiOutPayment(transaction) ⇒

Tries to extract recipients and its amounts for multi out payments (different and same amount)

Kind: inner method of core
Returns:

A list of recipients and their payed amount (in NQT)


Throws:

  • An exception in case of wrong transaction types

ParamDescription
transaction

The transaction

core~getRecipientsAmount(recipientId, transaction) ⇒

Gets the amount from a transaction, considering ordinary and multi out transactions (with same and different payments)

Kind: inner method of core
Returns:

the amount in BURST (not NQT)

ParamDescription
recipientId

The numeric id of the recipient

transaction

The payment transaction

core~isMultiOutSameTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction with same amounts for each recipient

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core~isMultiOutTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction (with different amounts)

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core

core.FeeQuantNQT

The default deadline (in minutes) for Transactions

Kind: static property of core

core.DefaultDeadline

The default endpoint for [[ApiSettings]]

Kind: static property of core

core.Attachment

Message class

The Message class is used to model a plain message attached to a transaction.

Kind: static property of core

core.AttachmentMessage

EncryptedMessage class

The EncryptedMessage class is a model for a encrypted message attached to a transaction.

Kind: static property of core

core~Account

Account class

The account class serves as a model for a Burstcoin account. It's meant to model the response from BRS API, except publicKey has been moved into the keys object.

Kind: inner class of core

core~Attachment

Attachment class

The attachment class is used to appended to transaction where appropriate. It is a super class for Message and EncryptedMessage.

Kind: inner class of core

core~BurstNode

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

Kind: inner class of core

core~TransactionArbitrarySubtype

Constants for arbitrary subtypes

Kind: inner property of core

core~TransactionAssetSubtype

Constants for asset subtypes

Kind: inner property of core

core~TransactionEscrowSubtype

Constants for escrow subtypes

Kind: inner property of core

core~TransactionLeasingSubtype

Constants for leasing subtypes

Kind: inner property of core

core~TransactionMarketplaceSubtype

Constants for marketplace subtypes

Kind: inner property of core

core~TransactionPaymentSubtype

Constants for payment subtypes

Kind: inner property of core

core~TransactionRewardRecipientSubtype

Constants for reward recipient subtypes (Pool Operation)

Kind: inner property of core

core~TransactionSmartContractSubtype

Constants for smart contract (aka AT) subtypes

Kind: inner property of core

core~TransactionType

Constants for transaction types

The transaction type is part of every [[Transaction]] object and used to distinguish block data. Additionally, to the transaction type a subtype is sent, that specifies the kind of transaction more detailly.

Kind: inner property of core

core~FeeQuantNQT

The smallest possible fee

Kind: inner constant of core

core~getAttachmentVersion(transaction) ⇒

Get the transaction attachment version identifier

Attachment types are identified by a field version.

Kind: inner method of core
Returns:

return Identifier, if exists, otherwise undefined

ParamDescription
transaction

The transaction to be checked

core~isAttachmentVersion(transaction, versionIdentifier) ⇒

Checks if a transaction attachment is of specific version

Kind: inner method of core
Returns:

true, if version string matches

ParamDescription
transaction

The transaction to be checked

versionIdentifier

The version string, i.e. MultiOutCreation

core~getContractDatablock(position, length) ⇒

Extracts a variables value as hexadecimal string from a contract's machine data

This is a generic function to extract arbitrary data from a contract. I's recommended to use the [[ContractHelper]] class instead

Kind: inner method of core
Returns:

The value as hexadecimal string (already considering endianness)

ParamDefaultDescription
position

The variables position

length16

The length of data to be extracted

core~constructAttachment(transaction, params) ⇒

Deprecated

Kind: inner method of core
Returns:

HttpParams


Hidden:

ParamDescription
transaction

The transaction with the attachment

params

Some HttpParams

core~signAndBroadcastTransaction(unsignedTransaction, service) ⇒

Signs and broadcasts a transaction

Kind: inner method of core
Returns:

The transaction Id


Hidden:

ParamDescription
unsignedTransaction

The unsigned transaction context

service

The service used for

core~getRecipientAmountsFromMultiOutPayment(transaction) ⇒

Tries to extract recipients and its amounts for multi out payments (different and same amount)

Kind: inner method of core
Returns:

A list of recipients and their payed amount (in NQT)


Throws:

  • An exception in case of wrong transaction types

ParamDescription
transaction

The transaction

core~getRecipientsAmount(recipientId, transaction) ⇒

Gets the amount from a transaction, considering ordinary and multi out transactions (with same and different payments)

Kind: inner method of core
Returns:

the amount in BURST (not NQT)

ParamDescription
recipientId

The numeric id of the recipient

transaction

The payment transaction

core~isMultiOutSameTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction with same amounts for each recipient

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core~isMultiOutTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction (with different amounts)

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core

core.FeeQuantNQT

The default deadline (in minutes) for Transactions

Kind: static property of core

core.DefaultDeadline

The default endpoint for [[ApiSettings]]

Kind: static property of core

core.Attachment

Message class

The Message class is used to model a plain message attached to a transaction.

Kind: static property of core

core.AttachmentMessage

EncryptedMessage class

The EncryptedMessage class is a model for a encrypted message attached to a transaction.

Kind: static property of core

core~Account

Account class

The account class serves as a model for a Burstcoin account. It's meant to model the response from BRS API, except publicKey has been moved into the keys object.

Kind: inner class of core

core~Attachment

Attachment class

The attachment class is used to appended to transaction where appropriate. It is a super class for Message and EncryptedMessage.

Kind: inner class of core

core~BurstNode

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

Kind: inner class of core

core~TransactionArbitrarySubtype

Constants for arbitrary subtypes

Kind: inner property of core

core~TransactionAssetSubtype

Constants for asset subtypes

Kind: inner property of core

core~TransactionEscrowSubtype

Constants for escrow subtypes

Kind: inner property of core

core~TransactionLeasingSubtype

Constants for leasing subtypes

Kind: inner property of core

core~TransactionMarketplaceSubtype

Constants for marketplace subtypes

Kind: inner property of core

core~TransactionPaymentSubtype

Constants for payment subtypes

Kind: inner property of core

core~TransactionRewardRecipientSubtype

Constants for reward recipient subtypes (Pool Operation)

Kind: inner property of core

core~TransactionSmartContractSubtype

Constants for smart contract (aka AT) subtypes

Kind: inner property of core

core~TransactionType

Constants for transaction types

The transaction type is part of every [[Transaction]] object and used to distinguish block data. Additionally, to the transaction type a subtype is sent, that specifies the kind of transaction more detailly.

Kind: inner property of core

core~FeeQuantNQT

The smallest possible fee

Kind: inner constant of core

core~getAttachmentVersion(transaction) ⇒

Get the transaction attachment version identifier

Attachment types are identified by a field version.

Kind: inner method of core
Returns:

return Identifier, if exists, otherwise undefined

ParamDescription
transaction

The transaction to be checked

core~isAttachmentVersion(transaction, versionIdentifier) ⇒

Checks if a transaction attachment is of specific version

Kind: inner method of core
Returns:

true, if version string matches

ParamDescription
transaction

The transaction to be checked

versionIdentifier

The version string, i.e. MultiOutCreation

core~getContractDatablock(position, length) ⇒

Extracts a variables value as hexadecimal string from a contract's machine data

This is a generic function to extract arbitrary data from a contract. I's recommended to use the [[ContractHelper]] class instead

Kind: inner method of core
Returns:

The value as hexadecimal string (already considering endianness)

ParamDefaultDescription
position

The variables position

length16

The length of data to be extracted

core~constructAttachment(transaction, params) ⇒

Deprecated

Kind: inner method of core
Returns:

HttpParams


Hidden:

ParamDescription
transaction

The transaction with the attachment

params

Some HttpParams

core~signAndBroadcastTransaction(unsignedTransaction, service) ⇒

Signs and broadcasts a transaction

Kind: inner method of core
Returns:

The transaction Id


Hidden:

ParamDescription
unsignedTransaction

The unsigned transaction context

service

The service used for

core~getRecipientAmountsFromMultiOutPayment(transaction) ⇒

Tries to extract recipients and its amounts for multi out payments (different and same amount)

Kind: inner method of core
Returns:

A list of recipients and their payed amount (in NQT)


Throws:

  • An exception in case of wrong transaction types

ParamDescription
transaction

The transaction

core~getRecipientsAmount(recipientId, transaction) ⇒

Gets the amount from a transaction, considering ordinary and multi out transactions (with same and different payments)

Kind: inner method of core
Returns:

the amount in BURST (not NQT)

ParamDescription
recipientId

The numeric id of the recipient

transaction

The payment transaction

core~isMultiOutSameTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction with same amounts for each recipient

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core~isMultiOutTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction (with different amounts)

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core

core.FeeQuantNQT

The default deadline (in minutes) for Transactions

Kind: static property of core

core.DefaultDeadline

The default endpoint for [[ApiSettings]]

Kind: static property of core

core.Attachment

Message class

The Message class is used to model a plain message attached to a transaction.

Kind: static property of core

core.AttachmentMessage

EncryptedMessage class

The EncryptedMessage class is a model for a encrypted message attached to a transaction.

Kind: static property of core

core~Account

Account class

The account class serves as a model for a Burstcoin account. It's meant to model the response from BRS API, except publicKey has been moved into the keys object.

Kind: inner class of core

core~Attachment

Attachment class

The attachment class is used to appended to transaction where appropriate. It is a super class for Message and EncryptedMessage.

Kind: inner class of core

core~BurstNode

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

Kind: inner class of core

core~TransactionArbitrarySubtype

Constants for arbitrary subtypes

Kind: inner property of core

core~TransactionAssetSubtype

Constants for asset subtypes

Kind: inner property of core

core~TransactionEscrowSubtype

Constants for escrow subtypes

Kind: inner property of core

core~TransactionLeasingSubtype

Constants for leasing subtypes

Kind: inner property of core

core~TransactionMarketplaceSubtype

Constants for marketplace subtypes

Kind: inner property of core

core~TransactionPaymentSubtype

Constants for payment subtypes

Kind: inner property of core

core~TransactionRewardRecipientSubtype

Constants for reward recipient subtypes (Pool Operation)

Kind: inner property of core

core~TransactionSmartContractSubtype

Constants for smart contract (aka AT) subtypes

Kind: inner property of core

core~TransactionType

Constants for transaction types

The transaction type is part of every [[Transaction]] object and used to distinguish block data. Additionally, to the transaction type a subtype is sent, that specifies the kind of transaction more detailly.

Kind: inner property of core

core~FeeQuantNQT

The smallest possible fee

Kind: inner constant of core

core~getAttachmentVersion(transaction) ⇒

Get the transaction attachment version identifier

Attachment types are identified by a field version.

Kind: inner method of core
Returns:

return Identifier, if exists, otherwise undefined

ParamDescription
transaction

The transaction to be checked

core~isAttachmentVersion(transaction, versionIdentifier) ⇒

Checks if a transaction attachment is of specific version

Kind: inner method of core
Returns:

true, if version string matches

ParamDescription
transaction

The transaction to be checked

versionIdentifier

The version string, i.e. MultiOutCreation

core~getContractDatablock(position, length) ⇒

Extracts a variables value as hexadecimal string from a contract's machine data

This is a generic function to extract arbitrary data from a contract. I's recommended to use the [[ContractHelper]] class instead

Kind: inner method of core
Returns:

The value as hexadecimal string (already considering endianness)

ParamDefaultDescription
position

The variables position

length16

The length of data to be extracted

core~constructAttachment(transaction, params) ⇒

Deprecated

Kind: inner method of core
Returns:

HttpParams


Hidden:

ParamDescription
transaction

The transaction with the attachment

params

Some HttpParams

core~signAndBroadcastTransaction(unsignedTransaction, service) ⇒

Signs and broadcasts a transaction

Kind: inner method of core
Returns:

The transaction Id


Hidden:

ParamDescription
unsignedTransaction

The unsigned transaction context

service

The service used for

core~getRecipientAmountsFromMultiOutPayment(transaction) ⇒

Tries to extract recipients and its amounts for multi out payments (different and same amount)

Kind: inner method of core
Returns:

A list of recipients and their payed amount (in NQT)


Throws:

  • An exception in case of wrong transaction types

ParamDescription
transaction

The transaction

core~getRecipientsAmount(recipientId, transaction) ⇒

Gets the amount from a transaction, considering ordinary and multi out transactions (with same and different payments)

Kind: inner method of core
Returns:

the amount in BURST (not NQT)

ParamDescription
recipientId

The numeric id of the recipient

transaction

The payment transaction

core~isMultiOutSameTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction with same amounts for each recipient

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core~isMultiOutTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction (with different amounts)

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core

core.FeeQuantNQT

The default deadline (in minutes) for Transactions

Kind: static property of core

core.DefaultDeadline

The default endpoint for [[ApiSettings]]

Kind: static property of core

core.Attachment

Message class

The Message class is used to model a plain message attached to a transaction.

Kind: static property of core

core.AttachmentMessage

EncryptedMessage class

The EncryptedMessage class is a model for a encrypted message attached to a transaction.

Kind: static property of core

core~Account

Account class

The account class serves as a model for a Burstcoin account. It's meant to model the response from BRS API, except publicKey has been moved into the keys object.

Kind: inner class of core

core~Attachment

Attachment class

The attachment class is used to appended to transaction where appropriate. It is a super class for Message and EncryptedMessage.

Kind: inner class of core

core~BurstNode

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

Kind: inner class of core

core~TransactionArbitrarySubtype

Constants for arbitrary subtypes

Kind: inner property of core

core~TransactionAssetSubtype

Constants for asset subtypes

Kind: inner property of core

core~TransactionEscrowSubtype

Constants for escrow subtypes

Kind: inner property of core

core~TransactionLeasingSubtype

Constants for leasing subtypes

Kind: inner property of core

core~TransactionMarketplaceSubtype

Constants for marketplace subtypes

Kind: inner property of core

core~TransactionPaymentSubtype

Constants for payment subtypes

Kind: inner property of core

core~TransactionRewardRecipientSubtype

Constants for reward recipient subtypes (Pool Operation)

Kind: inner property of core

core~TransactionSmartContractSubtype

Constants for smart contract (aka AT) subtypes

Kind: inner property of core

core~TransactionType

Constants for transaction types

The transaction type is part of every [[Transaction]] object and used to distinguish block data. Additionally, to the transaction type a subtype is sent, that specifies the kind of transaction more detailly.

Kind: inner property of core

core~FeeQuantNQT

The smallest possible fee

Kind: inner constant of core

core~getAttachmentVersion(transaction) ⇒

Get the transaction attachment version identifier

Attachment types are identified by a field version.

Kind: inner method of core
Returns:

return Identifier, if exists, otherwise undefined

ParamDescription
transaction

The transaction to be checked

core~isAttachmentVersion(transaction, versionIdentifier) ⇒

Checks if a transaction attachment is of specific version

Kind: inner method of core
Returns:

true, if version string matches

ParamDescription
transaction

The transaction to be checked

versionIdentifier

The version string, i.e. MultiOutCreation

core~getContractDatablock(position, length) ⇒

Extracts a variables value as hexadecimal string from a contract's machine data

This is a generic function to extract arbitrary data from a contract. I's recommended to use the [[ContractHelper]] class instead

Kind: inner method of core
Returns:

The value as hexadecimal string (already considering endianness)

ParamDefaultDescription
position

The variables position

length16

The length of data to be extracted

core~constructAttachment(transaction, params) ⇒

Deprecated

Kind: inner method of core
Returns:

HttpParams


Hidden:

ParamDescription
transaction

The transaction with the attachment

params

Some HttpParams

core~signAndBroadcastTransaction(unsignedTransaction, service) ⇒

Signs and broadcasts a transaction

Kind: inner method of core
Returns:

The transaction Id


Hidden:

ParamDescription
unsignedTransaction

The unsigned transaction context

service

The service used for

core~getRecipientAmountsFromMultiOutPayment(transaction) ⇒

Tries to extract recipients and its amounts for multi out payments (different and same amount)

Kind: inner method of core
Returns:

A list of recipients and their payed amount (in NQT)


Throws:

  • An exception in case of wrong transaction types

ParamDescription
transaction

The transaction

core~getRecipientsAmount(recipientId, transaction) ⇒

Gets the amount from a transaction, considering ordinary and multi out transactions (with same and different payments)

Kind: inner method of core
Returns:

the amount in BURST (not NQT)

ParamDescription
recipientId

The numeric id of the recipient

transaction

The payment transaction

core~isMultiOutSameTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction with same amounts for each recipient

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core~isMultiOutTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction (with different amounts)

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core

core.FeeQuantNQT

The default deadline (in minutes) for Transactions

Kind: static property of core

core.DefaultDeadline

The default endpoint for [[ApiSettings]]

Kind: static property of core

core.Attachment

Message class

The Message class is used to model a plain message attached to a transaction.

Kind: static property of core

core.AttachmentMessage

EncryptedMessage class

The EncryptedMessage class is a model for a encrypted message attached to a transaction.

Kind: static property of core

core~Account

Account class

The account class serves as a model for a Burstcoin account. It's meant to model the response from BRS API, except publicKey has been moved into the keys object.

Kind: inner class of core

core~Attachment

Attachment class

The attachment class is used to appended to transaction where appropriate. It is a super class for Message and EncryptedMessage.

Kind: inner class of core

core~BurstNode

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

Kind: inner class of core

core~TransactionArbitrarySubtype

Constants for arbitrary subtypes

Kind: inner property of core

core~TransactionAssetSubtype

Constants for asset subtypes

Kind: inner property of core

core~TransactionEscrowSubtype

Constants for escrow subtypes

Kind: inner property of core

core~TransactionLeasingSubtype

Constants for leasing subtypes

Kind: inner property of core

core~TransactionMarketplaceSubtype

Constants for marketplace subtypes

Kind: inner property of core

core~TransactionPaymentSubtype

Constants for payment subtypes

Kind: inner property of core

core~TransactionRewardRecipientSubtype

Constants for reward recipient subtypes (Pool Operation)

Kind: inner property of core

core~TransactionSmartContractSubtype

Constants for smart contract (aka AT) subtypes

Kind: inner property of core

core~TransactionType

Constants for transaction types

The transaction type is part of every [[Transaction]] object and used to distinguish block data. Additionally, to the transaction type a subtype is sent, that specifies the kind of transaction more detailly.

Kind: inner property of core

core~FeeQuantNQT

The smallest possible fee

Kind: inner constant of core

core~getAttachmentVersion(transaction) ⇒

Get the transaction attachment version identifier

Attachment types are identified by a field version.

Kind: inner method of core
Returns:

return Identifier, if exists, otherwise undefined

ParamDescription
transaction

The transaction to be checked

core~isAttachmentVersion(transaction, versionIdentifier) ⇒

Checks if a transaction attachment is of specific version

Kind: inner method of core
Returns:

true, if version string matches

ParamDescription
transaction

The transaction to be checked

versionIdentifier

The version string, i.e. MultiOutCreation

core~getContractDatablock(position, length) ⇒

Extracts a variables value as hexadecimal string from a contract's machine data

This is a generic function to extract arbitrary data from a contract. I's recommended to use the [[ContractHelper]] class instead

Kind: inner method of core
Returns:

The value as hexadecimal string (already considering endianness)

ParamDefaultDescription
position

The variables position

length16

The length of data to be extracted

core~constructAttachment(transaction, params) ⇒

Deprecated

Kind: inner method of core
Returns:

HttpParams


Hidden:

ParamDescription
transaction

The transaction with the attachment

params

Some HttpParams

core~signAndBroadcastTransaction(unsignedTransaction, service) ⇒

Signs and broadcasts a transaction

Kind: inner method of core
Returns:

The transaction Id


Hidden:

ParamDescription
unsignedTransaction

The unsigned transaction context

service

The service used for

core~getRecipientAmountsFromMultiOutPayment(transaction) ⇒

Tries to extract recipients and its amounts for multi out payments (different and same amount)

Kind: inner method of core
Returns:

A list of recipients and their payed amount (in NQT)


Throws:

  • An exception in case of wrong transaction types

ParamDescription
transaction

The transaction

core~getRecipientsAmount(recipientId, transaction) ⇒

Gets the amount from a transaction, considering ordinary and multi out transactions (with same and different payments)

Kind: inner method of core
Returns:

the amount in BURST (not NQT)

ParamDescription
recipientId

The numeric id of the recipient

transaction

The payment transaction

core~isMultiOutSameTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction with same amounts for each recipient

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core~isMultiOutTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction (with different amounts)

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core

core.FeeQuantNQT

The default deadline (in minutes) for Transactions

Kind: static property of core

core.DefaultDeadline

The default endpoint for [[ApiSettings]]

Kind: static property of core

core.Attachment

Message class

The Message class is used to model a plain message attached to a transaction.

Kind: static property of core

core.AttachmentMessage

EncryptedMessage class

The EncryptedMessage class is a model for a encrypted message attached to a transaction.

Kind: static property of core

core~Account

Account class

The account class serves as a model for a Burstcoin account. It's meant to model the response from BRS API, except publicKey has been moved into the keys object.

Kind: inner class of core

core~Attachment

Attachment class

The attachment class is used to appended to transaction where appropriate. It is a super class for Message and EncryptedMessage.

Kind: inner class of core

core~BurstNode

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

Kind: inner class of core

core~TransactionArbitrarySubtype

Constants for arbitrary subtypes

Kind: inner property of core

core~TransactionAssetSubtype

Constants for asset subtypes

Kind: inner property of core

core~TransactionEscrowSubtype

Constants for escrow subtypes

Kind: inner property of core

core~TransactionLeasingSubtype

Constants for leasing subtypes

Kind: inner property of core

core~TransactionMarketplaceSubtype

Constants for marketplace subtypes

Kind: inner property of core

core~TransactionPaymentSubtype

Constants for payment subtypes

Kind: inner property of core

core~TransactionRewardRecipientSubtype

Constants for reward recipient subtypes (Pool Operation)

Kind: inner property of core

core~TransactionSmartContractSubtype

Constants for smart contract (aka AT) subtypes

Kind: inner property of core

core~TransactionType

Constants for transaction types

The transaction type is part of every [[Transaction]] object and used to distinguish block data. Additionally, to the transaction type a subtype is sent, that specifies the kind of transaction more detailly.

Kind: inner property of core

core~FeeQuantNQT

The smallest possible fee

Kind: inner constant of core

core~getAttachmentVersion(transaction) ⇒

Get the transaction attachment version identifier

Attachment types are identified by a field version.

Kind: inner method of core
Returns:

return Identifier, if exists, otherwise undefined

ParamDescription
transaction

The transaction to be checked

core~isAttachmentVersion(transaction, versionIdentifier) ⇒

Checks if a transaction attachment is of specific version

Kind: inner method of core
Returns:

true, if version string matches

ParamDescription
transaction

The transaction to be checked

versionIdentifier

The version string, i.e. MultiOutCreation

core~getContractDatablock(position, length) ⇒

Extracts a variables value as hexadecimal string from a contract's machine data

This is a generic function to extract arbitrary data from a contract. I's recommended to use the [[ContractHelper]] class instead

Kind: inner method of core
Returns:

The value as hexadecimal string (already considering endianness)

ParamDefaultDescription
position

The variables position

length16

The length of data to be extracted

core~constructAttachment(transaction, params) ⇒

Deprecated

Kind: inner method of core
Returns:

HttpParams


Hidden:

ParamDescription
transaction

The transaction with the attachment

params

Some HttpParams

core~signAndBroadcastTransaction(unsignedTransaction, service) ⇒

Signs and broadcasts a transaction

Kind: inner method of core
Returns:

The transaction Id


Hidden:

ParamDescription
unsignedTransaction

The unsigned transaction context

service

The service used for

core~getRecipientAmountsFromMultiOutPayment(transaction) ⇒

Tries to extract recipients and its amounts for multi out payments (different and same amount)

Kind: inner method of core
Returns:

A list of recipients and their payed amount (in NQT)


Throws:

  • An exception in case of wrong transaction types

ParamDescription
transaction

The transaction

core~getRecipientsAmount(recipientId, transaction) ⇒

Gets the amount from a transaction, considering ordinary and multi out transactions (with same and different payments)

Kind: inner method of core
Returns:

the amount in BURST (not NQT)

ParamDescription
recipientId

The numeric id of the recipient

transaction

The payment transaction

core~isMultiOutSameTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction with same amounts for each recipient

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core~isMultiOutTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction (with different amounts)

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core

core.FeeQuantNQT

The default deadline (in minutes) for Transactions

Kind: static property of core

core.DefaultDeadline

The default endpoint for [[ApiSettings]]

Kind: static property of core

core.Attachment

Message class

The Message class is used to model a plain message attached to a transaction.

Kind: static property of core

core.AttachmentMessage

EncryptedMessage class

The EncryptedMessage class is a model for a encrypted message attached to a transaction.

Kind: static property of core

core~Account

Account class

The account class serves as a model for a Burstcoin account. It's meant to model the response from BRS API, except publicKey has been moved into the keys object.

Kind: inner class of core

core~Attachment

Attachment class

The attachment class is used to appended to transaction where appropriate. It is a super class for Message and EncryptedMessage.

Kind: inner class of core

core~BurstNode

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

Kind: inner class of core

core~TransactionArbitrarySubtype

Constants for arbitrary subtypes

Kind: inner property of core

core~TransactionAssetSubtype

Constants for asset subtypes

Kind: inner property of core

core~TransactionEscrowSubtype

Constants for escrow subtypes

Kind: inner property of core

core~TransactionLeasingSubtype

Constants for leasing subtypes

Kind: inner property of core

core~TransactionMarketplaceSubtype

Constants for marketplace subtypes

Kind: inner property of core

core~TransactionPaymentSubtype

Constants for payment subtypes

Kind: inner property of core

core~TransactionRewardRecipientSubtype

Constants for reward recipient subtypes (Pool Operation)

Kind: inner property of core

core~TransactionSmartContractSubtype

Constants for smart contract (aka AT) subtypes

Kind: inner property of core

core~TransactionType

Constants for transaction types

The transaction type is part of every [[Transaction]] object and used to distinguish block data. Additionally, to the transaction type a subtype is sent, that specifies the kind of transaction more detailly.

Kind: inner property of core

core~FeeQuantNQT

The smallest possible fee

Kind: inner constant of core

core~getAttachmentVersion(transaction) ⇒

Get the transaction attachment version identifier

Attachment types are identified by a field version.

Kind: inner method of core
Returns:

return Identifier, if exists, otherwise undefined

ParamDescription
transaction

The transaction to be checked

core~isAttachmentVersion(transaction, versionIdentifier) ⇒

Checks if a transaction attachment is of specific version

Kind: inner method of core
Returns:

true, if version string matches

ParamDescription
transaction

The transaction to be checked

versionIdentifier

The version string, i.e. MultiOutCreation

core~getContractDatablock(position, length) ⇒

Extracts a variables value as hexadecimal string from a contract's machine data

This is a generic function to extract arbitrary data from a contract. I's recommended to use the [[ContractHelper]] class instead

Kind: inner method of core
Returns:

The value as hexadecimal string (already considering endianness)

ParamDefaultDescription
position

The variables position

length16

The length of data to be extracted

core~constructAttachment(transaction, params) ⇒

Deprecated

Kind: inner method of core
Returns:

HttpParams


Hidden:

ParamDescription
transaction

The transaction with the attachment

params

Some HttpParams

core~signAndBroadcastTransaction(unsignedTransaction, service) ⇒

Signs and broadcasts a transaction

Kind: inner method of core
Returns:

The transaction Id


Hidden:

ParamDescription
unsignedTransaction

The unsigned transaction context

service

The service used for

core~getRecipientAmountsFromMultiOutPayment(transaction) ⇒

Tries to extract recipients and its amounts for multi out payments (different and same amount)

Kind: inner method of core
Returns:

A list of recipients and their payed amount (in NQT)


Throws:

  • An exception in case of wrong transaction types

ParamDescription
transaction

The transaction

core~getRecipientsAmount(recipientId, transaction) ⇒

Gets the amount from a transaction, considering ordinary and multi out transactions (with same and different payments)

Kind: inner method of core
Returns:

the amount in BURST (not NQT)

ParamDescription
recipientId

The numeric id of the recipient

transaction

The payment transaction

core~isMultiOutSameTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction with same amounts for each recipient

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core~isMultiOutTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction (with different amounts)

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core

core.FeeQuantNQT

The default deadline (in minutes) for Transactions

Kind: static property of core

core.DefaultDeadline

The default endpoint for [[ApiSettings]]

Kind: static property of core

core.Attachment

Message class

The Message class is used to model a plain message attached to a transaction.

Kind: static property of core

core.AttachmentMessage

EncryptedMessage class

The EncryptedMessage class is a model for a encrypted message attached to a transaction.

Kind: static property of core

core~Account

Account class

The account class serves as a model for a Burstcoin account. It's meant to model the response from BRS API, except publicKey has been moved into the keys object.

Kind: inner class of core

core~Attachment

Attachment class

The attachment class is used to appended to transaction where appropriate. It is a super class for Message and EncryptedMessage.

Kind: inner class of core

core~BurstNode

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

Kind: inner class of core

core~TransactionArbitrarySubtype

Constants for arbitrary subtypes

Kind: inner property of core

core~TransactionAssetSubtype

Constants for asset subtypes

Kind: inner property of core

core~TransactionEscrowSubtype

Constants for escrow subtypes

Kind: inner property of core

core~TransactionLeasingSubtype

Constants for leasing subtypes

Kind: inner property of core

core~TransactionMarketplaceSubtype

Constants for marketplace subtypes

Kind: inner property of core

core~TransactionPaymentSubtype

Constants for payment subtypes

Kind: inner property of core

core~TransactionRewardRecipientSubtype

Constants for reward recipient subtypes (Pool Operation)

Kind: inner property of core

core~TransactionSmartContractSubtype

Constants for smart contract (aka AT) subtypes

Kind: inner property of core

core~TransactionType

Constants for transaction types

The transaction type is part of every [[Transaction]] object and used to distinguish block data. Additionally, to the transaction type a subtype is sent, that specifies the kind of transaction more detailly.

Kind: inner property of core

core~FeeQuantNQT

The smallest possible fee

Kind: inner constant of core

core~getAttachmentVersion(transaction) ⇒

Get the transaction attachment version identifier

Attachment types are identified by a field version.

Kind: inner method of core
Returns:

return Identifier, if exists, otherwise undefined

ParamDescription
transaction

The transaction to be checked

core~isAttachmentVersion(transaction, versionIdentifier) ⇒

Checks if a transaction attachment is of specific version

Kind: inner method of core
Returns:

true, if version string matches

ParamDescription
transaction

The transaction to be checked

versionIdentifier

The version string, i.e. MultiOutCreation

core~getContractDatablock(position, length) ⇒

Extracts a variables value as hexadecimal string from a contract's machine data

This is a generic function to extract arbitrary data from a contract. I's recommended to use the [[ContractHelper]] class instead

Kind: inner method of core
Returns:

The value as hexadecimal string (already considering endianness)

ParamDefaultDescription
position

The variables position

length16

The length of data to be extracted

core~constructAttachment(transaction, params) ⇒

Deprecated

Kind: inner method of core
Returns:

HttpParams


Hidden:

ParamDescription
transaction

The transaction with the attachment

params

Some HttpParams

core~signAndBroadcastTransaction(unsignedTransaction, service) ⇒

Signs and broadcasts a transaction

Kind: inner method of core
Returns:

The transaction Id


Hidden:

ParamDescription
unsignedTransaction

The unsigned transaction context

service

The service used for

core~getRecipientAmountsFromMultiOutPayment(transaction) ⇒

Tries to extract recipients and its amounts for multi out payments (different and same amount)

Kind: inner method of core
Returns:

A list of recipients and their payed amount (in NQT)


Throws:

  • An exception in case of wrong transaction types

ParamDescription
transaction

The transaction

core~getRecipientsAmount(recipientId, transaction) ⇒

Gets the amount from a transaction, considering ordinary and multi out transactions (with same and different payments)

Kind: inner method of core
Returns:

the amount in BURST (not NQT)

ParamDescription
recipientId

The numeric id of the recipient

transaction

The payment transaction

core~isMultiOutSameTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction with same amounts for each recipient

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core~isMultiOutTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction (with different amounts)

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core

core.FeeQuantNQT

The default deadline (in minutes) for Transactions

Kind: static property of core

core.DefaultDeadline

The default endpoint for [[ApiSettings]]

Kind: static property of core

core.Attachment

Message class

The Message class is used to model a plain message attached to a transaction.

Kind: static property of core

core.AttachmentMessage

EncryptedMessage class

The EncryptedMessage class is a model for a encrypted message attached to a transaction.

Kind: static property of core

core~Account

Account class

The account class serves as a model for a Burstcoin account. It's meant to model the response from BRS API, except publicKey has been moved into the keys object.

Kind: inner class of core

core~Attachment

Attachment class

The attachment class is used to appended to transaction where appropriate. It is a super class for Message and EncryptedMessage.

Kind: inner class of core

core~BurstNode

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

Kind: inner class of core

core~TransactionArbitrarySubtype

Constants for arbitrary subtypes

Kind: inner property of core

core~TransactionAssetSubtype

Constants for asset subtypes

Kind: inner property of core

core~TransactionEscrowSubtype

Constants for escrow subtypes

Kind: inner property of core

core~TransactionLeasingSubtype

Constants for leasing subtypes

Kind: inner property of core

core~TransactionMarketplaceSubtype

Constants for marketplace subtypes

Kind: inner property of core

core~TransactionPaymentSubtype

Constants for payment subtypes

Kind: inner property of core

core~TransactionRewardRecipientSubtype

Constants for reward recipient subtypes (Pool Operation)

Kind: inner property of core

core~TransactionSmartContractSubtype

Constants for smart contract (aka AT) subtypes

Kind: inner property of core

core~TransactionType

Constants for transaction types

The transaction type is part of every [[Transaction]] object and used to distinguish block data. Additionally, to the transaction type a subtype is sent, that specifies the kind of transaction more detailly.

Kind: inner property of core

core~FeeQuantNQT

The smallest possible fee

Kind: inner constant of core

core~getAttachmentVersion(transaction) ⇒

Get the transaction attachment version identifier

Attachment types are identified by a field version.

Kind: inner method of core
Returns:

return Identifier, if exists, otherwise undefined

ParamDescription
transaction

The transaction to be checked

core~isAttachmentVersion(transaction, versionIdentifier) ⇒

Checks if a transaction attachment is of specific version

Kind: inner method of core
Returns:

true, if version string matches

ParamDescription
transaction

The transaction to be checked

versionIdentifier

The version string, i.e. MultiOutCreation

core~getContractDatablock(position, length) ⇒

Extracts a variables value as hexadecimal string from a contract's machine data

This is a generic function to extract arbitrary data from a contract. I's recommended to use the [[ContractHelper]] class instead

Kind: inner method of core
Returns:

The value as hexadecimal string (already considering endianness)

ParamDefaultDescription
position

The variables position

length16

The length of data to be extracted

core~constructAttachment(transaction, params) ⇒

Deprecated

Kind: inner method of core
Returns:

HttpParams


Hidden:

ParamDescription
transaction

The transaction with the attachment

params

Some HttpParams

core~signAndBroadcastTransaction(unsignedTransaction, service) ⇒

Signs and broadcasts a transaction

Kind: inner method of core
Returns:

The transaction Id


Hidden:

ParamDescription
unsignedTransaction

The unsigned transaction context

service

The service used for

core~getRecipientAmountsFromMultiOutPayment(transaction) ⇒

Tries to extract recipients and its amounts for multi out payments (different and same amount)

Kind: inner method of core
Returns:

A list of recipients and their payed amount (in NQT)


Throws:

  • An exception in case of wrong transaction types

ParamDescription
transaction

The transaction

core~getRecipientsAmount(recipientId, transaction) ⇒

Gets the amount from a transaction, considering ordinary and multi out transactions (with same and different payments)

Kind: inner method of core
Returns:

the amount in BURST (not NQT)

ParamDescription
recipientId

The numeric id of the recipient

transaction

The payment transaction

core~isMultiOutSameTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction with same amounts for each recipient

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core~isMultiOutTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction (with different amounts)

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core

core.FeeQuantNQT

The default deadline (in minutes) for Transactions

Kind: static property of core

core.DefaultDeadline

The default endpoint for [[ApiSettings]]

Kind: static property of core

core.Attachment

Message class

The Message class is used to model a plain message attached to a transaction.

Kind: static property of core

core.AttachmentMessage

EncryptedMessage class

The EncryptedMessage class is a model for a encrypted message attached to a transaction.

Kind: static property of core

core~Account

Account class

The account class serves as a model for a Burstcoin account. It's meant to model the response from BRS API, except publicKey has been moved into the keys object.

Kind: inner class of core

core~Attachment

Attachment class

The attachment class is used to appended to transaction where appropriate. It is a super class for Message and EncryptedMessage.

Kind: inner class of core

core~BurstNode

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

Kind: inner class of core

core~TransactionArbitrarySubtype

Constants for arbitrary subtypes

Kind: inner property of core

core~TransactionAssetSubtype

Constants for asset subtypes

Kind: inner property of core

core~TransactionEscrowSubtype

Constants for escrow subtypes

Kind: inner property of core

core~TransactionLeasingSubtype

Constants for leasing subtypes

Kind: inner property of core

core~TransactionMarketplaceSubtype

Constants for marketplace subtypes

Kind: inner property of core

core~TransactionPaymentSubtype

Constants for payment subtypes

Kind: inner property of core

core~TransactionRewardRecipientSubtype

Constants for reward recipient subtypes (Pool Operation)

Kind: inner property of core

core~TransactionSmartContractSubtype

Constants for smart contract (aka AT) subtypes

Kind: inner property of core

core~TransactionType

Constants for transaction types

The transaction type is part of every [[Transaction]] object and used to distinguish block data. Additionally, to the transaction type a subtype is sent, that specifies the kind of transaction more detailly.

Kind: inner property of core

core~FeeQuantNQT

The smallest possible fee

Kind: inner constant of core

core~getAttachmentVersion(transaction) ⇒

Get the transaction attachment version identifier

Attachment types are identified by a field version.

Kind: inner method of core
Returns:

return Identifier, if exists, otherwise undefined

ParamDescription
transaction

The transaction to be checked

core~isAttachmentVersion(transaction, versionIdentifier) ⇒

Checks if a transaction attachment is of specific version

Kind: inner method of core
Returns:

true, if version string matches

ParamDescription
transaction

The transaction to be checked

versionIdentifier

The version string, i.e. MultiOutCreation

core~getContractDatablock(position, length) ⇒

Extracts a variables value as hexadecimal string from a contract's machine data

This is a generic function to extract arbitrary data from a contract. I's recommended to use the [[ContractHelper]] class instead

Kind: inner method of core
Returns:

The value as hexadecimal string (already considering endianness)

ParamDefaultDescription
position

The variables position

length16

The length of data to be extracted

core~constructAttachment(transaction, params) ⇒

Deprecated

Kind: inner method of core
Returns:

HttpParams


Hidden:

ParamDescription
transaction

The transaction with the attachment

params

Some HttpParams

core~signAndBroadcastTransaction(unsignedTransaction, service) ⇒

Signs and broadcasts a transaction

Kind: inner method of core
Returns:

The transaction Id


Hidden:

ParamDescription
unsignedTransaction

The unsigned transaction context

service

The service used for

core~getRecipientAmountsFromMultiOutPayment(transaction) ⇒

Tries to extract recipients and its amounts for multi out payments (different and same amount)

Kind: inner method of core
Returns:

A list of recipients and their payed amount (in NQT)


Throws:

  • An exception in case of wrong transaction types

ParamDescription
transaction

The transaction

core~getRecipientsAmount(recipientId, transaction) ⇒

Gets the amount from a transaction, considering ordinary and multi out transactions (with same and different payments)

Kind: inner method of core
Returns:

the amount in BURST (not NQT)

ParamDescription
recipientId

The numeric id of the recipient

transaction

The payment transaction

core~isMultiOutSameTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction with same amounts for each recipient

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core~isMultiOutTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction (with different amounts)

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core

core.FeeQuantNQT

The default deadline (in minutes) for Transactions

Kind: static property of core

core.DefaultDeadline

The default endpoint for [[ApiSettings]]

Kind: static property of core

core.Attachment

Message class

The Message class is used to model a plain message attached to a transaction.

Kind: static property of core

core.AttachmentMessage

EncryptedMessage class

The EncryptedMessage class is a model for a encrypted message attached to a transaction.

Kind: static property of core

core~Account

Account class

The account class serves as a model for a Burstcoin account. It's meant to model the response from BRS API, except publicKey has been moved into the keys object.

Kind: inner class of core

core~Attachment

Attachment class

The attachment class is used to appended to transaction where appropriate. It is a super class for Message and EncryptedMessage.

Kind: inner class of core

core~BurstNode

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

Kind: inner class of core

core~TransactionArbitrarySubtype

Constants for arbitrary subtypes

Kind: inner property of core

core~TransactionAssetSubtype

Constants for asset subtypes

Kind: inner property of core

core~TransactionEscrowSubtype

Constants for escrow subtypes

Kind: inner property of core

core~TransactionLeasingSubtype

Constants for leasing subtypes

Kind: inner property of core

core~TransactionMarketplaceSubtype

Constants for marketplace subtypes

Kind: inner property of core

core~TransactionPaymentSubtype

Constants for payment subtypes

Kind: inner property of core

core~TransactionRewardRecipientSubtype

Constants for reward recipient subtypes (Pool Operation)

Kind: inner property of core

core~TransactionSmartContractSubtype

Constants for smart contract (aka AT) subtypes

Kind: inner property of core

core~TransactionType

Constants for transaction types

The transaction type is part of every [[Transaction]] object and used to distinguish block data. Additionally, to the transaction type a subtype is sent, that specifies the kind of transaction more detailly.

Kind: inner property of core

core~FeeQuantNQT

The smallest possible fee

Kind: inner constant of core

core~getAttachmentVersion(transaction) ⇒

Get the transaction attachment version identifier

Attachment types are identified by a field version.

Kind: inner method of core
Returns:

return Identifier, if exists, otherwise undefined

ParamDescription
transaction

The transaction to be checked

core~isAttachmentVersion(transaction, versionIdentifier) ⇒

Checks if a transaction attachment is of specific version

Kind: inner method of core
Returns:

true, if version string matches

ParamDescription
transaction

The transaction to be checked

versionIdentifier

The version string, i.e. MultiOutCreation

core~getContractDatablock(position, length) ⇒

Extracts a variables value as hexadecimal string from a contract's machine data

This is a generic function to extract arbitrary data from a contract. I's recommended to use the [[ContractHelper]] class instead

Kind: inner method of core
Returns:

The value as hexadecimal string (already considering endianness)

ParamDefaultDescription
position

The variables position

length16

The length of data to be extracted

core~constructAttachment(transaction, params) ⇒

Deprecated

Kind: inner method of core
Returns:

HttpParams


Hidden:

ParamDescription
transaction

The transaction with the attachment

params

Some HttpParams

core~signAndBroadcastTransaction(unsignedTransaction, service) ⇒

Signs and broadcasts a transaction

Kind: inner method of core
Returns:

The transaction Id


Hidden:

ParamDescription
unsignedTransaction

The unsigned transaction context

service

The service used for

core~getRecipientAmountsFromMultiOutPayment(transaction) ⇒

Tries to extract recipients and its amounts for multi out payments (different and same amount)

Kind: inner method of core
Returns:

A list of recipients and their payed amount (in NQT)


Throws:

  • An exception in case of wrong transaction types

ParamDescription
transaction

The transaction

core~getRecipientsAmount(recipientId, transaction) ⇒

Gets the amount from a transaction, considering ordinary and multi out transactions (with same and different payments)

Kind: inner method of core
Returns:

the amount in BURST (not NQT)

ParamDescription
recipientId

The numeric id of the recipient

transaction

The payment transaction

core~isMultiOutSameTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction with same amounts for each recipient

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core~isMultiOutTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction (with different amounts)

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core

core.FeeQuantNQT

The default deadline (in minutes) for Transactions

Kind: static property of core

core.DefaultDeadline

The default endpoint for [[ApiSettings]]

Kind: static property of core

core.Attachment

Message class

The Message class is used to model a plain message attached to a transaction.

Kind: static property of core

core.AttachmentMessage

EncryptedMessage class

The EncryptedMessage class is a model for a encrypted message attached to a transaction.

Kind: static property of core

core~Account

Account class

The account class serves as a model for a Burstcoin account. It's meant to model the response from BRS API, except publicKey has been moved into the keys object.

Kind: inner class of core

core~Attachment

Attachment class

The attachment class is used to appended to transaction where appropriate. It is a super class for Message and EncryptedMessage.

Kind: inner class of core

core~BurstNode

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

Kind: inner class of core

core~TransactionArbitrarySubtype

Constants for arbitrary subtypes

Kind: inner property of core

core~TransactionAssetSubtype

Constants for asset subtypes

Kind: inner property of core

core~TransactionEscrowSubtype

Constants for escrow subtypes

Kind: inner property of core

core~TransactionLeasingSubtype

Constants for leasing subtypes

Kind: inner property of core

core~TransactionMarketplaceSubtype

Constants for marketplace subtypes

Kind: inner property of core

core~TransactionPaymentSubtype

Constants for payment subtypes

Kind: inner property of core

core~TransactionRewardRecipientSubtype

Constants for reward recipient subtypes (Pool Operation)

Kind: inner property of core

core~TransactionSmartContractSubtype

Constants for smart contract (aka AT) subtypes

Kind: inner property of core

core~TransactionType

Constants for transaction types

The transaction type is part of every [[Transaction]] object and used to distinguish block data. Additionally, to the transaction type a subtype is sent, that specifies the kind of transaction more detailly.

Kind: inner property of core

core~FeeQuantNQT

The smallest possible fee

Kind: inner constant of core

core~getAttachmentVersion(transaction) ⇒

Get the transaction attachment version identifier

Attachment types are identified by a field version.

Kind: inner method of core
Returns:

return Identifier, if exists, otherwise undefined

ParamDescription
transaction

The transaction to be checked

core~isAttachmentVersion(transaction, versionIdentifier) ⇒

Checks if a transaction attachment is of specific version

Kind: inner method of core
Returns:

true, if version string matches

ParamDescription
transaction

The transaction to be checked

versionIdentifier

The version string, i.e. MultiOutCreation

core~getContractDatablock(position, length) ⇒

Extracts a variables value as hexadecimal string from a contract's machine data

This is a generic function to extract arbitrary data from a contract. I's recommended to use the [[ContractHelper]] class instead

Kind: inner method of core
Returns:

The value as hexadecimal string (already considering endianness)

ParamDefaultDescription
position

The variables position

length16

The length of data to be extracted

core~constructAttachment(transaction, params) ⇒

Deprecated

Kind: inner method of core
Returns:

HttpParams


Hidden:

ParamDescription
transaction

The transaction with the attachment

params

Some HttpParams

core~signAndBroadcastTransaction(unsignedTransaction, service) ⇒

Signs and broadcasts a transaction

Kind: inner method of core
Returns:

The transaction Id


Hidden:

ParamDescription
unsignedTransaction

The unsigned transaction context

service

The service used for

core~getRecipientAmountsFromMultiOutPayment(transaction) ⇒

Tries to extract recipients and its amounts for multi out payments (different and same amount)

Kind: inner method of core
Returns:

A list of recipients and their payed amount (in NQT)


Throws:

  • An exception in case of wrong transaction types

ParamDescription
transaction

The transaction

core~getRecipientsAmount(recipientId, transaction) ⇒

Gets the amount from a transaction, considering ordinary and multi out transactions (with same and different payments)

Kind: inner method of core
Returns:

the amount in BURST (not NQT)

ParamDescription
recipientId

The numeric id of the recipient

transaction

The payment transaction

core~isMultiOutSameTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction with same amounts for each recipient

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core~isMultiOutTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction (with different amounts)

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core

core.FeeQuantNQT

The default deadline (in minutes) for Transactions

Kind: static property of core

core.DefaultDeadline

The default endpoint for [[ApiSettings]]

Kind: static property of core

core.Attachment

Message class

The Message class is used to model a plain message attached to a transaction.

Kind: static property of core

core.AttachmentMessage

EncryptedMessage class

The EncryptedMessage class is a model for a encrypted message attached to a transaction.

Kind: static property of core

core~Account

Account class

The account class serves as a model for a Burstcoin account. It's meant to model the response from BRS API, except publicKey has been moved into the keys object.

Kind: inner class of core

core~Attachment

Attachment class

The attachment class is used to appended to transaction where appropriate. It is a super class for Message and EncryptedMessage.

Kind: inner class of core

core~BurstNode

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

Kind: inner class of core

core~TransactionArbitrarySubtype

Constants for arbitrary subtypes

Kind: inner property of core

core~TransactionAssetSubtype

Constants for asset subtypes

Kind: inner property of core

core~TransactionEscrowSubtype

Constants for escrow subtypes

Kind: inner property of core

core~TransactionLeasingSubtype

Constants for leasing subtypes

Kind: inner property of core

core~TransactionMarketplaceSubtype

Constants for marketplace subtypes

Kind: inner property of core

core~TransactionPaymentSubtype

Constants for payment subtypes

Kind: inner property of core

core~TransactionRewardRecipientSubtype

Constants for reward recipient subtypes (Pool Operation)

Kind: inner property of core

core~TransactionSmartContractSubtype

Constants for smart contract (aka AT) subtypes

Kind: inner property of core

core~TransactionType

Constants for transaction types

The transaction type is part of every [[Transaction]] object and used to distinguish block data. Additionally, to the transaction type a subtype is sent, that specifies the kind of transaction more detailly.

Kind: inner property of core

core~FeeQuantNQT

The smallest possible fee

Kind: inner constant of core

core~getAttachmentVersion(transaction) ⇒

Get the transaction attachment version identifier

Attachment types are identified by a field version.

Kind: inner method of core
Returns:

return Identifier, if exists, otherwise undefined

ParamDescription
transaction

The transaction to be checked

core~isAttachmentVersion(transaction, versionIdentifier) ⇒

Checks if a transaction attachment is of specific version

Kind: inner method of core
Returns:

true, if version string matches

ParamDescription
transaction

The transaction to be checked

versionIdentifier

The version string, i.e. MultiOutCreation

core~getContractDatablock(position, length) ⇒

Extracts a variables value as hexadecimal string from a contract's machine data

This is a generic function to extract arbitrary data from a contract. I's recommended to use the [[ContractHelper]] class instead

Kind: inner method of core
Returns:

The value as hexadecimal string (already considering endianness)

ParamDefaultDescription
position

The variables position

length16

The length of data to be extracted

core~constructAttachment(transaction, params) ⇒

Deprecated

Kind: inner method of core
Returns:

HttpParams


Hidden:

ParamDescription
transaction

The transaction with the attachment

params

Some HttpParams

core~signAndBroadcastTransaction(unsignedTransaction, service) ⇒

Signs and broadcasts a transaction

Kind: inner method of core
Returns:

The transaction Id


Hidden:

ParamDescription
unsignedTransaction

The unsigned transaction context

service

The service used for

core~getRecipientAmountsFromMultiOutPayment(transaction) ⇒

Tries to extract recipients and its amounts for multi out payments (different and same amount)

Kind: inner method of core
Returns:

A list of recipients and their payed amount (in NQT)


Throws:

  • An exception in case of wrong transaction types

ParamDescription
transaction

The transaction

core~getRecipientsAmount(recipientId, transaction) ⇒

Gets the amount from a transaction, considering ordinary and multi out transactions (with same and different payments)

Kind: inner method of core
Returns:

the amount in BURST (not NQT)

ParamDescription
recipientId

The numeric id of the recipient

transaction

The payment transaction

core~isMultiOutSameTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction with same amounts for each recipient

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core~isMultiOutTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction (with different amounts)

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core

core.FeeQuantNQT

The default deadline (in minutes) for Transactions

Kind: static property of core

core.DefaultDeadline

The default endpoint for [[ApiSettings]]

Kind: static property of core

core.Attachment

Message class

The Message class is used to model a plain message attached to a transaction.

Kind: static property of core

core.AttachmentMessage

EncryptedMessage class

The EncryptedMessage class is a model for a encrypted message attached to a transaction.

Kind: static property of core

core~Account

Account class

The account class serves as a model for a Burstcoin account. It's meant to model the response from BRS API, except publicKey has been moved into the keys object.

Kind: inner class of core

core~Attachment

Attachment class

The attachment class is used to appended to transaction where appropriate. It is a super class for Message and EncryptedMessage.

Kind: inner class of core

core~BurstNode

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

Kind: inner class of core

core~TransactionArbitrarySubtype

Constants for arbitrary subtypes

Kind: inner property of core

core~TransactionAssetSubtype

Constants for asset subtypes

Kind: inner property of core

core~TransactionEscrowSubtype

Constants for escrow subtypes

Kind: inner property of core

core~TransactionLeasingSubtype

Constants for leasing subtypes

Kind: inner property of core

core~TransactionMarketplaceSubtype

Constants for marketplace subtypes

Kind: inner property of core

core~TransactionPaymentSubtype

Constants for payment subtypes

Kind: inner property of core

core~TransactionRewardRecipientSubtype

Constants for reward recipient subtypes (Pool Operation)

Kind: inner property of core

core~TransactionSmartContractSubtype

Constants for smart contract (aka AT) subtypes

Kind: inner property of core

core~TransactionType

Constants for transaction types

The transaction type is part of every [[Transaction]] object and used to distinguish block data. Additionally, to the transaction type a subtype is sent, that specifies the kind of transaction more detailly.

Kind: inner property of core

core~FeeQuantNQT

The smallest possible fee

Kind: inner constant of core

core~getAttachmentVersion(transaction) ⇒

Get the transaction attachment version identifier

Attachment types are identified by a field version.

Kind: inner method of core
Returns:

return Identifier, if exists, otherwise undefined

ParamDescription
transaction

The transaction to be checked

core~isAttachmentVersion(transaction, versionIdentifier) ⇒

Checks if a transaction attachment is of specific version

Kind: inner method of core
Returns:

true, if version string matches

ParamDescription
transaction

The transaction to be checked

versionIdentifier

The version string, i.e. MultiOutCreation

core~getContractDatablock(position, length) ⇒

Extracts a variables value as hexadecimal string from a contract's machine data

This is a generic function to extract arbitrary data from a contract. I's recommended to use the [[ContractHelper]] class instead

Kind: inner method of core
Returns:

The value as hexadecimal string (already considering endianness)

ParamDefaultDescription
position

The variables position

length16

The length of data to be extracted

core~constructAttachment(transaction, params) ⇒

Deprecated

Kind: inner method of core
Returns:

HttpParams


Hidden:

ParamDescription
transaction

The transaction with the attachment

params

Some HttpParams

core~signAndBroadcastTransaction(unsignedTransaction, service) ⇒

Signs and broadcasts a transaction

Kind: inner method of core
Returns:

The transaction Id


Hidden:

ParamDescription
unsignedTransaction

The unsigned transaction context

service

The service used for

core~getRecipientAmountsFromMultiOutPayment(transaction) ⇒

Tries to extract recipients and its amounts for multi out payments (different and same amount)

Kind: inner method of core
Returns:

A list of recipients and their payed amount (in NQT)


Throws:

  • An exception in case of wrong transaction types

ParamDescription
transaction

The transaction

core~getRecipientsAmount(recipientId, transaction) ⇒

Gets the amount from a transaction, considering ordinary and multi out transactions (with same and different payments)

Kind: inner method of core
Returns:

the amount in BURST (not NQT)

ParamDescription
recipientId

The numeric id of the recipient

transaction

The payment transaction

core~isMultiOutSameTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction with same amounts for each recipient

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core~isMultiOutTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction (with different amounts)

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core

core.FeeQuantNQT

The default deadline (in minutes) for Transactions

Kind: static property of core

core.DefaultDeadline

The default endpoint for [[ApiSettings]]

Kind: static property of core

core.Attachment

Message class

The Message class is used to model a plain message attached to a transaction.

Kind: static property of core

core.AttachmentMessage

EncryptedMessage class

The EncryptedMessage class is a model for a encrypted message attached to a transaction.

Kind: static property of core

core~Account

Account class

The account class serves as a model for a Burstcoin account. It's meant to model the response from BRS API, except publicKey has been moved into the keys object.

Kind: inner class of core

core~Attachment

Attachment class

The attachment class is used to appended to transaction where appropriate. It is a super class for Message and EncryptedMessage.

Kind: inner class of core

core~BurstNode

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

Kind: inner class of core

core~TransactionArbitrarySubtype

Constants for arbitrary subtypes

Kind: inner property of core

core~TransactionAssetSubtype

Constants for asset subtypes

Kind: inner property of core

core~TransactionEscrowSubtype

Constants for escrow subtypes

Kind: inner property of core

core~TransactionLeasingSubtype

Constants for leasing subtypes

Kind: inner property of core

core~TransactionMarketplaceSubtype

Constants for marketplace subtypes

Kind: inner property of core

core~TransactionPaymentSubtype

Constants for payment subtypes

Kind: inner property of core

core~TransactionRewardRecipientSubtype

Constants for reward recipient subtypes (Pool Operation)

Kind: inner property of core

core~TransactionSmartContractSubtype

Constants for smart contract (aka AT) subtypes

Kind: inner property of core

core~TransactionType

Constants for transaction types

The transaction type is part of every [[Transaction]] object and used to distinguish block data. Additionally, to the transaction type a subtype is sent, that specifies the kind of transaction more detailly.

Kind: inner property of core

core~FeeQuantNQT

The smallest possible fee

Kind: inner constant of core

core~getAttachmentVersion(transaction) ⇒

Get the transaction attachment version identifier

Attachment types are identified by a field version.

Kind: inner method of core
Returns:

return Identifier, if exists, otherwise undefined

ParamDescription
transaction

The transaction to be checked

core~isAttachmentVersion(transaction, versionIdentifier) ⇒

Checks if a transaction attachment is of specific version

Kind: inner method of core
Returns:

true, if version string matches

ParamDescription
transaction

The transaction to be checked

versionIdentifier

The version string, i.e. MultiOutCreation

core~getContractDatablock(position, length) ⇒

Extracts a variables value as hexadecimal string from a contract's machine data

This is a generic function to extract arbitrary data from a contract. I's recommended to use the [[ContractHelper]] class instead

Kind: inner method of core
Returns:

The value as hexadecimal string (already considering endianness)

ParamDefaultDescription
position

The variables position

length16

The length of data to be extracted

core~constructAttachment(transaction, params) ⇒

Deprecated

Kind: inner method of core
Returns:

HttpParams


Hidden:

ParamDescription
transaction

The transaction with the attachment

params

Some HttpParams

core~signAndBroadcastTransaction(unsignedTransaction, service) ⇒

Signs and broadcasts a transaction

Kind: inner method of core
Returns:

The transaction Id


Hidden:

ParamDescription
unsignedTransaction

The unsigned transaction context

service

The service used for

core~getRecipientAmountsFromMultiOutPayment(transaction) ⇒

Tries to extract recipients and its amounts for multi out payments (different and same amount)

Kind: inner method of core
Returns:

A list of recipients and their payed amount (in NQT)


Throws:

  • An exception in case of wrong transaction types

ParamDescription
transaction

The transaction

core~getRecipientsAmount(recipientId, transaction) ⇒

Gets the amount from a transaction, considering ordinary and multi out transactions (with same and different payments)

Kind: inner method of core
Returns:

the amount in BURST (not NQT)

ParamDescription
recipientId

The numeric id of the recipient

transaction

The payment transaction

core~isMultiOutSameTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction with same amounts for each recipient

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core~isMultiOutTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction (with different amounts)

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core

core.FeeQuantNQT

The default deadline (in minutes) for Transactions

Kind: static property of core

core.DefaultDeadline

The default endpoint for [[ApiSettings]]

Kind: static property of core

core.Attachment

Message class

The Message class is used to model a plain message attached to a transaction.

Kind: static property of core

core.AttachmentMessage

EncryptedMessage class

The EncryptedMessage class is a model for a encrypted message attached to a transaction.

Kind: static property of core

core~Account

Account class

The account class serves as a model for a Burstcoin account. It's meant to model the response from BRS API, except publicKey has been moved into the keys object.

Kind: inner class of core

core~Attachment

Attachment class

The attachment class is used to appended to transaction where appropriate. It is a super class for Message and EncryptedMessage.

Kind: inner class of core

core~BurstNode

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

Kind: inner class of core

core~TransactionArbitrarySubtype

Constants for arbitrary subtypes

Kind: inner property of core

core~TransactionAssetSubtype

Constants for asset subtypes

Kind: inner property of core

core~TransactionEscrowSubtype

Constants for escrow subtypes

Kind: inner property of core

core~TransactionLeasingSubtype

Constants for leasing subtypes

Kind: inner property of core

core~TransactionMarketplaceSubtype

Constants for marketplace subtypes

Kind: inner property of core

core~TransactionPaymentSubtype

Constants for payment subtypes

Kind: inner property of core

core~TransactionRewardRecipientSubtype

Constants for reward recipient subtypes (Pool Operation)

Kind: inner property of core

core~TransactionSmartContractSubtype

Constants for smart contract (aka AT) subtypes

Kind: inner property of core

core~TransactionType

Constants for transaction types

The transaction type is part of every [[Transaction]] object and used to distinguish block data. Additionally, to the transaction type a subtype is sent, that specifies the kind of transaction more detailly.

Kind: inner property of core

core~FeeQuantNQT

The smallest possible fee

Kind: inner constant of core

core~getAttachmentVersion(transaction) ⇒

Get the transaction attachment version identifier

Attachment types are identified by a field version.

Kind: inner method of core
Returns:

return Identifier, if exists, otherwise undefined

ParamDescription
transaction

The transaction to be checked

core~isAttachmentVersion(transaction, versionIdentifier) ⇒

Checks if a transaction attachment is of specific version

Kind: inner method of core
Returns:

true, if version string matches

ParamDescription
transaction

The transaction to be checked

versionIdentifier

The version string, i.e. MultiOutCreation

core~getContractDatablock(position, length) ⇒

Extracts a variables value as hexadecimal string from a contract's machine data

This is a generic function to extract arbitrary data from a contract. I's recommended to use the [[ContractHelper]] class instead

Kind: inner method of core
Returns:

The value as hexadecimal string (already considering endianness)

ParamDefaultDescription
position

The variables position

length16

The length of data to be extracted

core~constructAttachment(transaction, params) ⇒

Deprecated

Kind: inner method of core
Returns:

HttpParams


Hidden:

ParamDescription
transaction

The transaction with the attachment

params

Some HttpParams

core~signAndBroadcastTransaction(unsignedTransaction, service) ⇒

Signs and broadcasts a transaction

Kind: inner method of core
Returns:

The transaction Id


Hidden:

ParamDescription
unsignedTransaction

The unsigned transaction context

service

The service used for

core~getRecipientAmountsFromMultiOutPayment(transaction) ⇒

Tries to extract recipients and its amounts for multi out payments (different and same amount)

Kind: inner method of core
Returns:

A list of recipients and their payed amount (in NQT)


Throws:

  • An exception in case of wrong transaction types

ParamDescription
transaction

The transaction

core~getRecipientsAmount(recipientId, transaction) ⇒

Gets the amount from a transaction, considering ordinary and multi out transactions (with same and different payments)

Kind: inner method of core
Returns:

the amount in BURST (not NQT)

ParamDescription
recipientId

The numeric id of the recipient

transaction

The payment transaction

core~isMultiOutSameTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction with same amounts for each recipient

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core~isMultiOutTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction (with different amounts)

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core

core.FeeQuantNQT

The default deadline (in minutes) for Transactions

Kind: static property of core

core.DefaultDeadline

The default endpoint for [[ApiSettings]]

Kind: static property of core

core.Attachment

Message class

The Message class is used to model a plain message attached to a transaction.

Kind: static property of core

core.AttachmentMessage

EncryptedMessage class

The EncryptedMessage class is a model for a encrypted message attached to a transaction.

Kind: static property of core

core~Account

Account class

The account class serves as a model for a Burstcoin account. It's meant to model the response from BRS API, except publicKey has been moved into the keys object.

Kind: inner class of core

core~Attachment

Attachment class

The attachment class is used to appended to transaction where appropriate. It is a super class for Message and EncryptedMessage.

Kind: inner class of core

core~BurstNode

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

Kind: inner class of core

core~TransactionArbitrarySubtype

Constants for arbitrary subtypes

Kind: inner property of core

core~TransactionAssetSubtype

Constants for asset subtypes

Kind: inner property of core

core~TransactionEscrowSubtype

Constants for escrow subtypes

Kind: inner property of core

core~TransactionLeasingSubtype

Constants for leasing subtypes

Kind: inner property of core

core~TransactionMarketplaceSubtype

Constants for marketplace subtypes

Kind: inner property of core

core~TransactionPaymentSubtype

Constants for payment subtypes

Kind: inner property of core

core~TransactionRewardRecipientSubtype

Constants for reward recipient subtypes (Pool Operation)

Kind: inner property of core

core~TransactionSmartContractSubtype

Constants for smart contract (aka AT) subtypes

Kind: inner property of core

core~TransactionType

Constants for transaction types

The transaction type is part of every [[Transaction]] object and used to distinguish block data. Additionally, to the transaction type a subtype is sent, that specifies the kind of transaction more detailly.

Kind: inner property of core

core~FeeQuantNQT

The smallest possible fee

Kind: inner constant of core

core~getAttachmentVersion(transaction) ⇒

Get the transaction attachment version identifier

Attachment types are identified by a field version.

Kind: inner method of core
Returns:

return Identifier, if exists, otherwise undefined

ParamDescription
transaction

The transaction to be checked

core~isAttachmentVersion(transaction, versionIdentifier) ⇒

Checks if a transaction attachment is of specific version

Kind: inner method of core
Returns:

true, if version string matches

ParamDescription
transaction

The transaction to be checked

versionIdentifier

The version string, i.e. MultiOutCreation

core~getContractDatablock(position, length) ⇒

Extracts a variables value as hexadecimal string from a contract's machine data

This is a generic function to extract arbitrary data from a contract. I's recommended to use the [[ContractHelper]] class instead

Kind: inner method of core
Returns:

The value as hexadecimal string (already considering endianness)

ParamDefaultDescription
position

The variables position

length16

The length of data to be extracted

core~constructAttachment(transaction, params) ⇒

Deprecated

Kind: inner method of core
Returns:

HttpParams


Hidden:

ParamDescription
transaction

The transaction with the attachment

params

Some HttpParams

core~signAndBroadcastTransaction(unsignedTransaction, service) ⇒

Signs and broadcasts a transaction

Kind: inner method of core
Returns:

The transaction Id


Hidden:

ParamDescription
unsignedTransaction

The unsigned transaction context

service

The service used for

core~getRecipientAmountsFromMultiOutPayment(transaction) ⇒

Tries to extract recipients and its amounts for multi out payments (different and same amount)

Kind: inner method of core
Returns:

A list of recipients and their payed amount (in NQT)


Throws:

  • An exception in case of wrong transaction types

ParamDescription
transaction

The transaction

core~getRecipientsAmount(recipientId, transaction) ⇒

Gets the amount from a transaction, considering ordinary and multi out transactions (with same and different payments)

Kind: inner method of core
Returns:

the amount in BURST (not NQT)

ParamDescription
recipientId

The numeric id of the recipient

transaction

The payment transaction

core~isMultiOutSameTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction with same amounts for each recipient

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core~isMultiOutTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction (with different amounts)

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core

core.FeeQuantNQT

The default deadline (in minutes) for Transactions

Kind: static property of core

core.DefaultDeadline

The default endpoint for [[ApiSettings]]

Kind: static property of core

core.Attachment

Message class

The Message class is used to model a plain message attached to a transaction.

Kind: static property of core

core.AttachmentMessage

EncryptedMessage class

The EncryptedMessage class is a model for a encrypted message attached to a transaction.

Kind: static property of core

core~Account

Account class

The account class serves as a model for a Burstcoin account. It's meant to model the response from BRS API, except publicKey has been moved into the keys object.

Kind: inner class of core

core~Attachment

Attachment class

The attachment class is used to appended to transaction where appropriate. It is a super class for Message and EncryptedMessage.

Kind: inner class of core

core~BurstNode

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

Kind: inner class of core

core~TransactionArbitrarySubtype

Constants for arbitrary subtypes

Kind: inner property of core

core~TransactionAssetSubtype

Constants for asset subtypes

Kind: inner property of core

core~TransactionEscrowSubtype

Constants for escrow subtypes

Kind: inner property of core

core~TransactionLeasingSubtype

Constants for leasing subtypes

Kind: inner property of core

core~TransactionMarketplaceSubtype

Constants for marketplace subtypes

Kind: inner property of core

core~TransactionPaymentSubtype

Constants for payment subtypes

Kind: inner property of core

core~TransactionRewardRecipientSubtype

Constants for reward recipient subtypes (Pool Operation)

Kind: inner property of core

core~TransactionSmartContractSubtype

Constants for smart contract (aka AT) subtypes

Kind: inner property of core

core~TransactionType

Constants for transaction types

The transaction type is part of every [[Transaction]] object and used to distinguish block data. Additionally, to the transaction type a subtype is sent, that specifies the kind of transaction more detailly.

Kind: inner property of core

core~FeeQuantNQT

The smallest possible fee

Kind: inner constant of core

core~getAttachmentVersion(transaction) ⇒

Get the transaction attachment version identifier

Attachment types are identified by a field version.

Kind: inner method of core
Returns:

return Identifier, if exists, otherwise undefined

ParamDescription
transaction

The transaction to be checked

core~isAttachmentVersion(transaction, versionIdentifier) ⇒

Checks if a transaction attachment is of specific version

Kind: inner method of core
Returns:

true, if version string matches

ParamDescription
transaction

The transaction to be checked

versionIdentifier

The version string, i.e. MultiOutCreation

core~getContractDatablock(position, length) ⇒

Extracts a variables value as hexadecimal string from a contract's machine data

This is a generic function to extract arbitrary data from a contract. I's recommended to use the [[ContractHelper]] class instead

Kind: inner method of core
Returns:

The value as hexadecimal string (already considering endianness)

ParamDefaultDescription
position

The variables position

length16

The length of data to be extracted

core~constructAttachment(transaction, params) ⇒

Deprecated

Kind: inner method of core
Returns:

HttpParams


Hidden:

ParamDescription
transaction

The transaction with the attachment

params

Some HttpParams

core~signAndBroadcastTransaction(unsignedTransaction, service) ⇒

Signs and broadcasts a transaction

Kind: inner method of core
Returns:

The transaction Id


Hidden:

ParamDescription
unsignedTransaction

The unsigned transaction context

service

The service used for

core~getRecipientAmountsFromMultiOutPayment(transaction) ⇒

Tries to extract recipients and its amounts for multi out payments (different and same amount)

Kind: inner method of core
Returns:

A list of recipients and their payed amount (in NQT)


Throws:

  • An exception in case of wrong transaction types

ParamDescription
transaction

The transaction

core~getRecipientsAmount(recipientId, transaction) ⇒

Gets the amount from a transaction, considering ordinary and multi out transactions (with same and different payments)

Kind: inner method of core
Returns:

the amount in BURST (not NQT)

ParamDescription
recipientId

The numeric id of the recipient

transaction

The payment transaction

core~isMultiOutSameTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction with same amounts for each recipient

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core~isMultiOutTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction (with different amounts)

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core

core.FeeQuantNQT

The default deadline (in minutes) for Transactions

Kind: static property of core

core.DefaultDeadline

The default endpoint for [[ApiSettings]]

Kind: static property of core

core.Attachment

Message class

The Message class is used to model a plain message attached to a transaction.

Kind: static property of core

core.AttachmentMessage

EncryptedMessage class

The EncryptedMessage class is a model for a encrypted message attached to a transaction.

Kind: static property of core

core~Account

Account class

The account class serves as a model for a Burstcoin account. It's meant to model the response from BRS API, except publicKey has been moved into the keys object.

Kind: inner class of core

core~Attachment

Attachment class

The attachment class is used to appended to transaction where appropriate. It is a super class for Message and EncryptedMessage.

Kind: inner class of core

core~BurstNode

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

Kind: inner class of core

core~TransactionArbitrarySubtype

Constants for arbitrary subtypes

Kind: inner property of core

core~TransactionAssetSubtype

Constants for asset subtypes

Kind: inner property of core

core~TransactionEscrowSubtype

Constants for escrow subtypes

Kind: inner property of core

core~TransactionLeasingSubtype

Constants for leasing subtypes

Kind: inner property of core

core~TransactionMarketplaceSubtype

Constants for marketplace subtypes

Kind: inner property of core

core~TransactionPaymentSubtype

Constants for payment subtypes

Kind: inner property of core

core~TransactionRewardRecipientSubtype

Constants for reward recipient subtypes (Pool Operation)

Kind: inner property of core

core~TransactionSmartContractSubtype

Constants for smart contract (aka AT) subtypes

Kind: inner property of core

core~TransactionType

Constants for transaction types

The transaction type is part of every [[Transaction]] object and used to distinguish block data. Additionally, to the transaction type a subtype is sent, that specifies the kind of transaction more detailly.

Kind: inner property of core

core~FeeQuantNQT

The smallest possible fee

Kind: inner constant of core

core~getAttachmentVersion(transaction) ⇒

Get the transaction attachment version identifier

Attachment types are identified by a field version.

Kind: inner method of core
Returns:

return Identifier, if exists, otherwise undefined

ParamDescription
transaction

The transaction to be checked

core~isAttachmentVersion(transaction, versionIdentifier) ⇒

Checks if a transaction attachment is of specific version

Kind: inner method of core
Returns:

true, if version string matches

ParamDescription
transaction

The transaction to be checked

versionIdentifier

The version string, i.e. MultiOutCreation

core~getContractDatablock(position, length) ⇒

Extracts a variables value as hexadecimal string from a contract's machine data

This is a generic function to extract arbitrary data from a contract. I's recommended to use the [[ContractHelper]] class instead

Kind: inner method of core
Returns:

The value as hexadecimal string (already considering endianness)

ParamDefaultDescription
position

The variables position

length16

The length of data to be extracted

core~constructAttachment(transaction, params) ⇒

Deprecated

Kind: inner method of core
Returns:

HttpParams


Hidden:

ParamDescription
transaction

The transaction with the attachment

params

Some HttpParams

core~signAndBroadcastTransaction(unsignedTransaction, service) ⇒

Signs and broadcasts a transaction

Kind: inner method of core
Returns:

The transaction Id


Hidden:

ParamDescription
unsignedTransaction

The unsigned transaction context

service

The service used for

core~getRecipientAmountsFromMultiOutPayment(transaction) ⇒

Tries to extract recipients and its amounts for multi out payments (different and same amount)

Kind: inner method of core
Returns:

A list of recipients and their payed amount (in NQT)


Throws:

  • An exception in case of wrong transaction types

ParamDescription
transaction

The transaction

core~getRecipientsAmount(recipientId, transaction) ⇒

Gets the amount from a transaction, considering ordinary and multi out transactions (with same and different payments)

Kind: inner method of core
Returns:

the amount in BURST (not NQT)

ParamDescription
recipientId

The numeric id of the recipient

transaction

The payment transaction

core~isMultiOutSameTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction with same amounts for each recipient

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core~isMultiOutTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction (with different amounts)

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core

core.FeeQuantNQT

The default deadline (in minutes) for Transactions

Kind: static property of core

core.DefaultDeadline

The default endpoint for [[ApiSettings]]

Kind: static property of core

core.Attachment

Message class

The Message class is used to model a plain message attached to a transaction.

Kind: static property of core

core.AttachmentMessage

EncryptedMessage class

The EncryptedMessage class is a model for a encrypted message attached to a transaction.

Kind: static property of core

core~Account

Account class

The account class serves as a model for a Burstcoin account. It's meant to model the response from BRS API, except publicKey has been moved into the keys object.

Kind: inner class of core

core~Attachment

Attachment class

The attachment class is used to appended to transaction where appropriate. It is a super class for Message and EncryptedMessage.

Kind: inner class of core

core~BurstNode

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

Kind: inner class of core

core~TransactionArbitrarySubtype

Constants for arbitrary subtypes

Kind: inner property of core

core~TransactionAssetSubtype

Constants for asset subtypes

Kind: inner property of core

core~TransactionEscrowSubtype

Constants for escrow subtypes

Kind: inner property of core

core~TransactionLeasingSubtype

Constants for leasing subtypes

Kind: inner property of core

core~TransactionMarketplaceSubtype

Constants for marketplace subtypes

Kind: inner property of core

core~TransactionPaymentSubtype

Constants for payment subtypes

Kind: inner property of core

core~TransactionRewardRecipientSubtype

Constants for reward recipient subtypes (Pool Operation)

Kind: inner property of core

core~TransactionSmartContractSubtype

Constants for smart contract (aka AT) subtypes

Kind: inner property of core

core~TransactionType

Constants for transaction types

The transaction type is part of every [[Transaction]] object and used to distinguish block data. Additionally, to the transaction type a subtype is sent, that specifies the kind of transaction more detailly.

Kind: inner property of core

core~FeeQuantNQT

The smallest possible fee

Kind: inner constant of core

core~getAttachmentVersion(transaction) ⇒

Get the transaction attachment version identifier

Attachment types are identified by a field version.

Kind: inner method of core
Returns:

return Identifier, if exists, otherwise undefined

ParamDescription
transaction

The transaction to be checked

core~isAttachmentVersion(transaction, versionIdentifier) ⇒

Checks if a transaction attachment is of specific version

Kind: inner method of core
Returns:

true, if version string matches

ParamDescription
transaction

The transaction to be checked

versionIdentifier

The version string, i.e. MultiOutCreation

core~getContractDatablock(position, length) ⇒

Extracts a variables value as hexadecimal string from a contract's machine data

This is a generic function to extract arbitrary data from a contract. I's recommended to use the [[ContractHelper]] class instead

Kind: inner method of core
Returns:

The value as hexadecimal string (already considering endianness)

ParamDefaultDescription
position

The variables position

length16

The length of data to be extracted

core~constructAttachment(transaction, params) ⇒

Deprecated

Kind: inner method of core
Returns:

HttpParams


Hidden:

ParamDescription
transaction

The transaction with the attachment

params

Some HttpParams

core~signAndBroadcastTransaction(unsignedTransaction, service) ⇒

Signs and broadcasts a transaction

Kind: inner method of core
Returns:

The transaction Id


Hidden:

ParamDescription
unsignedTransaction

The unsigned transaction context

service

The service used for

core~getRecipientAmountsFromMultiOutPayment(transaction) ⇒

Tries to extract recipients and its amounts for multi out payments (different and same amount)

Kind: inner method of core
Returns:

A list of recipients and their payed amount (in NQT)


Throws:

  • An exception in case of wrong transaction types

ParamDescription
transaction

The transaction

core~getRecipientsAmount(recipientId, transaction) ⇒

Gets the amount from a transaction, considering ordinary and multi out transactions (with same and different payments)

Kind: inner method of core
Returns:

the amount in BURST (not NQT)

ParamDescription
recipientId

The numeric id of the recipient

transaction

The payment transaction

core~isMultiOutSameTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction with same amounts for each recipient

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core~isMultiOutTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction (with different amounts)

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core

core.FeeQuantNQT

The default deadline (in minutes) for Transactions

Kind: static property of core

core.DefaultDeadline

The default endpoint for [[ApiSettings]]

Kind: static property of core

core.Attachment

Message class

The Message class is used to model a plain message attached to a transaction.

Kind: static property of core

core.AttachmentMessage

EncryptedMessage class

The EncryptedMessage class is a model for a encrypted message attached to a transaction.

Kind: static property of core

core~Account

Account class

The account class serves as a model for a Burstcoin account. It's meant to model the response from BRS API, except publicKey has been moved into the keys object.

Kind: inner class of core

core~Attachment

Attachment class

The attachment class is used to appended to transaction where appropriate. It is a super class for Message and EncryptedMessage.

Kind: inner class of core

core~BurstNode

Original work Copyright (c) 2018 PoC-Consortium Modified work Copyright (c) 2019 Burst Apps Team

Kind: inner class of core

core~TransactionArbitrarySubtype

Constants for arbitrary subtypes

Kind: inner property of core

core~TransactionAssetSubtype

Constants for asset subtypes

Kind: inner property of core

core~TransactionEscrowSubtype

Constants for escrow subtypes

Kind: inner property of core

core~TransactionLeasingSubtype

Constants for leasing subtypes

Kind: inner property of core

core~TransactionMarketplaceSubtype

Constants for marketplace subtypes

Kind: inner property of core

core~TransactionPaymentSubtype

Constants for payment subtypes

Kind: inner property of core

core~TransactionRewardRecipientSubtype

Constants for reward recipient subtypes (Pool Operation)

Kind: inner property of core

core~TransactionSmartContractSubtype

Constants for smart contract (aka AT) subtypes

Kind: inner property of core

core~TransactionType

Constants for transaction types

The transaction type is part of every [[Transaction]] object and used to distinguish block data. Additionally, to the transaction type a subtype is sent, that specifies the kind of transaction more detailly.

Kind: inner property of core

core~FeeQuantNQT

The smallest possible fee

Kind: inner constant of core

core~getAttachmentVersion(transaction) ⇒

Get the transaction attachment version identifier

Attachment types are identified by a field version.

Kind: inner method of core
Returns:

return Identifier, if exists, otherwise undefined

ParamDescription
transaction

The transaction to be checked

core~isAttachmentVersion(transaction, versionIdentifier) ⇒

Checks if a transaction attachment is of specific version

Kind: inner method of core
Returns:

true, if version string matches

ParamDescription
transaction

The transaction to be checked

versionIdentifier

The version string, i.e. MultiOutCreation

core~getContractDatablock(position, length) ⇒

Extracts a variables value as hexadecimal string from a contract's machine data

This is a generic function to extract arbitrary data from a contract. I's recommended to use the [[ContractHelper]] class instead

Kind: inner method of core
Returns:

The value as hexadecimal string (already considering endianness)

ParamDefaultDescription
position

The variables position

length16

The length of data to be extracted

core~constructAttachment(transaction, params) ⇒

Deprecated

Kind: inner method of core
Returns:

HttpParams


Hidden:

ParamDescription
transaction

The transaction with the attachment

params

Some HttpParams

core~signAndBroadcastTransaction(unsignedTransaction, service) ⇒

Signs and broadcasts a transaction

Kind: inner method of core
Returns:

The transaction Id


Hidden:

ParamDescription
unsignedTransaction

The unsigned transaction context

service

The service used for

core~getRecipientAmountsFromMultiOutPayment(transaction) ⇒

Tries to extract recipients and its amounts for multi out payments (different and same amount)

Kind: inner method of core
Returns:

A list of recipients and their payed amount (in NQT)


Throws:

  • An exception in case of wrong transaction types

ParamDescription
transaction

The transaction

core~getRecipientsAmount(recipientId, transaction) ⇒

Gets the amount from a transaction, considering ordinary and multi out transactions (with same and different payments)

Kind: inner method of core
Returns:

the amount in BURST (not NQT)

ParamDescription
recipientId

The numeric id of the recipient

transaction

The payment transaction

core~isMultiOutSameTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction with same amounts for each recipient

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

core~isMultiOutTransaction(transaction) ⇒

Checks if a transaction is a multi out transaction (with different amounts)

Kind: inner method of core
Returns:

true, if is a multi out transaction

ParamDescription
transaction

Transaction to be checked

ApiSettings

Settings for API used in [[composeApi]]

Kind: global class

new ApiSettings(nodeHost, apiRootUrl, apiVersion, httpOptions)

ParamTypeDescription
nodeHoststring

The url of the Burst peer

apiRootUrlstring

The optional api endpoint, i.e. /burst. Usually, you wont use this.

apiVersionApiVersion

For future usage.

httpOptionsany | AxiosRequestSettings

Optional http options, like additional header. The default implementation uses axios. In case of a custom client pass your own options. see Axios Configuration

ContractHelper

Helper class for contracts

A contract owns additional data, which is splitted in 8 byte blocks. The content is encoded in hexadecimal representation and big endianness. This helper class facilitates access to these data

Kind: global class

contractHelper.contract ⇒

Kind: instance property of ContractHelper
Returns:

Get the contract


contractHelper.getVariableAsString(index) ⇒

Get a variable as string

Kind: instance method of ContractHelper
Returns:

The data as string (Utf-8)

ParamDescription
index

The index of variable (starting at 0)

contractHelper.getDataBlocksAsString(index, count) ⇒

Get multiple data blocks as string

Kind: instance method of ContractHelper
Returns:

The data as string (Utf-8)

ParamDescription
index

The index of variable (starting at 0)

count

Number of blocks

contractHelper.getVariableAsDecimal(index) ⇒

Get a variable as decimal (string)

Kind: instance method of ContractHelper
Returns:

The data as a decimal string sequence

ParamDescription
index

The index of variable (starting at 0)

contractHelper.getVariable(index) ⇒

Get a variable at given position/index

Kind: instance method of ContractHelper
Returns:

The data as hexadecimal string (in little endianness)

ParamDescription
index

The index of variable (starting at 0)

contractHelper.getHexDataAt(index, length) ⇒

Get a hexadecimal data block of arbitrary length at given position/index

Kind: instance method of ContractHelper
Returns:

The data as hexadecimal string (in little endianness)

ParamDescription
index

The index of variable (starting at 0)

length

The length of the data block (must be a multiple of 2)

BurstService

Generic BRS Web Service class.

Kind: global class

new BurstService(settings)

Creates Service instance

ParamDescription
settings

The settings for the service

burstService.toBRSEndpoint(method, data) ⇒ string

Mounts a BRS conform API (V1) endpoint of format <host>?requestType=getBlock&height=123

Kind: instance method of BurstService
Returns: string -

The mounted url (without host)


See: https://burstwiki.org/wiki/The_Burst_API

ParamTypeDescription
methodstring

The method name for requestType

dataany

A JSON object which will be mapped to url params

burstService.query(method, args, options) ⇒ Promise.<T>

Requests a query to BRS

Kind: instance method of BurstService
Returns: Promise.<T> -

The response data of success


Throws:

  • HttpError in case of failure

ParamTypeDescription
methodstring

The BRS method according https://burstwiki.org/wiki/The_Burst_API

argsany

A JSON object which will be mapped to url params

optionsany | AxiosRequestConfig

The optional request configuration for the passed Http client

burstService.send(method, args, body, options) ⇒ Promise.<T>

Send data to BRS

Kind: instance method of BurstService
Returns: Promise.<T> -

The response data of success


Throws:

  • HttpError in case of failure

ParamTypeDescription
methodstring

The BRS method according https://burstwiki.org/wiki/The_Burst_API. Note that there are only a few POST methods

argsany

A JSON object which will be mapped to url params

bodyany

An object with key value pairs to submit as post body

optionsany | AxiosRequestConfig

The optional request configuration for the passed Http client

ApiSettings ⇒

Composes the API, i.e. setup the environment and mounts the API structure with its functions.

const api = composeApi({
  nodeHost: 'https://wallet1.burst-team.us:2083', // one of the mainnet nodes
})

Note, that this method mounts the entire API, i.e. all available methods. One may also customize the API composition using [[ApiComposer]].

Kind: global variable
Returns:

The complete API

ParamDescription
settings

necessary execution context

new ApiSettings(nodeHost, apiRootUrl, apiVersion, httpOptions)

ParamTypeDescription
nodeHoststring

The url of the Burst peer

apiRootUrlstring

The optional api endpoint, i.e. /burst. Usually, you wont use this.

apiVersionApiVersion

For future usage.

httpOptionsany | AxiosRequestSettings

Optional http options, like additional header. The default implementation uses axios. In case of a custom client pass your own options. see Axios Configuration

createParametersFromAttachment(attachment, params) ⇒

Creates BRS Http send parameters for a transaction from attachment data

Kind: global function
Returns:

HttpParams


Hidden:

ParamDescription
attachment

The attachment

params

Any object

FAQs

Package last updated on 18 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc