@decent.xyz/the-box

4.0.6 • Public • Published

The Box

The Box enables 1-click checkout for any NFT with any token across chains and primary and secondary sales (primary = mints; secondary = marketplace trades). It abstracts bridging and swapping to provide users a seamless transaction experience regardless of chain. Instead of making users scour aggregated secondary marketplaces, The Box serves NFTs up with a single click within the context they were meant to be sold.

Get started by requesting an API key here.

To use TheBox in one of your files, first from your terminal run

$ npm i @decent.xyz/the-box@latest

To import into a page, add:

import { TheBox } from "@decent.xyz/the-box";

To style, pass in this stylesheet (either in an _app.ts file if using in multiple places or in the same place where calling TheBox):

import "@decent.xyz/the-box/dist/the-box-base.css";

The box supports also light mode and dark mode. To do so, after importing the-box-base.css, import one of the two following lines:

import "@decent.xyz/the-box/dist/dark.css";

import "@decent.xyz/the-box/dist/light.css";

for more implementation information or information around calling the api directly, please see our docs

Readme

Keywords

none

Package Sidebar

Install

npm i @decent.xyz/the-box

Weekly Downloads

1,464

Version

4.0.6

License

GNU GPL V3.0

Unpacked Size

209 kB

Total Files

7

Last publish

Collaborators

  • wkantaros
  • decentxyz
  • cdsiren
  • zev2axa
  • edricy
  • arshankhanifar