A value set when sending the request, to be mirrored by the server in the corresponding response.
Approximation of the memory overhead that comes from the associated input and entry in the ledger map data-structure. Roughly 20 words of memory times 8 bytes each.
Initialize a LedgerStateQueryClient from an InteractionContext
Create a client for inspect the node’s local mempool.
Create a client for submitting signed transactions to underlying Cardano chain.
Get the server health. This can be safely polled at regular intervals for monitoring.
Calculate the size of an output, as seen by the ledger, without actually serializing it. This size is used when calculating for the minimum lovelace value that needs to be set on an output to be considered valid by the ledger.
This calculation account for the size of the output with minimum value itself; thus, one can get the minimum value to set by simply calculating:
const minLovelaceValue = utxoSize(output) * coinsPerUtxoByte
where coinsPerUtxoByte
is the corresponding protocol parameter from the Babbage era.
Describe how the interaction context behaves. A
LongRunning
context does not close the underlying connection after a request, it has to be done manually. AOneTime
context however will close the connection afterwards.