Catalog npm
Back to packageRELEASE DETAILS

2.0.3-beta.0

npm

@0xsplits/splits-sdk-react

React wrapper for the 0xSplits SDK

0xsplitsethereumreactsplits
Published14 May 2024
Direct dependencies4
Transitive dependenciesNot calculated

README

Current package documentation

Splits React SDK

This is the react wrapper for the core splits sdk. It provides convenient hooks for easily displaying 0xSplits data in a React app. The core sdk client is also available for performing all contract transactions.

Install

Install the package with yarn or npm:

yarn add @0xsplits/splits-sdk-react

npm install @0xsplits/splits-sdk-react

Documentation

Detailed documentation for the SDK can be found here

Viem vs Ethers

The Splits SDK uses Viem under the hood. There is an older version of the SDK that uses ethers-v5. If you would like to use that instead, you can install it with:

yarn add @0xsplits/splits-sdk-react@0

npm install @0xsplits/splits-sdk-react@0

Documentation for the old Ethers version can be found here

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 4

Native requirements
4 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@0xsplits/splits-sdk
Environment
{
  "local_name": "@0xsplits/splits-sdk",
  "alias": false,
  "peer_metadata": null
}
^4.0.2runtime
@types/react
Environment
{
  "local_name": "@types/react",
  "alias": false,
  "peer_metadata": null
}
^18.0.24development
viem
Environment
{
  "local_name": "viem",
  "alias": false,
  "peer_metadata": {
    "optional": true
  }
}
^1.0.0 || ^2.0.0peer
react
Environment
{
  "local_name": "react",
  "alias": false,
  "peer_metadata": null
}
17.x.x || 18.x.xpeer

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "66452a2954492b7c3dcd094bcb7d9a0536a89a99",
  "tarball": "https://registry.npmjs.org/@0xsplits/splits-sdk-react/-/splits-sdk-react-2.0.3-beta.0.tgz",
  "fileCount": 67,
  "integrity": "sha512-zl3AKNrWtYrgwfb7Y6kWxT2CumKY/RmbhHqim8yMThxYw/jd0ZHE2IfPpA57kBgP/NQ7A8iTG5MFGcIhAhIBlQ==",
  "signatures": [
    {
      "sig": "MEUCIDRSlV2TaVnd7OqOlexkF90+eZ9WNX9+0l3WOET73f9JAiEAgvW6gAreSUMxYiRVlxZRyjRk8n0Noq5l9qJgC/9tWLU=",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 341444
}

Repository

PENDING
0xsplits/splits-sdk

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 11:41 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:e3eeeac408cfd4baee16af6acdf1a9826da4aa56a6faebb2f2d6ea883f8c075f

Other collected versions

4.6.02 Oct4.6.0-alpha.02 Oct4.5.014 Sept4.5.0-alpha.014 Sept4.4.019 Mar4.4.0-alpha.019 MarView all collected versions →