walletconnect_dart library

Classes

AlgorandWalletConnectProvider
A provider implementation to easily support the Algorand blockchain.
CipherBox
an algorithm interface for performing encryption or decryption
EthereumWalletConnectProvider
A provider implementation to easily support the Ethereum blockchain.
JsonRpcRequest
JsonRpcResponse
PeerMeta
Meta data information.
SessionStatus
Information regarding the current session.
SessionStorage
SocketTransport
The transport layer used to perform JSON-RPC 2 requests. A client calls methods on a server and handles the server's responses to those method calls. Methods can be called with sendRequest.
WalletConnect
WalletConnect is an open source protocol for connecting decentralised applications to mobile wallets with QR code scanning or deep linking.
WalletConnectCipher
WalletConnect protocol implementation of the encryption/decryption algorithms
WalletConnectProvider
A generic interface that can be implemented to provide various provider implementations.
WalletConnectSession
WCSessionRequest
A request sent from the dApp to the wallet containing information about the peer and blockchain.
WCSessionRequestResponse
A response containing session information.
WCSessionUpdateResponse
WebSocketMessage

Extensions

HexToBytes on String

Constants

ethSigningMethods → const List<String>
INTERNAL_ERROR → const int
An internal JSON-RPC error.
INVALID_PARAMS → const int
An error code indicating that the request parameters are invalid for the requested method.
INVALID_REQUEST → const int
An error code indicating that the request JSON was invalid according to the JSON-RPC 2.0 spec.
METHOD_NOT_FOUND → const int
An error code indicating that the requested method does not exist or is unavailable.
PARSE_ERROR → const int
Error codes defined in the JSON-RPC 2.0 specificiation.
SERVER_ERROR → const int
An unexpected error occurred on the server.

Functions

name(int errorCode) String?
Returns a human-readable name for errorCode if it's one specified by the JSON-RPC 2.0 spec.

Typedefs

OnConnectRequest = void Function(SessionStatus status)
OnDisconnect = void Function()
OnDisplayUriCallback = void Function(String uri)
OnSessionUpdate = void Function(WCSessionUpdateResponse response)

Exceptions / Errors

WalletConnectException
An exception from a JSON-RPC server that can be translated into an error response.