@sk1ppi/solana-module-1-read-data-from-the-solana-network

1.0.0 • Public • Published

@sk1ppi/solana-module-1-read-data-from-the-solana-network

Made by GitHub License NPM Version

This package is a part of the Solana Development Course by James Pacheco and others. It contains the code for the first module of the bootcamp, which is about reading data from the Solana network.

Install

To install the package, use the following command:

npm i @sk1ppi/solana-module-1-read-data-from-the-solana-network

Example

To use the package, use the following code example:

const {     
    getBalance,
    computeBalanceToSol
 } = require('@sk1ppi/solana-module-1-read-data-from-the-solana-network');
 
async function main () {
    const balance = await getBalance('7h5o5Zm1XQ6L6W4k7qYB6X3bZ7yY9dQgW8CgK5Qj9P8T')
    console.log(balance) 
    // 0

    const balanceInSol = computeBalanceToSol(balance)
    console.log(balanceInSol)
    // 0
}

Testing

To run tests, use the following command:

npm run test

Contribute

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Reach out

image0_0-3

License

Apache-2.0

Readme

Keywords

Package Sidebar

Install

npm i @sk1ppi/solana-module-1-read-data-from-the-solana-network

Weekly Downloads

1

Version

1.0.0

License

Apache-2.0

Unpacked Size

14.9 kB

Total Files

5

Last publish

Collaborators

  • sk1ppi