EthereumRequestSign class

The sign method calculates an Ethereum specific signature with: sign(keccak256("\x19Ethereum Signed Message:\n" + len(message) + message))). ethereum.org

Inheritance

Constructors

EthereumRequestSign.new({required String address, required String message})

Properties

address String
address
final
blockNumber BlockTagOrNumber?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
message String
message to sign
final
method String
eth_sign
no setteroverride
requestType → RequestServiceType
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildRequest(int requestId) EthereumRequestDetails
Converts the request parameters to a EthereumRequestDetails object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onResonse(Object? result) Object?
inherited
toJson() List
Converts the request parameters to a JSON representation.
override
toString() String
A string representation of this object.
override

Operators

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