getContractInformation()
Gets information about the contract from the network.
Response
{
"id": "string",
"name": "string",
"symbol": "string",
"status": "Draft | Deploying | Deployed | Disabled",
"network": {
"type": "string",
"contractType": "ERC721 | ERC721",
"contractAddress": "string",
"chain": "number",
"environment": "string",
"useManagedAccessList": "boolean"
},
"allowBuyOnNetwork": "boolean",
"allowBuyWithMoonPay": "boolean",
"publicSaleAt": "Date | undefined",
"saleClosesAt": "Date | undefined",
"metadata": {
"type": "None | Hosted | Url",
"tokenUrl": "string | undefined",
"description": "string | undefined",
"externalLink": "string | undefined"
},
"tokenCount": "number",
"accessLists": [
{
"startDate": "string | undefined",
"endDate": "string | undefined"
}
],
"erc721MaxPerTransaction": "number | undefined",
"erc721Price": "number | undefined"
}
Example Usage
const contractInfo = await contract.getContractInformation();
Logging
The SDK will prefix all logs from getContractInformation()
with HM (getContractInformation) -
Possible Errors
Contract not found
- The contractId you specific does not exist or you do not have access to it
- All errors in the connect() function may also be raised.
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 8 months ago