viteconnect library
Classes
- CipherBox
- an algorithm interface for performing encryption or decryption
- 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
. - VCSessionRequest
- A request sent from the dApp to the wallet containing information about the peer and blockchain.
- VCSessionRequestResponse
- A response containing session information.
- VCSessionUpdateResponse
- ViteConnect
- ViteConnect is an open source protocol for connecting decentralised applications to mobile wallets with QR code scanning or deep linking.
- ViteConnectCipher
- ViteConnect protocol implementation of the encryption/decryption algorithms
- ViteConnectSession
- WebSocketMessage
Constants
- internalError → const int
- An internal JSON-RPC error.
- invalidParams → const int
- An error code indicating that the request parameters are invalid for the requested method.
- invalidRequest → const int
- An error code indicating that the request JSON was invalid according to the JSON-RPC 2.0 spec.
- methodNotFound → const int
- An error code indicating that the requested method does not exist or is unavailable.
- parseError → const int
- Error codes defined in the JSON-RPC 2.0 specificiation.
- serverError → const int
- An unexpected error occurred on the server.
- viteSignAndSendTx → const String
-
viteSigningMethods
→ const List<
String> - viteSignMessage → const String
Functions
Typedefs
- OnConnectRequest = void Function(SessionStatus status)
- OnDisconnect = void Function()
- OnDisplayUriCallback = void Function(String uri)
- OnSessionUpdate = void Function(VCSessionUpdateResponse response)
Exceptions / Errors
- ViteConnectException
- An exception from a JSON-RPC server that can be translated into an error response.