WcSessionRequest class

A pending wc_sessionRequest delivered via the wc_session_request event — a JSON-RPC call the dApp wants the wallet to handle.

Constructors

WcSessionRequest({required String topic, required int id, required String method, required String chainId, required dynamic params, required Map<String, dynamic> peerMetadata})
const
WcSessionRequest.fromJson(Map<String, dynamic> json)
factory

Properties

chainId String
CAIP-2 chain id the dApp is calling against, e.g. eip155:1.
final
hashCode int
The hash code for this object.
no setterinherited
id int
JSON-RPC id, also needed for the response.
final
method String
Method name (EIP-1193-style, e.g. personal_sign, eth_sendTransaction, solana_signTransaction).
final
params → dynamic
Method-specific parameters (shape depends on method).
final
peerMetadata Map<String, dynamic>
Peer metadata copied from the session for convenience.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
topic String
Session topic the request arrived on — pass to respond / respondError.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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