ERC-721a
The following functions are available directly on the contract.
Functions
Signature | Response | Description |
---|---|---|
allowBuy() | boolean | Returns true if buying on network is enabled |
balanceOf(address) | bignumber | Returns the number of tokens owned by an address |
burn(tokenId) | transaction | Destroys the token with id if owned by the wallet |
buy(amount) | transaction | Buys the amount of tokens. Requires the correct value to be sent |
buyAuthorised(amount, price, maxPerAddress, expires, signature) | transaction | Buys the amount of tokens when in the presale window. Requires the correct value to be sent along with an authorization for the wallet address |
getTokenInfo() | { price: number; supply: number; totalSupply: number; } | Returns the current price, supply and total supply of the token |
name() | string | Returns the name of the contract |
ownerOf(tokenId) | string | Returns the address which owns the token |
presaleDate() | timestamp | Returns the date of the presale opening |
price() | bignumber | Returns the price of the token |
publicSaleDate() | timestamp | Returns the date of the public sale opening |
safeTransferFrom(from, to, tokenId) | transaction | Transfers a token owned by the wallet |
saleCloseDate() | timestamp | Returns the date of the sale closing |
supply() | bignumber | Returns the currently minted supply of the contract |
symbol() | string | Returns the symbol of the contract |
contractURI | string | Returns the contract metadata url |
tokenURI(tokenId) | string | Returns the token metadata url for a token |
JSON ABI
[
{
"inputs": [
{
"internalType": "string",
"name": "__name",
"type": "string"
},
{
"internalType": "string",
"name": "__symbol",
"type": "string"
},
{
"internalType": "uint256",
"name": "_price",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_maxSupply",
"type": "uint256"
},
{
"internalType": "string",
"name": "_contractMetadataURI",
"type": "string"
},
{
"internalType": "string",
"name": "_tokenMetadataURI",
"type": "string"
},
{
"internalType": "bool",
"name": "_allowBuy",
"type": "bool"
},
{
"internalType": "uint256",
"name": "_maxPerTransaction",
"type": "uint256"
},
{
"components": [
{
"internalType": "address",
"name": "customerAddress",
"type": "address"
},
{
"internalType": "address",
"name": "collectionOwnerAddress",
"type": "address"
},
{
"internalType": "address",
"name": "authorisationAddress",
"type": "address"
},
{
"internalType": "address",
"name": "purchaseTokenAddress",
"type": "address"
},
{
"internalType": "address",
"name": "managerPrimaryRoyaltyAddress",
"type": "address"
},
{
"internalType": "address",
"name": "customerPrimaryRoyaltyAddress",
"type": "address"
},
{
"internalType": "address",
"name": "secondaryRoyaltyAddress",
"type": "address"
}
],
"internalType": "struct HyperMintERC721A.Addresses",
"name": "_addresses",
"type": "tuple"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "ApprovalCallerNotOwnerNorApproved",
"type": "error"
},
{
"inputs": [],
"name": "ApprovalQueryForNonexistentToken",
"type": "error"
},
{
"inputs": [],
"name": "ApproveToCaller",
"type": "error"
},
{
"inputs": [],
"name": "BalanceQueryForZeroAddress",
"type": "error"
},
{
"inputs": [],
"name": "BuyDisabled",
"type": "error"
},
{
"inputs": [],
"name": "ContractCallBlocked",
"type": "error"
},
{
"inputs": [],
"name": "InsufficientContractBalance",
"type": "error"
},
{
"inputs": [],
"name": "InsufficientPaymentValue",
"type": "error"
},
{
"inputs": [],
"name": "MaxPerAddressExceeded",
"type": "error"
},
{
"inputs": [],
"name": "MaxPerTransactionExceeded",
"type": "error"
},
{
"inputs": [],
"name": "MaxSupplyExceeded",
"type": "error"
},
{
"inputs": [],
"name": "MintERC2309QuantityExceedsLimit",
"type": "error"
},
{
"inputs": [],
"name": "MintToZeroAddress",
"type": "error"
},
{
"inputs": [],
"name": "MintZeroQuantity",
"type": "error"
},
{
"inputs": [],
"name": "NewSupplyTooLow",
"type": "error"
},
{
"inputs": [],
"name": "NotAuthorised",
"type": "error"
},
{
"inputs": [],
"name": "OwnerQueryForNonexistentToken",
"type": "error"
},
{
"inputs": [],
"name": "OwnershipNotInitializedForExtraData",
"type": "error"
},
{
"inputs": [],
"name": "PayoutCustomerFailed",
"type": "error"
},
{
"inputs": [],
"name": "PayoutHypermintFailed",
"type": "error"
},
{
"inputs": [],
"name": "PublicSaleClosed",
"type": "error"
},
{
"inputs": [],
"name": "SaleClosed",
"type": "error"
},
{
"inputs": [],
"name": "SignatureExpired",
"type": "error"
},
{
"inputs": [],
"name": "TransferCallerNotOwnerNorApproved",
"type": "error"
},
{
"inputs": [],
"name": "TransferFromIncorrectOwner",
"type": "error"
},
{
"inputs": [],
"name": "TransferToNonERC721ReceiverImplementer",
"type": "error"
},
{
"inputs": [],
"name": "TransferToZeroAddress",
"type": "error"
},
{
"inputs": [],
"name": "URIQueryForNonexistentToken",
"type": "error"
},
{
"inputs": [],
"name": "nonExistentToken",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "approved",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "operator",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "approved",
"type": "bool"
}
],
"name": "ApprovalForAll",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousCollectionOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newCollectionOwner",
"type": "address"
}
],
"name": "CollectionOwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "fromTokenId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "toTokenId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
}
],
"name": "ConsecutiveTransfer",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousContractManager",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newContractManager",
"type": "address"
}
],
"name": "ContractOwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [],
"name": "addresses",
"outputs": [
{
"internalType": "address",
"name": "customerAddress",
"type": "address"
},
{
"internalType": "address",
"name": "collectionOwnerAddress",
"type": "address"
},
{
"internalType": "address",
"name": "authorisationAddress",
"type": "address"
},
{
"internalType": "address",
"name": "purchaseTokenAddress",
"type": "address"
},
{
"internalType": "address",
"name": "managerPrimaryRoyaltyAddress",
"type": "address"
},
{
"internalType": "address",
"name": "customerPrimaryRoyaltyAddress",
"type": "address"
},
{
"internalType": "address",
"name": "secondaryRoyaltyAddress",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "allowBuy",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "approve",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "burn",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"name": "buy",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_totalPrice",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_maxPerAddress",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_expires",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_signature",
"type": "bytes"
}
],
"name": "buyAuthorised",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "collectionOwner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "contractManager",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "contractURI",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "getApproved",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getTokenInfo",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "price",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "supply",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxSupply",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxPerTransaction",
"type": "uint256"
}
],
"internalType": "struct HyperMintERC721A.TokenInfo",
"name": "tokenInfo",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "operator",
"type": "address"
}
],
"name": "isApprovedForAll",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32[]",
"name": "proof",
"type": "bytes32[]"
},
{
"internalType": "bytes32",
"name": "root",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "leaf",
"type": "bytes32"
}
],
"name": "isValid",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "maxPerTransaction",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "maxSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "_accounts",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "_amounts",
"type": "uint256[]"
}
],
"name": "mintBatch",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "tokenName",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "ownerOf",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "purchaseToken",
"type": "address"
},
{
"internalType": "address",
"name": "managerPrimaryRoyaltyAddress",
"type": "address"
},
{
"internalType": "address",
"name": "customerPrimaryRoyaltyAddress",
"type": "address"
}
],
"name": "payout",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "price",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "primaryRoyaltyFee",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "publicSaleDate",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "renounceContractOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_salePrice",
"type": "uint256"
}
],
"name": "royaltyInfo",
"outputs": [
{
"internalType": "address",
"name": "royaltyAdress",
"type": "address"
},
{
"internalType": "uint256",
"name": "royaltyAmount",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"name": "safeTransferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "saleCloseDate",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "secondaryRoyaltyFee",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "address",
"name": "customerAddress",
"type": "address"
},
{
"internalType": "address",
"name": "collectionOwnerAddress",
"type": "address"
},
{
"internalType": "address",
"name": "authorisationAddress",
"type": "address"
},
{
"internalType": "address",
"name": "purchaseTokenAddress",
"type": "address"
},
{
"internalType": "address",
"name": "managerPrimaryRoyaltyAddress",
"type": "address"
},
{
"internalType": "address",
"name": "customerPrimaryRoyaltyAddress",
"type": "address"
},
{
"internalType": "address",
"name": "secondaryRoyaltyAddress",
"type": "address"
}
],
"internalType": "struct HyperMintERC721A.Addresses",
"name": "_addresses",
"type": "tuple"
}
],
"name": "setAddresses",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bool",
"name": "_allowBuy",
"type": "bool"
}
],
"name": "setAllowBuy",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "operator",
"type": "address"
},
{
"internalType": "bool",
"name": "approved",
"type": "bool"
}
],
"name": "setApprovalForAll",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_publicSale",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_saleClosed",
"type": "uint256"
}
],
"name": "setDates",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_contractURI",
"type": "string"
},
{
"internalType": "string",
"name": "_tokenURI",
"type": "string"
}
],
"name": "setMetadataURIs",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_newName",
"type": "string"
},
{
"internalType": "string",
"name": "_newSymbol",
"type": "string"
}
],
"name": "setNameAndSymbol",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_primaryFee",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_secondaryFee",
"type": "uint256"
}
],
"name": "setRoyalty",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_price",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_maxSupply",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_maxPerTransaction",
"type": "uint256"
}
],
"name": "setTokenData",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "_interfaceId",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "result",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "tokenSymbol",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "tokenMetadataURI",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
}
],
"name": "tokenURI",
"outputs": [
{
"internalType": "string",
"name": "uri",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "addr",
"type": "address"
}
],
"name": "totalMinted",
"outputs": [
{
"internalType": "uint256",
"name": "numMinted",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newCollectionOwner",
"type": "address"
}
],
"name": "transferCollectionOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newContractManager",
"type": "address"
}
],
"name": "transferContractManagerOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "transferContractOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "from",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "version",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "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 8 months ago