solana/web3.js
Michael Vines ac976a66f0 package-lock.json update 2020-06-14 21:57:04 -07:00
..
examples Add get-balance html example 2020-06-14 21:57:04 -07:00
flow-typed Add Connection class 2020-06-14 21:57:04 -07:00
src Throw if endpoind is not provided 2020-06-14 21:57:04 -07:00
test Implement requestAirdrop 2020-06-14 21:57:04 -07:00
.babelrc Activate flow 2020-06-14 21:57:04 -07:00
.esdoc.json Add esdoc boilerplate 2020-06-14 21:57:04 -07:00
.eslintignore
.eslintrc.js Adjust eslint configuration 2020-06-14 21:57:04 -07:00
.flowconfig Activate flow 2020-06-14 21:57:04 -07:00
.gitignore Add esdoc boilerplate 2020-06-14 21:57:04 -07:00
.npmignore Trim npm package contents 2020-06-14 21:57:04 -07:00
.travis.yml Add codecov.io 2020-06-14 21:57:04 -07:00
CONTRIBUTING.md Add more documentation 2020-06-14 21:57:04 -07:00
LICENSE
README.md Minor text update 2020-06-14 21:57:04 -07:00
commitlint.config.js
jest.json
package-lock.json package-lock.json update 2020-06-14 21:57:04 -07:00
package.json Trim eslint plugins 2020-06-14 21:57:04 -07:00
release-process.md Add npm/github deployment 2020-06-14 21:57:04 -07:00
rollup.config.js Fix up external dependency bundling 2020-06-14 21:57:04 -07:00

README.md

Build status codecov npm esdoc

Solana JavaScript API

This is the Solana Javascript API built on the Solana JSON RPC API

Latest API Documentation

Installation

Yarn

$ yarn add @solana/web3.js

npm

$ npm install --save @solana/web3.js

Browser bundle

<script src="https://github.com/solana-labs/solana-web3.js/releases/download/v0.0.3/solanaWeb3.min.js"></script>

Usage

Javascript

const solanaWeb3 = require('@solana/web3.js');
console.log(solanaWeb3);

ES6

import solanaWeb3 from '@solana/web3.js';
console.log(solanaWeb3);

Browser bundle

// `solanaWeb3` is provided in the global namespace by the `solanaWeb3.min.js` script bundle.
console.log(solanaWeb3);

Examples

See the examples/ directory

Releases

Releases are available on Github and npmjs.com.

Each Github release features a tarball containing API documentation and a minified version of the module suitable for direct use in a browser environment (<script> tag)