Skip to content

galleon8/ankr-react

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ankr-react

React hooks and components built on top of Ankr's Advanced APIs and Ankr.js

Usage

  1. Install the package
npm install ankr-react

yarn add ankr-react
  1. Wrap your app with the <Provider /> component
import { Provider } from 'ankr-react';

function MyApp({ Component, pageProps }) {
  return (
    <Provider>
      <Component {...pageProps} />
    </Provider>
  );
}

export default MyApp;
  1. Use the hooks
import { useNFTsByOwner } from 'ankr-react';

const Page = () => {
  const {data, error, isLoading} = useNFTsByOwner({
    walletAddress: '0x0ED6Cec17F860fb54E21D154b49DAEFd9Ca04106',
    blockchain: ['eth', 'polygon'],
  })

  return (
    ...
  )
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 93.4%
  • JavaScript 4.1%
  • HTML 2.5%