@ethernauta/sol
v0.0.3
Published
This module aims to be an un-opinionated representation of the defined:
Downloads
10
Readme
This module aims to be an un-opinionated representation of the defined:
Table of contents
API
import { createReader, http } from "@ethernauta/transport";
import { getBalance } from "@ethernauta/sol";
const reader = createReader([
http(
"https://withered-wider-pool.solana-devnet.quiknode.pro/742e63a8f44b2b9ea78af3feb44e4be930a830a6"
),
]);
const readable = getBalance(["5U3bH5b6XtG99aVWLqwVzYPVpQiFHytBD68Rz2eFPZd7"]);
const balance = await readable(reader);
Files to pay attention
core
method
Tests
- [x] Correctly gets balance of an address Go to file
- [x] Correctly gets the latest blockhash Go to file
- [x] Correctly gets minimum balance for rent exemption Go to file
Additional
This is solana-web3
's implementation of "getBalance" RPC method vs the implementation of it in this library