postchain-client
Advanced tools
Changelog
[1.15.1]
web3-core-promievent
.Web3PromiEvent
is now exported publicly.Changelog
[1.15.0]
RawGtxBody
and RawGtxOp
are now exported publicly.getDigestToSignFromRawGtxBody
is now exported publicly.SignatureProvider
type callback method sign()
to provide a paramater of type rawGtxBody
instead of a digest
. This change is implemented to make it possible to review the content of a transaction before signing.Changelog
[1.14.0]
Changelog
[1.13.0]
sendTransaction
and signAndSendUniqueTransaction
now takes a new flag parameter doStatusPolling
which can be set to either true
or false
. Setting the flag to false
will prevent any further automatic status polling requests from being sent for the transaction. The method will in this case return with a final transaction status of waiting
.disable
method to loggercreateStubClient
function returning an IClient
. All methods returning a Promise
return a rejected Promise
, all methods which return Web3PromiEvent
return a rejected Web3PromiEvent
and other methods just throw an Error
.getAnchoringTransactionForBlockRid
.Changelog
[1.12.0]
Changelog
[1.11.0]
getBlockInfo
to enable the user to fetch the data for a single block by providing either height
or txRid
.Changelog
[1.10.0]
pollingInterval
has changed name to statusPollInterval
in NetworkSettings
. The reason is to easier understand what the polling interval is used for.sendTransaction
and signAndSendUniqueTransaction
continue polling the status of the transaction if the last returned status was unknown
. Previously only status waiting
triggered new fetching. To avoid polling infinitely, a maximum number has been added. It is configurable when creating a client, see section Added.GTX
.export type GTX = {
[x: string]: unknown; // <---- removed
blockchainRid: Buffer;
operations: RellOperation[];
signers: Buffer[];
signatures?: Buffer[];
};
sendTransaction
andsignAndSendUniqueTransaction
should poll for the status before quitting. It is included in NetworkSettings
and is called statusPollCount
. Default value is 20.@types/node
as devDependencies
instead of dependencies
.Changelog
[1.9.0]
events
as peer-dependency. Solves users issue of missing events
when using the lib in a non Node environment.getBlocksInfo
.getDigestToSignFromBody
. It should take an input as type RawGtxBody
instead of GtxBody
. The function is renamed to getDigestToSignFromRawGtxBody
.askUserBToSign
.