0.0.3 • Published 2 years ago

@ethernauta/sol v0.0.3

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

This module aims to be an un-opinionated representation of the defined:

Table of contents

  1. API
  2. core
  3. chain
  4. abi

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

  • Correctly gets balance of an address Go to file
  • Correctly gets the latest blockhash Go to file
  • 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

0.0.3

2 years ago

0.0.2

2 years ago

0.0.0

2 years ago