Internal API Hooks
Every single API call made can be found here, such as Koii SDK
React-query Queries
Everything inside api/hooks is a React-query hook. Take a look at React-query documentation as it is a fundamental tool in Koii-X.
Example
An example of these hooks is the useNft
query hook, where we fetch, cache, and synchronize the single NFT data from Koii API.
As you can see we're simple fetching axios
the NFT content from https://mainnet.koii.live//attention/nft?id=${id}
Finnie & SDK
The rest of the files inside api
folder are related to Finnie, SDK, upload, and general calls.
Last updated