@marinade.finance/web3js-kit
v4.1.5
Published
solana/web3.js or @solana/kit 2.x/3.x tooling for Marinade Finance
Downloads
296
Readme
web3js-kit
Utilities to work with Solana web3.js library
or with the Anza @solana/kit in version 2.x/3.0.x.
Be aware when working with @solana/web3.js in version 1.x use the
@marinade.finance/web3js-1x library.
Usage
Pre-requisites
The @marinade.finance/web3js-kit depends
on @marinade.finance/ts-common library.
pnpm add @marinade.finance/ts-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/transactionsInstallation
# see Pre-requisites and Dependencies
pnpm add @marinade.finance/web3js-kit@latestTroubleshooting
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.
History
Before refactoring this library was named as @marinade.finance/web3js-common
and it was published in versions 3.x.x. After refactoring it was renamed
to @marinade.finance/web3js-kit and the versioning started from 4.0.0.
See history notes at @marinade.finance/web3js-1x.
