Web3Signer class abstract

Abstraction for wallet signing.

Implement this to delegate signing to external wallets (WalletConnect, Secure Enclave, biometrics, etc.) without exposing privateKey to Web3WebView.

If you only need local private-key signing, use PrivateKeySigner or simply pass privateKey in Web3WalletConfig – the provider will wrap it automatically.

Implementers

Constructors

Web3Signer()

Properties

address String
EIP-55 checksummed address of the signer.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendTransaction(Map<String, dynamic> txParams) Future<String>
Sign and send a transaction described by txParams (EIP-1193 eth_sendTransaction params: from, to, value, data, gas, ...).
signMessage(String method, String from, dynamic message, String password) Future<String>
Sign a message for method (personal_sign, eth_sign, eth_signTypedData*). Called after dialog confirmation.
signTransaction(Transaction transaction, int chainId) Future<Uint8List>
Optional: sign a raw Transaction and return signed bytes. Default implementation throws UnsupportedError – override if you need low-level signing.
toString() String
A string representation of this object.
inherited

Operators

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