ElectrumRequestDetails class

Inheritance

Constructors

ElectrumRequestDetails({required int requestID, required String method, ServiceReponseEncoding responseEncoding = ServiceReponseEncoding.map, Map<String, String> headers = ServiceConst.defaultPostHeaders, List<int>? bodyBytes, String? bodyString})
const
ElectrumRequestDetails.deserialize({List<int>? bytes, CborObject<Object?>? object})
factory

Properties

api → BitcoinProviderApi
finalinherited
bodyBytes → List<int>?
finalinherited
bodyString → String?
finalinherited
errorStatusCodes → List<int>?
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>
finalinherited
method → String
final
network → BlockchainNetwork?
finalinherited
path → String?
finalinherited
requestID → int
finalinherited
requestMethod → RequestMethod
finalinherited
responseEncoding → ServiceReponseEncoding
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serializationIdentifier → SerializationIdentifier
no setteroverride
serializationItems → List<CborObject<Object?>?>
no setteroverride
successStatusCodes → List<int>?
finalinherited

Methods

copyWith({int? requestID, Map<String, String>? headers, List<int>? bodyBytes, String? bodyString, ServiceReponseEncoding? responseEncoding, String? method}) → ElectrumRequestDetails
encodeBody({ServiceProtocol protocol = ServiceProtocol.http, List<int> rawSocketEof = const [10]}) → List<int>?
Encodes the request payload into bytes.
override
encodeUrl(String uri) → Uri
Builds the final request URI.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCbor() → CborTagValue<CborObject<Object?>>
inherited
toEncodingResponse<T>(BaseServiceResponse response, {ServiceReponseEncoding? encoding}) → T
Converts a BaseServiceResponse into the specified encoding type.
inherited
toJson() → Map<String, dynamic>
override
toResponse(Object? response, {int statusCode = 200}) → BaseServiceResponse
Decodes a raw service response into a BaseServiceResponse.
inherited
toString() → String
A string representation of this object.
inherited
tryEncodingResponse<T>(BaseServiceResponse response, {ServiceReponseEncoding? encoding}) → T?
Attempts to convert a successful response to the requested encoding type.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited