GlueWalletBlockchain

Helper class that glues a wallet to a blockchain

Constructors

Link copied to clipboard
constructor(chain: Blockchain)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

a reference to an active blockchain object. The wallet will access this object whenever it needs blockchain data.

Link copied to clipboard

a handle to this wallet's bloom filter data installed in the Blockchain

Link copied to clipboard
val mutex: iMutex
Link copied to clipboard

Any block before this one cannot have any transactions relevant to this wallet (the wallet was created after this block). The wallet uses this information to rapidly sync.

Link copied to clipboard

Any block before this one cannot have any transactions relevant to this wallet (the wallet was created after this block). The wallet uses this information to rapidly sync.

Link copied to clipboard
Link copied to clipboard

This wallet has synchronized its balances up to this block hash

Link copied to clipboard

This wallet has synchronized its balances up to this block height. Note, use syncedHash to be certain of a sync because the chain could have forks.

Functions

Link copied to clipboard
fun advanceTo(height: Long, hash: Hash256, date: Long)

Sets the wallet as synced to this point, but only if the wallet is prior to this point

Link copied to clipboard
open override fun BCHdeserialize(stream: BCHserialized): BCHserialized
Link copied to clipboard
open override fun BCHserialize(format: SerializationType): BCHserialized
Link copied to clipboard
fun delete()
Link copied to clipboard
fun isSynchronized(maxBlock: Int = 0, maxSec: Int = 60*60): Boolean
Link copied to clipboard

Reset this wallet's blockchain state to the earliest point available in the blockchain

Link copied to clipboard

Reset this wallet's blockchain state to right now. Only do this for a wallet where you are sure there is no prior activity (new wallet)

Link copied to clipboard

Reset this wallet's blockchain state to the wallet prehistory

Link copied to clipboard
fun syncedTo(height: Long, hash: Hash256, date: Long)
Link copied to clipboard
open fun toByteArray(format: SerializationType = SerializationType.UNKNOWN): ByteArray