Search
K

ERC1155

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, id)
bignumber
Returns the number of tokens owned by an address
burn(address, tokenId, amount)
transaction
Destroys the amount of tokens with id if owned by the wallet
burnBatch(address, tokenIds[], amounts[])
transaction
Destroys the amount of tokens with ids if owned by the wallets
buy(tokenId, 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 authorisation for the wallet address.
getTokenInfo()
{
prices[]: number;
supplies[]: number;
totalSupplies[]: number;
}
Returns the current price, supply and total supply of the token
name()
string
Returns the name of the token
presaleDate()
timestamp
Returns the date of the presale opening
prices(tokenId)
bignumber
Returns the price of the token
publicSaleDate()
timestamp
Returns the date of the public sale opening
safeTransferFrom(from, to, tokenId, amount, '0x')
transaction
Transfers a token owned by the wallet
saleCloseDate()
timestamp
Returns the date of the sale closing
supplies(tokenId)
bignumber
Returns the currently minted supply of the contract
symbol()
string
Returns the symbol of the token
totalSupplies(tokenId)
bignumber
Returns the total supply of a token
contractURI
string
Returns the contract metadata url
uri(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": "string",
"name": "_contractMetadataURI",
"type": "string"
},
{
"internalType": "string",
"name": "_tokenMetadataURI",
"type": "string"
},
{
"internalType": "bool",
"name": "_allowBuy",
"type": "bool"
},
{
"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 HyperMintERC1155.Addresses",
"name": "_addresses",
"type": "tuple"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "ArrayLengthMismatch",
"type": "error"
},
{
"inputs": [],
"name": "BuyDisabled",
"type": "error"
},
{
"inputs": [],
"name": "ContractCallBlocked",
"type": "error"
},
{
"inputs": [],
"name": "InsufficientContractBalance",
"type": "error"
},
{
"inputs": [],
"name": "InsufficientPaymentValue",
"type": "error"
},
{
"inputs": [],
"name": "MaxPerTransactionsExceeded",
"type": "error"
},
{
"inputs": [],
"name": "MaxSupplyExceeded",
"type": "error"
},
{
"inputs": [],
"name": "NewSupplyTooLow",
"type": "error"
},
{
"inputs": [],
"name": "NotAuthorised",
"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"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "account",
"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": "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": "operator",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256[]",
"name": "ids",
"type": "uint256[]"
},
{
"indexed": false,
"internalType": "uint256[]",
"name": "values",
"type": "uint256[]"
}
],
"name": "TransferBatch",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "operator",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "TransferSingle",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "value",
"type": "string"
},
{
"indexed": true,
"internalType": "uint256",
"name": "id",
"type": "uint256"
}
],
"name": "URI",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256[]",
"name": "_newSupplies",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "_newPrices",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "_maxPerTransactions",
"type": "uint256[]"
}
],
"name": "addTokens",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"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": "account",
"type": "address"
},
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "accounts",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "ids",
"type": "uint256[]"
}
],
"name": "balanceOfBatch",
"outputs": [
{
"internalType": "uint256[]",
"name": "",
"type": "uint256[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
},
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "burn",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
},
{
"internalType": "uint256[]",
"name": "ids",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "values",
"type": "uint256[]"
}
],
"name": "burnBatch",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"name": "buy",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_id",
"type": "uint256"
},
{
"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": [],
"name": "getTokenInfo",
"outputs": [
{
"components": [
{
"internalType": "uint256[]",
"name": "prices",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "supplies",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "totalSupplies",
"type": "uint256[]"
},
{
"internalType": "uint256[]",
"name": "maxPerTransactions",
"type": "uint256[]"
}
],
"internalType": "struct HyperMintERC1155.TokenInfo",
"name": "tokenInfo",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"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": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "maxPerTransactions",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "_to",
"type": "address[]"
},
{
"internalType": "uint256[][]",
"name": "_ids",
"type": "uint256[][]"
},
{
"internalType": "uint256[][]",
"name": "_amounts",
"type": "uint256[][]"
}
],
"name": "mintBatch",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"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": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "prices",
"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",