use-candymachine
v0.2.1
Published
`useCandymachine` is a [React Hook](https://reactjs.org/docs/hooks-intro.html) that provides a simple interface to interact with a [Candy Machine](https://docs.metaplex.com/programs/candy-machine/). It accepts a Candymachine ID (address) and a [Connection
Downloads
9
Maintainers
Readme
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: [email protected] Twitter: @AnishDe12020