0.1.6 • Published 2 years ago

topapr v0.1.6

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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
0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago