Contains a mosaic identifier in hexadecimal format. This
is the identifier of the asset used to pay for fees on
dHealth Network.
You should only ever change the default asset identifier
when you aim to connect to a different network than dHealth
Network.
Please, be mindful when modifying the currencyMosaicId
value
as you may thereby invalidate transactions that are created
with this library. Use with caution.
Contains an the UTC timestamp in seconds which is used
as a security prevent time-attacks on dHealth Network.
You should only ever change the default epoch adjustment
when you aim to connect to a different network than dHealth
Network.
Please, be mindful when modifying the epochAdjustment
value
as you may thereby invalidate transactions that are created
with this library. Use with caution.
Contains the identifier of the blockchain network and is
used as a security to prevent transaction replays. When
creating transactions, this identifier is attached so that
after signing the transaction, the transaction can only be
broadcast using dHealth Network Nodes.
You should only ever change the default identifier when
you aim to connect to a different network than dHealth
Network.
Please, be mindful when modifying the generationHash
value
as you may thereby invalidate transactions that are created
with this library. Use with caution.
Contains the type of network that is used to broadcast
transactions. Typically, this can contain either of 104
for a MAINNET network, or 152
for a TESTNET.
You should only ever change the default network type
when you aim to connect to a different network than dHealth
Network.
Please, be mindful when modifying the networkType
value
as you may thereby invalidate transactions that are created
with this library. Use with caution.
This method should return a Deadline
instance as defined
in @dhealth/sdk
. The transaction deadline consists of the
UTC timestamp at which the transaction shall expire in
case it is not yet confirmed in a block.
A UTC timestamp represented as an object of Deadline
.
This method should return the maximum fee that can be
paid for a transaction to be included in a block. This
amount is represented using the UInt64
class as defined
in @dhealth/sdk
and is protected for number overflows.
The amount of assets to be attached as a fee for the node operator.
A number of assets ("amount") that is attached to a transfer transaction as the fee for the node operator.
This method should return an array of Mosaic
instances as
defined in @dhealth/sdk
. The transaction assets consists
of a set of assets that are attached to a transaction
on dHealth Network.
The amount of assets to be attached ("how many").
An array of assets and amounts thereof that are attached to a transfer transaction.
This method should return a NetworkType
instance as defined
in @dhealth/sdk
. Typically, this can contain either of 104
for a MAINNET network, or 152
for a TESTNET.
A number represented as one of the values in the enumeration NetworkType
.
This method should return a PublicAccount
instance as
defined in @dhealth/sdk
and uses a public key, as well
as a network type to be able to create the correct account.
The PublicAccount
class of @dhealth/sdk
permits to refer
to pairs of public key and address which belong together
and can both be used to identify accounts.
As it is not possible to tell a public key from an address,
other than by executing connected network requests, we use
public keys so that we are always able to perform both
tasks: identifying an account (by an address) and verifying
transactions (with a public key).
The account's public key. This is a string
of 64
characters in hexadecimal notation.
This can contain either of 104
for a MAINNET network, or 152
for a TESTNET.
A public account information from dHealth Network. This consists of a pair of public key and address.
Generated using TypeDoc
NetworkParameters
This interface defines the requirements for objects passed as network parameters to Contract instances.
Use this interface whenever you are trying to choose a network for which to prepare transactions. By default, we define and use the dHealthNetwork implementation (child class).
Please, be mindful when modifying the network parameters as you may thereby invalidate transactions that are created with this library. Use with caution.
Using the
NetworkParameters
interfaceOther links
Contract | dHealthNetwork
v0.3.0