ElectrumRequestIdFromPos class
Return a transaction hash and optionally a merkle proof, given a block height and a position in the block. https://electrumx-spesmilo.readthedocs.io/en/latest/protocol-methods.html
- Inheritance
-
- Object
- BaseServiceRequest<
dynamic, dynamic, ElectrumRequestDetails> - ElectrumRequest
- ElectrumRequestIdFromPos
Constructors
- ElectrumRequestIdFromPos({required int height, required int txPos, bool merkle = false})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
The main chain block height, a non-negative integer.
final
- merkle → bool
-
Whether a merkle proof should also be returned, a boolean.
final
- method → String
-
blockchain.transaction.id_from_pos
no setteroverride
- requestMethod → RequestMethod
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- txPos → int
-
A zero-based index of the transaction in the given block, an integer.
final
Methods
-
buildRequest(
int requestID) → ElectrumRequestDetails -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onResonse(
dynamic result) → dynamic -
If merkle is false, the transaction hash as a hexadecimal string. If true, a dictionary
override
-
toJson(
) → List -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited