CharacterBoundToken
getTokenUri
- getTokenUri(__namedParameters, overrides?): Promise<{
data: string;
}> Parameters
- __namedParameters: {
tokenId: Numberish;
} - overrides: ReadOverrides<readonly [{
inputs: readonly [{
name: "web3Entry";
type: "address";
}];
stateMutability: "nonpayable";
type: "constructor";
}, {
inputs: readonly [{
indexed: true;
name: "account";
type: "address";
}, {
indexed: true;
name: "operator";
type: "address";
}, {
indexed: false;
name: "approved";
type: "bool";
}];
name: "ApprovalForAll";
type: "event";
}, {
inputs: readonly [{
indexed: true;
name: "from";
type: "uint256";
}, {
indexed: true;
name: "tokenId";
type: "uint256";
}, {
indexed: true;
name: "amount";
type: "uint256";
}];
name: "Burn";
type: "event";
}, {
inputs: readonly [{
indexed: true;
name: "to";
type: "uint256";
}, {
indexed: true;
name: "tokenId";
type: "uint256";
}, {
indexed: true;
name: "tokenNumber";
type: "uint256";
}];
name: "Mint";
type: "event";
}, {
inputs: readonly [{
indexed: true;
name: "role";
type: "bytes32";
}, {
indexed: true;
name: "previousAdminRole";
type: "bytes32";
}, {
indexed: true;
name: "newAdminRole";
type: "bytes32";
}];
name: "RoleAdminChanged";
type: "event";
}, {
inputs: readonly [{
indexed: true;
name: "role";
type: "bytes32";
}, {
indexed: true;
name: "account";
type: "address";
}, {
indexed: true;
name: "sender";
type: "address";
}];
name: "RoleGranted";
type: "event";
}, {
inputs: readonly [{
indexed: true;
name: "role";
type: "bytes32";
}, {
indexed: true;
name: "account";
type: "address";
}, {
indexed: true;
name: "sender";
type: "address";
}];
name: "RoleRevoked";
type: "event";
}, {
inputs: readonly [{
indexed: true;
name: "operator";
type: "address";
}, {
indexed: true;
name: "from";
type: "address";
}, {
indexed: true;
name: "to";
type: "address";
}, {
indexed: false;
name: "ids";
type: "uint256[]";
}, {
indexed: false;
name: "values";
type: "uint256[]";
}];
name: "TransferBatch";
type: "event";
}, {
inputs: readonly [{
indexed: true;
name: "operator";
type: "address";
}, {
indexed: true;
name: "from";
type: "address";
}, {
indexed: true;
name: "to";
type: "address";
}, {
indexed: false;
name: "id";
type: "uint256";
}, {
indexed: false;
name: "value";
type: "uint256";
}];
name: "TransferSingle";
type: "event";
}, {
inputs: readonly [{
indexed: false;
name: "value";
type: "string";
}, {
indexed: true;
name: "id";
type: "uint256";
}];
name: "URI";
type: "event";
}, {
inputs: readonly [];
name: "DEFAULT_ADMIN_ROLE";
outputs: readonly [{
name: "";
type: "bytes32";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "MINTER_ROLE";
outputs: readonly [{
name: "";
type: "bytes32";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "_web3Entry";
outputs: readonly [{
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "account";
type: "address";
}, {
name: "tokenId";
type: "uint256";
}];
name: "balanceOf";
outputs: readonly [{
name: "balance";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "characterId";
type: "uint256";
}, {
name: "tokenId";
type: "uint256";
}];
name: "balanceOf";
outputs: readonly [{
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "accounts";
type: "address[]";
}, {
name: "tokenIds";
type: "uint256[]";
}];
name: "balanceOfBatch";
outputs: readonly [{
name: "";
type: "uint256[]";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "characterId";
type: "uint256";
}, {
name: "tokenId";
type: "uint256";
}, {
name: "amount";
type: "uint256";
}];
name: "burn";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "role";
type: "bytes32";
}];
name: "getRoleAdmin";
outputs: readonly [{
name: "";
type: "bytes32";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "role";
type: "bytes32";
}, {
name: "index";
type: "uint256";
}];
name: "getRoleMember";
outputs: readonly [{
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "role";
type: "bytes32";
}];
name: "getRoleMemberCount";
outputs: readonly [{
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "role";
type: "bytes32";
}, {
name: "account";
type: "address";
}];
name: "grantRole";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "role";
type: "bytes32";
}, {
name: "account";
type: "address";
}];
name: "hasRole";
outputs: readonly [{
name: "";
type: "bool";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "account";
type: "address";
}, {
name: "operator";
type: "address";
}];
name: "isApprovedForAll";
outputs: readonly [{
name: "";
type: "bool";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "characterId";
type: "uint256";
}, {
name: "tokenId";
type: "uint256";
}];
name: "mint";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "role";
type: "bytes32";
}, {
name: "account";
type: "address";
}];
name: "renounceRole";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "role";
type: "bytes32";
}, {
name: "account";
type: "address";
}];
name: "revokeRole";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "";
type: "address";
}, {
name: "";
type: "address";
}, {
name: "";
type: "uint256[]";
}, {
name: "";
type: "uint256[]";
}, {
name: "";
type: "bytes";
}];
name: "safeBatchTransferFrom";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "";
type: "address";
}, {
name: "";
type: "address";
}, {
name: "";
type: "uint256";
}, {
name: "";
type: "uint256";
}, {
name: "";
type: "bytes";
}];
name: "safeTransferFrom";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "operator";
type: "address";
}, {
name: "approved";
type: "bool";
}];
name: "setApprovalForAll";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "tokenId";
type: "uint256";
}, {
name: "tokenURI";
type: "string";
}];
name: "setTokenURI";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "interfaceId";
type: "bytes4";
}];
name: "supportsInterface";
outputs: readonly [{
name: "";
type: "bool";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "tokenId";
type: "uint256";
}];
name: "uri";
outputs: readonly [{
name: "";
type: "string";
}];
stateMutability: "view";
type: "function";
}], "uri"> = {}
Returns Promise<{
data: string;
}>
The URI of the token.
mint
- mint(__namedParameters, overrides?): Promise<{
data: undefined;
transactionHash: `0x${string}`;
}> Parameters
- __namedParameters: {
characterId: Numberish;
tokenId: Numberish;
} - overrides: WriteOverrides<readonly [{
inputs: readonly [{
name: "web3Entry";
type: "address";
}];
stateMutability: "nonpayable";
type: "constructor";
}, {
inputs: readonly [{
indexed: true;
name: "account";
type: "address";
}, {
indexed: true;
name: "operator";
type: "address";
}, {
indexed: false;
name: "approved";
type: "bool";
}];
name: "ApprovalForAll";
type: "event";
}, {
inputs: readonly [{
indexed: true;
name: "from";
type: "uint256";
}, {
indexed: true;
name: "tokenId";
type: "uint256";
}, {
indexed: true;
name: "amount";
type: "uint256";
}];
name: "Burn";
type: "event";
}, {
inputs: readonly [{
indexed: true;
name: "to";
type: "uint256";
}, {
indexed: true;
name: "tokenId";
type: "uint256";
}, {
indexed: true;
name: "tokenNumber";
type: "uint256";
}];
name: "Mint";
type: "event";
}, {
inputs: readonly [{
indexed: true;
name: "role";
type: "bytes32";
}, {
indexed: true;
name: "previousAdminRole";
type: "bytes32";
}, {
indexed: true;
name: "newAdminRole";
type: "bytes32";
}];
name: "RoleAdminChanged";
type: "event";
}, {
inputs: readonly [{
indexed: true;
name: "role";
type: "bytes32";
}, {
indexed: true;
name: "account";
type: "address";
}, {
indexed: true;
name: "sender";
type: "address";
}];
name: "RoleGranted";
type: "event";
}, {
inputs: readonly [{
indexed: true;
name: "role";
type: "bytes32";
}, {
indexed: true;
name: "account";
type: "address";
}, {
indexed: true;
name: "sender";
type: "address";
}];
name: "RoleRevoked";
type: "event";
}, {
inputs: readonly [{
indexed: true;
name: "operator";
type: "address";
}, {
indexed: true;
name: "from";
type: "address";
}, {
indexed: true;
name: "to";
type: "address";
}, {
indexed: false;
name: "ids";
type: "uint256[]";
}, {
indexed: false;
name: "values";
type: "uint256[]";
}];
name: "TransferBatch";
type: "event";
}, {
inputs: readonly [{
indexed: true;
name: "operator";
type: "address";
}, {
indexed: true;
name: "from";
type: "address";
}, {
indexed: true;
name: "to";
type: "address";
}, {
indexed: false;
name: "id";
type: "uint256";
}, {
indexed: false;
name: "value";
type: "uint256";
}];
name: "TransferSingle";
type: "event";
}, {
inputs: readonly [{
indexed: false;
name: "value";
type: "string";
}, {
indexed: true;
name: "id";
type: "uint256";
}];
name: "URI";
type: "event";
}, {
inputs: readonly [];
name: "DEFAULT_ADMIN_ROLE";
outputs: readonly [{
name: "";
type: "bytes32";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "MINTER_ROLE";
outputs: readonly [{
name: "";
type: "bytes32";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "_web3Entry";
outputs: readonly [{
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "account";
type: "address";
}, {
name: "tokenId";
type: "uint256";
}];
name: "balanceOf";
outputs: readonly [{
name: "balance";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "characterId";
type: "uint256";
}, {
name: "tokenId";
type: "uint256";
}];
name: "balanceOf";
outputs: readonly [{
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "accounts";
type: "address[]";
}, {
name: "tokenIds";
type: "uint256[]";
}];
name: "balanceOfBatch";
outputs: readonly [{
name: "";
type: "uint256[]";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "characterId";
type: "uint256";
}, {
name: "tokenId";
type: "uint256";
}, {
name: "amount";
type: "uint256";
}];
name: "burn";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "role";
type: "bytes32";
}];
name: "getRoleAdmin";
outputs: readonly [{
name: "";
type: "bytes32";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "role";
type: "bytes32";
}, {
name: "index";
type: "uint256";
}];
name: "getRoleMember";
outputs: readonly [{
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "role";
type: "bytes32";
}];
name: "getRoleMemberCount";
outputs: readonly [{
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "role";
type: "bytes32";
}, {
name: "account";
type: "address";
}];
name: "grantRole";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "role";
type: "bytes32";
}, {
name: "account";
type: "address";
}];
name: "hasRole";
outputs: readonly [{
name: "";
type: "bool";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "account";
type: "address";
}, {
name: "operator";
type: "address";
}];
name: "isApprovedForAll";
outputs: readonly [{
name: "";
type: "bool";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "characterId";
type: "uint256";
}, {
name: "tokenId";
type: "uint256";
}];
name: "mint";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "role";
type: "bytes32";
}, {
name: "account";
type: "address";
}];
name: "renounceRole";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "role";
type: "bytes32";
}, {
name: "account";
type: "address";
}];
name: "revokeRole";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "";
type: "address";
}, {
name: "";
type: "address";
}, {
name: "";
type: "uint256[]";
}, {
name: "";
type: "uint256[]";
}, {
name: "";
type: "bytes";
}];
name: "safeBatchTransferFrom";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "";
type: "address";
}, {
name: "";
type: "address";
}, {
name: "";
type: "uint256";
}, {
name: "";
type: "uint256";
}, {
name: "";
type: "bytes";
}];
name: "safeTransferFrom";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "operator";
type: "address";
}, {
name: "approved";
type: "bool";
}];
name: "setApprovalForAll";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "tokenId";
type: "uint256";
}, {
name: "tokenURI";
type: "string";
}];
name: "setTokenURI";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "interfaceId";
type: "bytes4";
}];
name: "supportsInterface";
outputs: readonly [{
name: "";
type: "bool";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "tokenId";
type: "uint256";
}];
name: "uri";
outputs: readonly [{
name: "";
type: "string";
}];
stateMutability: "view";
type: "function";
}], "mint"> = {}
Returns Promise<{
data: undefined;
transactionHash: `0x${string}`;
}>
The transaction hash.
setTokenUri
- setTokenUri(__namedParameters, overrides?): Promise<{
data: undefined;
transactionHash: `0x${string}`;
}> Parameters
- __namedParameters: {
tokenId: Numberish;
uri: string;
} - overrides: WriteOverrides<readonly [{
inputs: readonly [{
name: "web3Entry";
type: "address";
}];
stateMutability: "nonpayable";
type: "constructor";
}, {
inputs: readonly [{
indexed: true;
name: "account";
type: "address";
}, {
indexed: true;
name: "operator";
type: "address";
}, {
indexed: false;
name: "approved";
type: "bool";
}];
name: "ApprovalForAll";
type: "event";
}, {
inputs: readonly [{
indexed: true;
name: "from";
type: "uint256";
}, {
indexed: true;
name: "tokenId";
type: "uint256";
}, {
indexed: true;
name: "amount";
type: "uint256";
}];
name: "Burn";
type: "event";
}, {
inputs: readonly [{
indexed: true;
name: "to";
type: "uint256";
}, {
indexed: true;
name: "tokenId";
type: "uint256";
}, {
indexed: true;
name: "tokenNumber";
type: "uint256";
}];
name: "Mint";
type: "event";
}, {
inputs: readonly [{
indexed: true;
name: "role";
type: "bytes32";
}, {
indexed: true;
name: "previousAdminRole";
type: "bytes32";
}, {
indexed: true;
name: "newAdminRole";
type: "bytes32";
}];
name: "RoleAdminChanged";
type: "event";
}, {
inputs: readonly [{
indexed: true;
name: "role";
type: "bytes32";
}, {
indexed: true;
name: "account";
type: "address";
}, {
indexed: true;
name: "sender";
type: "address";
}];
name: "RoleGranted";
type: "event";
}, {
inputs: readonly [{
indexed: true;
name: "role";
type: "bytes32";
}, {
indexed: true;
name: "account";
type: "address";
}, {
indexed: true;
name: "sender";
type: "address";
}];
name: "RoleRevoked";
type: "event";
}, {
inputs: readonly [{
indexed: true;
name: "operator";
type: "address";
}, {
indexed: true;
name: "from";
type: "address";
}, {
indexed: true;
name: "to";
type: "address";
}, {
indexed: false;
name: "ids";
type: "uint256[]";
}, {
indexed: false;
name: "values";
type: "uint256[]";
}];
name: "TransferBatch";
type: "event";
}, {
inputs: readonly [{
indexed: true;
name: "operator";
type: "address";
}, {
indexed: true;
name: "from";
type: "address";
}, {
indexed: true;
name: "to";
type: "address";
}, {
indexed: false;
name: "id";
type: "uint256";
}, {
indexed: false;
name: "value";
type: "uint256";
}];
name: "TransferSingle";
type: "event";
}, {
inputs: readonly [{
indexed: false;
name: "value";
type: "string";
}, {
indexed: true;
name: "id";
type: "uint256";
}];
name: "URI";
type: "event";
}, {
inputs: readonly [];
name: "DEFAULT_ADMIN_ROLE";
outputs: readonly [{
name: "";
type: "bytes32";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "MINTER_ROLE";
outputs: readonly [{
name: "";
type: "bytes32";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [];
name: "_web3Entry";
outputs: readonly [{
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "account";
type: "address";
}, {
name: "tokenId";
type: "uint256";
}];
name: "balanceOf";
outputs: readonly [{
name: "balance";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "characterId";
type: "uint256";
}, {
name: "tokenId";
type: "uint256";
}];
name: "balanceOf";
outputs: readonly [{
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "accounts";
type: "address[]";
}, {
name: "tokenIds";
type: "uint256[]";
}];
name: "balanceOfBatch";
outputs: readonly [{
name: "";
type: "uint256[]";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "characterId";
type: "uint256";
}, {
name: "tokenId";
type: "uint256";
}, {
name: "amount";
type: "uint256";
}];
name: "burn";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "role";
type: "bytes32";
}];
name: "getRoleAdmin";
outputs: readonly [{
name: "";
type: "bytes32";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "role";
type: "bytes32";
}, {
name: "index";
type: "uint256";
}];
name: "getRoleMember";
outputs: readonly [{
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "role";
type: "bytes32";
}];
name: "getRoleMemberCount";
outputs: readonly [{
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "role";
type: "bytes32";
}, {
name: "account";
type: "address";
}];
name: "grantRole";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "role";
type: "bytes32";
}, {
name: "account";
type: "address";
}];
name: "hasRole";
outputs: readonly [{
name: "";
type: "bool";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "account";
type: "address";
}, {
name: "operator";
type: "address";
}];
name: "isApprovedForAll";
outputs: readonly [{
name: "";
type: "bool";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "characterId";
type: "uint256";
}, {
name: "tokenId";
type: "uint256";
}];
name: "mint";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "role";
type: "bytes32";
}, {
name: "account";
type: "address";
}];
name: "renounceRole";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "role";
type: "bytes32";
}, {
name: "account";
type: "address";
}];
name: "revokeRole";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "";
type: "address";
}, {
name: "";
type: "address";
}, {
name: "";
type: "uint256[]";
}, {
name: "";
type: "uint256[]";
}, {
name: "";
type: "bytes";
}];
name: "safeBatchTransferFrom";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "";
type: "address";
}, {
name: "";
type: "address";
}, {
name: "";
type: "uint256";
}, {
name: "";
type: "uint256";
}, {
name: "";
type: "bytes";
}];
name: "safeTransferFrom";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "operator";
type: "address";
}, {
name: "approved";
type: "bool";
}];
name: "setApprovalForAll";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "tokenId";
type: "uint256";
}, {
name: "tokenURI";
type: "string";
}];
name: "setTokenURI";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
name: "interfaceId";
type: "bytes4";
}];
name: "supportsInterface";
outputs: readonly [{
name: "";
type: "bool";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
name: "tokenId";
type: "uint256";
}];
name: "uri";
outputs: readonly [{
name: "";
type: "string";
}];
stateMutability: "view";
type: "function";
}], "setTokenURI"> = {}
Returns Promise<{
data: undefined;
transactionHash: `0x${string}`;
}>
The transaction hash.
Other
This returns the URI of the token.