EthereumWalletConnectProvider class

A provider implementation to easily support the Ethereum blockchain.

Inheritance

Constructors

EthereumWalletConnectProvider(WalletConnect connector, {int chainId = 0})

Properties

chainId int
Get the chain id.
no setteroverride
connector WalletConnect
finalinherited
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
personalSign({required String message, required String address, required String password}) Future<String>
Signs method calculates an Ethereum specific signature. address - 20B address message - message to sign password - The password of the account to sign data with
sendRawTransaction({required Uint8List data}) Future<String>
Creates new message call transaction or a contract creation for signed transactions. data - The signed transaction data.
sendTransaction({required String from, String? to, Uint8List? data, int? gas, BigInt? gasPrice, BigInt? value, int? nonce}) Future<String>
Creates new message call transaction or a contract creation, if the data field contains code from - The address the transaction is send from. to - The address the transaction is directed to. data - The compiled code of a contract OR the hash of the invoked method signature and encoded parameters. For details see Ethereum Contract ABI gas - (default: 90000) Integer of the gas provided for the transaction execution. It will return unused gas. gasPrice - Integer of the gasPrice used for each paid gas (in Wei). value - Integer of the value sent with this transaction (in Wei). nonce - Integer of a nonce. This allows to overwrite your own pending transactions that use the same nonce.
sign({required String message, required String address}) Future<String>
Signs method calculates an Ethereum specific signature. address - 20B address message - message to sign
signTransaction({required String from, String? to, Uint8List? data, int? gas, BigInt? gasPrice, BigInt? value, int? nonce}) Future<String>
Signs a transaction that can be submitted to the network at a later time using with eth_sendRawTransaction. from - The address the transaction is send from. to - The address the transaction is directed to. data - The compiled code of a contract OR the hash of the invoked method signature and encoded parameters. For details see Ethereum Contract ABI. gas - (default: 90000) Integer of the gas provided for the transaction execution. It will return unused gas. gasPrice - Integer of the gasPrice used for each paid gas (in Wei). value - Integer of the value sent with this transaction (in Wei). nonce - Integer of a nonce. This allows to overwrite your own pending transactions that use the same nonce.
signTypeData({required String address, required Map<String, dynamic> typedData}) Future<String>
Calculates an Ethereum-specific signature. address - 20B address typedData - message to sign containing type information, a domain separator, and data
toString() String
A string representation of this object.
inherited

Operators

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