🦰

ABI

Here the JSON ABI of a collection smart contract deployed with Certhis
​
[
{
"inputs": [
{
"internalType": "uint256",
"name": "_collection_id",
"type": "uint256"
},
{
"internalType": "address",
"name": "_owner",
"type": "address"
},
{
"internalType": "string",
"name": "_name_collection",
"type": "string"
},
{
"internalType": "string",
"name": "_symbol_collection",
"type": "string"
},
{
"internalType": "uint256",
"name": "_max_supply",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"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": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"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": "MAX_SUPPLY",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"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": "address",
"name": "_to",
"type": "address"
},
{
"internalType": "uint256",
"name": "_nft_id",
"type": "uint256"
},
{
"internalType": "address",
"name": "_affiliation",
"type": "address"
}
],
"name": "buy_token",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "collection_id",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_address",
"type": "address"
}
],
"name": "current_minted",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_nft_id",
"type": "uint256"
},
{
"internalType": "uint16",
"name": "_sellable_type",
"type": "uint16"
},
{
"internalType": "address",
"name": "_sellable_currency",
"type": "address"
},
{
"internalType": "uint256",
"name": "_sellable_amount",
"type": "uint256"
}
],
"name": "edit_nft",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bool",
"name": "_freez_mint",
"type": "bool"
},
{
"internalType": "bool",
"name": "_freez_buy",
"type": "bool"
}
],
"name": "freeze",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "getApproved",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_nft_id",
"type": "uint256"
}
],
"name": "get_nft",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "nft_id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "collection_id",
"type": "uint256"
},
{
"internalType": "address",
"name": "owner_address",
"type": "address"
},
{
"internalType": "address",
"name": "creator_address",
"type": "address"
},
{
"internalType": "string",
"name": "token_uri",
"type": "string"
},
{
"internalType": "uint16",
"name": "sellable_type",
"type": "uint16"
},
{
"internalType": "address",
"name": "sellable_currency",
"type": "address"
},
{
"internalType": "uint256",
"name": "sellable_amount",
"type": "uint256"
},
{
"internalType": "bool",
"name": "minted",
"type": "bool"
},
{
"internalType": "uint16",
"name": "royalties",
"type": "uint16"
},
{
"internalType": "address",
"name": "affiliation",
"type": "address"
}
],
"internalType": "struct certhis_struct.NFT",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "index_nft",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"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": "uint16",
"name": "nb_mint",
"type": "uint16"
},
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"components": [
{
"internalType": "uint256",
"name": "nft_id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "collection_id",
"type": "uint256"
},
{
"internalType": "address",
"name": "owner_address",
"type": "address"
},
{
"internalType": "address",
"name": "creator_address",
"type": "address"
},
{
"internalType": "string",
"name": "token_uri",
"type": "string"
},
{
"internalType": "uint16",
"name": "sellable_type",
"type": "uint16"
},
{
"internalType": "address",
"name": "sellable_currency",
"type": "address"
},
{
"internalType": "uint256",
"name": "sellable_amount",
"type": "uint256"
},
{
"internalType": "bool",
"name": "minted",
"type": "bool"
},
{
"internalType": "uint16",
"name": "royalties",
"type": "uint16"
},
{
"internalType": "address",
"name": "affiliation",
"type": "address"
}
],
"internalType": "struct certhis_struct.NFT",
"name": "_nft",
"type": "tuple"
},
{
"components": [
{
"internalType": "uint256",
"name": "price_for_mint",
"type": "uint256"
},
{
"internalType": "address",
"name": "currency_for_mint",
"type": "address"
},
{
"internalType": "bytes32[]",
"name": "proof_price",
"type": "bytes32[]"
},
{
"internalType": "bytes32[]",
"name": "proof_mint",
"type": "bytes32[]"
}
],
"internalType": "struct certhis_struct.mint_proof",
"name": "_mint_proof",
"type": "tuple"
}
],
"name": "mint_p1",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "payable",
"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": "uint256",
"name": "tokenId",
"type": "uint256"
}
],
"name": "ownerOf",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_salePrice",
"type": "uint256"
}
],
"name": "royaltyInfo",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_to",
"type": "address"
},
{
"components": [
{
"internalType": "uint256",
"name": "nft_id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "collection_id",
"type": "uint256"
},
{
"internalType": "address",
"name": "owner_address",
"type": "address"
},
{
"internalType": "address",
"name": "creator_address",
"type": "address"
},
{
"internalType": "string",
"name": "token_uri",
"type": "string"
},
{
"internalType": "uint16",
"name": "sellable_type",
"type": "uint16"
},
{
"internalType": "address",
"name": "sellable_currency",
"type": "address"
},
{
"internalType": "uint256",
"name": "sellable_amount",
"type": "uint256"
},
{
"internalType": "bool",
"name": "minted",
"type": "bool"
},
{
"internalType": "uint16",
"name": "royalties",
"type": "uint16"
},
{
"internalType": "address",
"name": "affiliation",
"type": "address"
}
],
"internalType": "struct certhis_struct.NFT",
"name": "_nft",
"type": "tuple"
},
{
"components": [
{
"internalType": "uint256",
"name": "price_for_mint",
"type": "uint256"
},
{
"internalType": "address",
"name": "currency_for_mint",
"type": "address"
},
{
"internalType": "bytes32[]",
"name": "proof_price",
"type": "bytes32[]"
},
{
"internalType": "bytes32[]",
"name": "proof_mint",
"type": "bytes32[]"
}
],
"internalType": "struct certhis_struct.mint_proof",
"name": "_mint_proof",
"type": "tuple"
}
],
"name": "safeMint",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "payable",
"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": [
{
"internalType": "address",
"name": "operator",
"type": "address"
},
{
"internalType": "bool",
"name": "approved",
"type": "bool"
}
],
"name": "setApprovalForAll",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "interfaceId",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "tokenByIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
}
],
"name": "tokenOfOwnerByIndex",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_nft_id",
"type": "uint256"
}
],
"name": "tokenURI",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",