Get the current account information (e.g. balance)
If an account is not found on the blockchain, this returns undefined.
Get a nonce for the next transaction signature.
Implementation defines a default value if blockchain does not provide a nonce.
Get multiple nonces at once to sign multiple transactions
This avoids querying the blockchain for every nonce and removes the need to wait for blocks before getting updated nonces.
Subscribes to all newly added transactions that match the query
Returns a stream for all historical transactions that match the query, along with all new transactions arriving from listenTx
Generated using TypeDoc
A high-level interface to a blockchain node, abstracted over all blockchain types and communication channel. A direct connection or a proxy server should implement this. The implementation takes care to convert our internal types into the proper format for the blockchain.
BlockchainConnection is the minimal interface needed to be supported by any blockchain that is compatible with the BCP spec and IOV-Core library. This supports getting account balances, sending tokens, and observing the blockchain state.
There are other optional interfaces that extend this functionality with features like atomic swap, NFTs, etc which may be implemented by any connector to enable enhanced features in the clients.