0.1.6 • Published 2 years ago
topapr v0.1.6
useThentic
React hooks for Thentic API
Installation
npm install topapr
or
yarn add topapr
Examples
import { useThentic } from "topapr";
export default function TestThentic() {
const { nfts, fetchNfts, isLoading } = useThentic("YOUR API", 97);
useEffect(() => {
fetchNfts({
address: "YOUR WALLET ADDRESS",
status: "success"
});
}, [fetchNfts]);
return (
isLoading ? <div>Loading...</div> : (
<div>
{nfts.map((nft) => (
<div key={nft.id}>{nft.id}</div>
))}
</div>
);
);
}
Methods
- fetchNfts
- fetchMintNft
- mintNft
State
- nfts
- currentNftMint
- error
- isLoading