This is the Solana Javascript API built on the Solana JSON RPC API
$ yarn add @solana/web3.js
$ npm install --save @solana/web3.js
<script src="https://github.com/solana-labs/solana-web3.js/releases/download/v0.0.6/solanaWeb3.min.js"></script>
const solanaWeb3 = require('@solana/web3.js');
console.log(solanaWeb3);
import solanaWeb3 from '@solana/web3.js';
console.log(solanaWeb3);
// `solanaWeb3` is provided in the global namespace by the `solanaWeb3.min.js` script bundle.
console.log(solanaWeb3);
See the examples/ directory for small snippets.
Standalone examples:
- Web wallet: https://github.com/solana-labs/example-webwallet
- Tic-tac-toe: https://github.com/solana-labs/example-tictactoe
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)