Parfournir.
Skills/Solana/Solana Web3.js

Solana Web3.js

Official Solana JavaScript SDK — connect to Solana RPC, send transactions, manage accounts, interact with programs.

MITsdk
by @Solana
Install
npm install @solana/web3.js
SKILL.md
[![npm][npm-image]][npm-url]
[![npm-downloads][npm-downloads-image]][npm-url]
[![semantic-release][semantic-release-image]][semantic-release-url]
<br />
[![code-style-prettier][code-style-prettier-image]][code-style-prettier-url]

[code-style-prettier-image]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square
[code-style-prettier-url]: https://github.com/prettier/prettier
[npm-downloads-image]: https://img.shields.io/npm/dm/@solana/web3.js.svg?style=flat
[npm-image]: https://img.shields.io/npm/v/@solana/web3.js.svg?style=flat
[npm-url]: https://www.npmjs.com/package/@solana/web3.js
[semantic-release-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
[semantic-release-url]: https://github.com/semantic-release/semantic-release

> [!NOTE]
> This is the maintenance branch for the 1.x line of @solana/web3.js. You can find the successor to this library here: @solana/kit.

Solana JavaScript SDK (v1.x)

Use this to interact with accounts and programs on the Solana network through the Solana JSON RPC API.

Installation

For use in Node.js or a web application

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

For use in a browser, without a build system

<!-- Development (un-minified) -->


<!-- Production (minified) -->

Documentation and examples

  • The Solana Cookbook has extensive task-based documentation using this library.
  • For more detail on individual functions, see the latest API Documentation
  • Getting help

    Have a question or a problem? Check the Solana Stack Exchange to see if anyone else is having the same one. If not, post a new question.

    Include:

  • A detailed description of what you're trying to achieve
  • Source code, if possible
  • The text of any errors you encountered, with stacktraces if available
  • Compatibility

    This library requires a JavaScript runtime that supports BigInt and the exponentiation operator. Both are supported in the following runtimes:

  • Browsers, by release date:

  • - Chrome: May 2018
    - Firefox: July 2019
    - Safari: September 2020
    - Mobile Safari: September 2020
    - Edge: January 2020
    - Opera: June 2018
    - Samsung Internet: April 2019
  • Runtimes, by version:

  • - Deno: >=1.0
    - Node: >=10.4.0
  • React Na
  • ... [truncated — view full README on GitHub]

    Details

    Categoryblockchain
    Typesdk
    Sourcegithub
    LicenseMIT

    Use this skill

    Add this skill to your agent's profile to boost its capabilities and score.

    Add to My Agent