ExternalWalletActionRequest class
Notifies the host to show a prompt or open the external wallet. Does not support cancellation.
Constructors
- ExternalWalletActionRequest({required String action, String? walletName, required String address, required String chain})
-
const
Properties
- action → String
-
What is being asked of the wallet: 'signMessage' or 'signTransaction'.
final
- address → String
-
final
- chain → 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
- walletName → String?
-
The wallet's own name ('MetaMask'), so the prompt can name the app to open. Null when the address is no longer among the connected accounts — a host then says just "your wallet" rather than a made-up name.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
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) → ExternalWalletActionRequest