-
- All Implemented Interfaces:
public final class Blockchain
A blockchain backend.
-
-
Constructor Summary
Constructors Constructor Description Blockchain(BlockchainConfig config)
Create the new blockchain client.
-
Method Summary
Modifier and Type Method Description final Unit
broadcast(Transaction transaction)
Broadcast a transaction. final <Error class: unknown class>
estimateFee(ULong target)
Estimate the fee rate required to confirm a transaction in a given target of blocks. final UInt
getHeight()
Get the current height of the blockchain. final String
getBlockHash(UInt height)
Get the block hash of a given block. -
-
Constructor Detail
-
Blockchain
Blockchain(BlockchainConfig config)
Create the new blockchain client.- Parameters:
config
- The blockchain configuration required.
-
-
Method Detail
-
broadcast
final Unit broadcast(Transaction transaction)
Broadcast a transaction.
-
estimateFee
final <Error class: unknown class> estimateFee(ULong target)
Estimate the fee rate required to confirm a transaction in a given target of blocks.
-
getBlockHash
final String getBlockHash(UInt height)
Get the block hash of a given block.
-
-
-
-