Skip to main content Link Menu Expand (external link) Document Search Copy Copied

LtcUTXO

Model getters

Method name Return type Description Notes
getVersion() float The version of the transaction
Example: 2
[optional]
getHeight() float The height (number) of the block where the transaction is included in
Example: 1233224
[optional]
getValue() float The amount of the UTXO
Example: 30000000
[optional]
getScript() string Data generated by the spender; is almost always used as variables to satisfy the conditions in the pubkey script
Example: 76a914fc8f50c952da910f473a0533561311ad140c989b88ac
[optional]
getAddress() string The blockchain address of the UTXO owner
Example: n4YNG8q5JyxkeWf7zMi1bMyRZbRKK1W7or
[optional]
getCoinbase() bool If set to “true”, the transaction is a coinbase transaction (a transaction created by a Bitcoin miner to collect their reward)
Example: false
[optional]
getHash() string The hash of the transaction
Example: 5f83d51c8d3054012cea3011fa626b85d89442788721afd60719ab1f9ab8f78a
[optional]
getIndex() float The index of the transaction output checked for the UTXO
Example: 0
[optional]