WaasExportPrivateKeyPayload class

exportPrivateKey's payload. Runs on its own VISIBLE session rather than the hidden signing one — the page renders the key into its own DOM and the user has to see it — but the payload is the same shape as a signature request's.

Constructors

WaasExportPrivateKeyPayload({required String chainName, required String signedSessionId, required String authToken, required String accountAddress, String? elevatedAccessToken})
const

Properties

accountAddress → String
final
authToken → String
final
chainName → String
final
elevatedAccessToken → String?
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
signedSessionId → String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
payloadJson() → String
This payload as the JSON the waas-v1 page expects. A caller puts it in a bridge envelope's args array. An absent optional is omitted, not sent as null — the page tells those apart.
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) → WaasExportPrivateKeyPayload