@marinade.finance/web3js-common
v3.7.0
Published
Solana web3.js 2.0 tooling for Marinade Finance
Readme
web3js-common
@marinade.finance/web3js-common
Utilities to work with Solana web3.js library in version 2.x/3.0.x.
NOTE: Currently the repository does not provide utilities usable with Solana web3.js in version 1.x but it is expected to be ported from marinade-ts-cli.
Usage
Pre-requisites
The @marinade.finance/web3js-common depends
on @marinade.finance/ts-common library.
pnpm add @marinade.finance/ts-common@latestInstallation
# see Pre-requisites
pnpm add @marinade.finance/web3js-common@latestDependencies
Library defines set of peerDependencies that are required to be directly installed by dependent program.
class-validator: is an optional when validationIsAddressfunctions are to be used@solana/*: are required Solana web3.js 2.x/3.0.x dependencies to be installed as direct dependency
pnpm add @solana/addresses
pnpm add @solana/codecs
pnpm add @solana/keys
pnpm add @solana/rpc-types
pnpm add @solana/signers
pnpm add @solana/transactionsTroubleshooting
ReferenceError: crypto is not defined: The web3.js 2.0 requires be running on NodeJS version 20+ as there is implemented nativelycryptomodule. This error suggests an older version being used.
