Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { /** * Hash of block. * @type {string} * @memberof LtcBlock */ Hash string /** * The number of blocks preceding a particular block on a block chain. * @type {number} * @memberof LtcBlock */ Height uint32 /** * Block version. * @type {number} * @memberof LtcBlock */ Version uint32 /** * Hash of the previous block. * @type {string} * @memberof LtcBlock */ PrevBlock string /** * The root node of a merkle tree, a descendant of all the hashed pairs in the tree. * @type {string} * @memberof LtcBlock */ MerkleRoot string /** * Time of the block. * @type {number} * @memberof LtcBlock */ Ts uint64 /** * * @type {number} * @memberof LtcBlock */ Bits uint64 /** * Arbitrary number that is used in Litecoin's proof of work consensus algorithm. * @type {number} * @memberof LtcBlock */ Nonce uint64 /** * * @type {Array<Ltc_tx>} * @memberof LtcBlock */ Txs []Tx }
*
* * @export * @interface LtcBlock
type Info ¶
type Info struct { /** * Chain of the blockchain, main or test. * @type {string} * @memberof LtcInfo */ Chain string /** * Last block. * @type {number} * @memberof LtcInfo */ Blocks uint64 /** * Last headers. * @type {number} * @memberof LtcInfo */ Headers uint64 /** * Hash of the last block. * @type {string} * @memberof LtcInfo */ Bestblockhash string /** * Difficulty of the PoW algorithm. * @type {number} * @memberof LtcInfo */ Difficulty decimal.Decimal }
*
* * @export * @interface LtcInfo
type LtcUTXO ¶
type LtcUTXO struct { /** * Version of the UTXO. * @type {number} * @memberof LtcUTXO */ Version uint32 /** * * @type {number} * @memberof LtcUTXO */ Height uint32 /** * Amount of UTXO in satoshis. * @type {string} * @memberof LtcUTXO */ Value string /** * Data generated by a spender which is almost always used as variables to satisfy a pubkey script. * @type {string} * @memberof LtcUTXO */ Script string /** * Address of the owner of the UTXO. * @type {string} * @memberof LtcUTXO */ Address string /** * Coinbase transaction - miner fee. * @type {boolean} * @memberof LtcUTXO */ Coinbase bool /** * Transaction hash. * @type {string} * @memberof LtcUTXO */ Hash string /** * Transaction index of the output. * @type {number} * @memberof LtcUTXO */ Index uint32 }
*
* * @export * @interface LtcUTXO
type Tx ¶
type Tx struct { /** * Transaction hash. * @type {string} * @memberof LtcTx */ Hash string /** * Witness hash in case of a SegWit transaction. * @type {string} * @memberof LtcTx */ WitnessHash string /** * Fee paid for this transaction, in LTC. * @type {string} * @memberof LtcTx */ Fee string /** * * @type {string} * @memberof LtcTx */ Rate string /** * * @type {number} * @memberof LtcTx */ Ps uint32 /** * Height of the block this transaction belongs to. * @type {number} * @memberof LtcTx */ Height uint64 /** * Hash of the block this transaction belongs to. * @type {string} * @memberof LtcTx */ Block string /** * Time of the transaction. * @type {number} * @memberof LtcTx */ Ts uint64 /** * Index of the transaction in the block. * @type {number} * @memberof LtcTx */ Index uint32 /** * Index of the transaction. * @type {number} * @memberof LtcTx */ Version uint32 /** * * @type {number} * @memberof LtcTx */ Flag uint32 /** * * @type {Array<LtcTxInputs>} * @memberof LtcTx */ Inputs []TxInputs /** * * @type {Array<LtcTxOutputs>} * @memberof LtcTx */ Outputs []TxOutputs /** * Block this transaction was included in. * @type {number} * @memberof LtcTx */ Locktime uint64 }
*
* * @export * @interface LtcTx
type TxCoin ¶
type TxCoin struct { /** * * @type {number} * @memberof LtcTxCoin */ Version uint32 /** * * @type {number} * @memberof LtcTxCoin */ Height uint32 /** * * @type {string} * @memberof LtcTxCoin */ Value string /** * * @type {string} * @memberof LtcTxCoin */ Script string /** * Sender address. * @type {string} * @memberof LtcTxCoin */ Address string /** * Coinbase transaction - miner fee. * @type {boolean} * @memberof LtcTxCoin */ Coinbase bool }
*
* * @export * @interface LtcTxCoin
type TxInputs ¶
type TxInputs struct { /** * * @type {LtcTxPrevout} * @memberof LtcTxInputs */ Prevout TxPrevout /** * Data generated by a spender which is almost always used as variables to satisfy a pubkey script. * @type {string} * @memberof LtcTxInputs */ Script string /** * Transaction witness. * @type {string} * @memberof LtcTxInputs */ Witness string /** * * @type {number} * @memberof LtcTxInputs */ Sequence uint32 /** * * @type {LtcTxCoin} * @memberof LtcTxInputs */ Coin TxCoin }
*
* * @export * @interface LtcTxInputs
type TxOutputs ¶
type TxOutputs struct { /** * Sent amount in LTC. * @type {string} * @memberof LtcTxOutputs */ Value uint64 /** * Transaction script. * @type {string} * @memberof LtcTxOutputs */ Script string /** * Recipient address. * @type {string} * @memberof LtcTxOutputs */ Address string }
*
* * @export * @interface LtcTxOutputs
Click to show internal directories.
Click to hide internal directories.