Quickstart
Add this to your Cargo.toml:
[]
= "0.1"
And this to your code:
use *;
To initiate walletconnect connection with the wallet, set up your dApps metadata:
use *;
let dapp = from;
...and once you'll get your projects id from WalletConnect portal, you can simply create the connection:
use *;
const PROJECT_ID: &str = "myprojectidfromwalletconnectportal";
async
Now your wallet need to get your sessions url. You can pass it on using url call with proper schema, or present it using qrcode using crates such as qrcode-generator
:
State loop is manually handled by the implementor (there's no concurrency in some places). You have to loop somewhere to get any updates from WalletConnect.
use *;
async
Documentation
In progress of creation.
Features
- Session creation and handling
- Handling transaction signatures
- Handling typed data signatures
- Handling manual chain changes
- Handling events
- Handling pings
- Handling session updates
- Handling session deletion
- Handling non-WASM usage for servers
Note on WASM
This library currently needs WASM to work. There is a plan to support server-side implementations, though. For now, we focus on building robust solution for WASM implementations of websites.