use-candymachine
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

Use Candymachine Hook

useCandymachine is a React Hook that provides a simple interface to interact with a Candy Machine. It accepts a Candymachine ID (address) and a Connection Object and then returns multiple functions and other state variables.

Features

  • Fetching a Candymachine
  • Fetching nfts that belong to a Candymachine
  • Pagination when fetching nfts that belong to a Candymachine

Will be implemented

  • A mint function that can be directly called to mint a NFT
  • Cleaner code, things are a little here and there now. Let me know (via an issue) if you have any suggestions. Maybe I am going to split the main hook into multiple ones (and then have a main one) but didn't decide upon that yet.

... more stuff (open an issue if you wanna suggest something)

Contributing

All contributions are welcome!

To get started, fork the repository, clone it, create a new branch that describes the new feature or the bug it is fixing. Then make the required changes, commit them (we strongly recommend that you follow the Conventional Commits specification and gitmojis are welcome). The next step is to create a pull request and a maintainer will review it as soon as possible.

Contact

E-mail: contact@anishde.dev Twitter: @AnishDe12020

Package Sidebar

Install

npm i use-candymachine

Weekly Downloads

19

Version

0.2.1

License

MIT

Unpacked Size

320 kB

Total Files

45

Last publish

Collaborators

  • anishde12020