Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BchTxVin ¶
type BchTxVin struct { /** * * @type {string} * @memberof BchTxVin */ Txid string /** * * @type {number} * @memberof BchTxVin */ Vout uint32 /** * * @type {BchTxScriptSig} * @memberof BchTxVin */ ScriptSig TxScriptSig /** * * @type {string} * @memberof BchTxVin */ Coinbase string /** * * @type {number} * @memberof BchTxVin */ Sequence uint64 }
*
* * @export * @interface BchTxVin
type BchTxVout ¶
type BchTxVout struct { /** * * @type {string} * @memberof BchTxVout */ Value float64 /** * * @type {number} * @memberof BchTxVout */ N uint32 /** * * @type {BchTxScriptPubKey} * @memberof BchTxVout */ ScriptPubKey TxScriptPubKey }
*
* * @export * @interface BchTxVout
type Block ¶
type Block struct { /** * Hash of block. * @type {string} * @memberof BchBlock */ Hash string /** * Block size. * @type {number} * @memberof BchBlock */ Size uint32 /** * The number of blocks preceding a particular block on a block chain. * @type {number} * @memberof BchBlock */ Height uint64 /** * Block version. * @type {number} * @memberof BchBlock */ Version uint32 /** * The root node of a merkle tree, a descendant of all the hashed pairs in the tree. * @type {string} * @memberof BchBlock */ Merkleroot string /** * List of transactions present in the block. * @type {Array<BchTx>} * @memberof BchBlock */ Tx []Tx /** * Time of the block. * @type {number} * @memberof BchBlock */ Time uint64 /** * Arbitrary number that is used in Bitcoin's proof of work consensus algorithm. * @type {number} * @memberof BchBlock */ Nonce uint64 /** * * @type {number} * @memberof BchBlock */ Difficulty decimal.Decimal /** * Number of blocks mined after this block. * @type {number} * @memberof BchBlock */ Confirmations uint32 /** * Hash of the previous block. * @type {string} * @memberof BchBlock */ Previousblockhash string /** * Hash of the next block. * @type {string} * @memberof BchBlock */ Nextblockhash string }
type Info ¶
type Info struct { /** * Chain of the blockchain, main or test. * @type {string} * @memberof BchInfo */ Chain string /** * Last block. * @type {number} * @memberof BchInfo */ Blocks uint64 /** * Hash of the last block. * @type {string} * @memberof BchInfo */ Bestblockhash string /** * Difficulty of the PoW algorithm. * @type {number} * @memberof BchInfo */ Difficulty decimal.Decimal }
type Tx ¶
type Tx struct { /** * * @type {string} * @memberof BchTx */ Txid string /** * * @type {number} * @memberof BchTx */ Version uint32 /** * * @type {number} * @memberof BchTx */ Locktime uint64 /** * * @type {Array<BchTxVin>} * @memberof BchTx */ Vin []BchTxVin /** * * @type {Array<BchTxVout>} * @memberof BchTx */ Vout []BchTxVout }
*
* * @export * @interface BchTx
type TxScriptPubKey ¶
type TxScriptPubKey struct { /** * * @type {string} * @memberof BchTxScriptPubKey */ Hex string /** * * @type {string} * @memberof BchTxScriptPubKey */ Asm string /** * * @type {Array<string>} * @memberof BchTxScriptPubKey */ Addresses []string /** * * @type {string} * @memberof BchTxScriptPubKey */ Type string }
*
* * @export * @interface BchTxScriptPubKey
type TxScriptSig ¶
type TxScriptSig struct { /** * * @type {string} * @memberof BchTxScriptSig */ Hex string /** * * @type {string} * @memberof BchTxScriptSig */ Asm string }
*
* * @export * @interface BchTxScriptSig
Click to show internal directories.
Click to hide internal directories.