Returns the underlying C++ object, transferring ownership from this instance to the caller.
The underlying object of the instance.
Serializes the instance to a hexadecimal string.
A hexadecimal string representation of the instance.
Returns the size of the underlying C++ object.
The size of the underlying C++ object in bytes.
Returns a string representation of the instance.
A string representation of the instance.
Returnsthe underlying C++ object.
The underlying C++ object.
Static
deserializeStatic
fromConstucts a new instance using the provided object.
The object to use for the new instance.
A new instance of the class.
Static
fromConstructs a new instance using the provided object and size.
The object to use for the new instance.
The size of the object.
A new instance of the class.
Represents a script, which may be a scriptPubKey, scriptSig, or scriptWitness. Also known as
CScript
on the C++ side.A
Script
appears as an attribute ofCTxOut
(scriptPubKey) orCTxIn
(scriptSig and scriptWitness), and is not meant to be instantiated directly.Examples: