Contains the transaction deadline. This is a relative timestamp
that must be formatted using @dhealth/sdk
's Deadline.create()
.
This field permits to overwrite a prepared contract's deadline such
that it can be broadcast (more than 2 hours) in the future.
Note that, by default, this library uses deadlines that are 2-hours
in the future and are relative to dHealth Network's epoch adjustment
of 1616978397s
since the UTC start epoch.
Contains the transaction's maximum paid fee. This is the amount
of DHP that can possibly be paid for including this transaction
in a block.
Note that this does not correspond to the actual fee paid.
Note that this field expects absolute values. Because of that
if you want to express an amount of 1.5 DHP
, you must format
it using the smallest possible unit: 1500000
(divisibility 6).
Contains the transaction's recipient address. We use an address as an account identifier and refer hereby to the destination of funds in a transfer transaction.
Contains the transaction's recipient public key. We use
a public key here because we need to be able to generate
an address (account identifier) but also we need to be
able to verify transaction signatures which happens
using a public key, not an address.
The address generated using this public key, corresponds
to the address of the account that defines the destination
of the transaction on dHealth Network.
Contains the transaction's signer public key. We use
a public key here because we need to be able to generate
an address (account identifier) but also we need to be
able to verify transaction signatures which happens
using a public key, not an address.
The address generated using this public key, corresponds
to the address of the account that defines the origin
of the transaction on dHealth Network.
This field is optional and does not need to be present
with all TransactionParameters
objects.
Generated using TypeDoc
TransactionParameters
This interface defines the requirements for objects passed as transaction parameters to the method Contract.toTransaction as implemented in the child class specialization.
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).
Use this interface whenever you are defining a new contract or creating sets of parameters to be passed to transactions.
Using the
TransactionParameters
interfaceOther links
Contract.toTransaction
v0.3.0