getTokens()
Gets information about tokens from the network.
Response
[
{
"id": "number",
"price": "number",
"supply": "number",
"remaining": "number",
"totalSupply": "number",
"maxPerAddress": "number"
}
]
For ERC721 there will only ever be 1 item in the array
Example Implementation
const tokens = await contract.getTokens();
Possible Errors
Errors in the connect()
function
Feedback
Something not quite right, unclear or can't find what you are looking for? Please let us know at support.moonpay.com and we will get back to you as soon as we can.
Updated 9 months ago