Socket
Socket
Sign inDemoInstall

@depay/solana-web3.js

Package Overview
Dependencies
2
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @depay/solana-web3.js

Solana Web3.js browser pre-built usable in rollup bundles.


Version published
Weekly downloads
5.3K
decreased by-20.88%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Solana Web3.js SDK browser pre-built

A webpack browser pre-built which can be used in rollup as UMD and ESM.

yarn add "@depay/solana-web3.js"
import {
  AddressLookupTableProgram,
  Connection,
  Transaction,
  TransactionMessage,
  VersionedTransaction,
  TransactionInstruction,
  SystemProgram,
  LAMPORTS_PER_SOL,
  ACCOUNT_LAYOUT,
  PublicKey,
  u8,
  i8,
  u16,
  i16,
  u32,
  i32,
  u64,
  i64,
  nu64,
  u128,
  i128,
  publicKey,
  struct,
  option,
  offset,
  bool,
  vec,
  vecU8,
  tagged,
  str,
  rustEnum,
  array,
  map,
  seq,
  blob,
  Buffer,
  BN,
  Keypair,
  transact,
  Web3MobileWallet,
  bs58,
} from "@depay/solana-web3.js"

Polyfills

Ships with polyfills for missing:

  • XMLHttpRequest
  • location
  • crypto

polyfill fetch

If you see the following error:

Please polyfill .fetch | See: https://github.com/DePayFi/solana-web3.js#polyfill-fetch

You will need to add node-fetch to your environment and make sure global.fetch is polyfilled before executing this library:

https://github.com/node-fetch/node-fetch

Example: https://github.com/DePayFi/web3-mock/blob/main/tests/setup.js

Development

yarn build
npm publish --access public

Keywords

FAQs

Last updated on 30 Dec 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc