@decent.xyz/the-box

1.1.43 • 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

Keywords

none

Install

DownloadsWeekly Downloads

277

Version

1.1.43

License

GNU GPL V3.0

Unpacked Size

1.79 MB

Total Files

346

Last publish

Collaborators

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