useCounts
Hook to get mint counts and remaining from a Mintdrop contract.
import { useCounts } from "@mintdrop/sdk"
Usage
import { useCounts } from "@mintdrop/sdk"
const Counts = () => {
const counts = useCounts()
const val = `
{
"maxSupply": ${counts.maxSupply},
"totalSupply": ${counts.totalSupply},
"remaining": ${counts.remaining}
}
`
return (
<div>
<pre>{val}</pre>
</div>
)
}
{ "maxSupply": Infinity, "totalSupply": 0, "remaining": Infinity }
Returns
{
mintCount: number,
remaining: number
}