cargo install w3kit
to build the library from this GitHub repository you can run:
make build
note that all cargo commands relevant to this work are encoded in the Makefile
.
.env
create an .env
file:
cp .env.example .env
vim .env
then add the config for the desired chain:
PROVIDER_URL_WS=
PROVIDER_URL_HTTP=
```
w3kit http -b ethereum -a 0xbA4C081942E6a25cAF87c5489B91b449c67f3078
✅ connecting to "ethereum"
✅ retrieving balances...
💰 account 0xba4c081942e6a25caf87c5489b91b449c67f3078 👉 0.0672775267238201 ETH
```
```
w3kit ws -b ethereum -a 0xbA4C081942E6a25cAF87c5489B91b449c67f3078
✅ connecting to "ethereum" ✅ retrieving balances... 💰 account 0xba4c081942e6a25caf87c5489b91b449c67f3078 👉 0.0672775267238201 ETH ```
```
w3kit http -b arbitrum -a ```
```
w3kit ws -b arbitrum -a ```
```
w3kit http -b avalanche -a ```
```
w3kit ws -b avalanche -a ```
```
w3kit http -b near -a ```
```
w3kit ws -b near -a ```
```
w3kit http -b optimism -a ```
```
w3kit ws -b optimism -a ```
```
w3kit http -b polygon -a ```
```
w3kit ws -b polygon -a ```
```
w3kit http -b solana -a ```
```
w3kit ws -b solana -a ```