Blockchain

class Blockchain(config: BlockchainConfig)

A blockchain backend.

Constructors

Link copied to clipboard
fun Blockchain(config: BlockchainConfig)

Functions

Link copied to clipboard
fun broadcast(psbt: PartiallySignedBitcoinTransaction): String

Broadcast a transaction.

Link copied to clipboard
fun getBlockHash(height: UInt): String

Get the block hash of a given block.

Link copied to clipboard
fun getHeight(): UInt

Get the current height of the blockchain.