Gives permission to to
to transfer tokenId
token to another account.
The approval is cleared when the token is transferred.
Only a single account can be approved at a time, so approving the zero address clears previous approvals.
Requirements:
tokenId
must exist.Emits an Approval event.
Mint a new MRC721 token
the EVM style address of the receiver
the uint256 id for the token
an array of TransactionReceipt objects
Batch mint new MRC721 tokens
the EVM style address of the receiver
the uint256 id for the token
the uint8 size of the batch
Optional
gasLimit: numberan array of TransactionReceipt objects
Renounce ownership of this contract
an array of TransactionReceipt objects
Safely transfers tokenId
token from from
to to
, checking first that contract recipients
are aware of the ERC721 protocol to prevent tokens from being forever locked.
Requirements:
from
cannot be the zero address.to
cannot be the zero address.tokenId
token must exist and be owned by from
.from
, it must be have been allowed to move this token by either approve or setApprovalForAll.to
refers to a smart contract, it must implement IERC721Receiver-onERC721Received, which is called upon a safe transfer.Emits a Transfer event.
Safely transfers tokenId
token from from
to to
.
Requirements:
from
cannot be the zero address.to
cannot be the zero address.tokenId
token must exist and be owned by from
.from
, it must be approved to move this token by either approve or setApprovalForAll.to
refers to a smart contract, it must implement IERC721Receiver-onERC721Received, which is called upon a safe transfer.Emits a Transfer event.
Perform sendtocontract
The contract method to send to
The arguments to use
The amount to send to the contract
The amount of gas units allowed
The satoshi price per gas
see Result
Approve or remove operator
as an operator for the caller.
Operators can call transferFrom or safeTransferFrom for any token owned by the caller.
Requirements:
operator
cannot be the caller.Emits an ApprovalForAll event.
Set the baseURI for the tokens
the new baseURI for the tokens
an array of TransactionReceipt objects
Allow or disallow a controller of this contract, controllers are able to call the mint function.
an array of TransactionReceipt objects
Set the current royalty info
the EVM style address of the beneficiary
the uint96 amount of the royalty 100 = 1%
Returns true if this contract implements the interface defined by
interfaceId
. See the corresponding
https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
to learn more about how these ids are created.
This function call must use less than 30 000 gas. Defined in EIP181.
The MNS node to query.
if the interface is supported
Returns a token ID at a given index
of all the tokens stored by the contract.
Use along with totalSupply to enumerate all tokens.
Returns a token ID owned by owner
at a given index
of its token list.
Use along with balanceOf to enumerate all of owner
's tokens.
Transfers tokenId
token from from
to to
.
WARNING: Usage of this method is discouraged, use safeTransferFrom whenever possible.
Requirements:
from
cannot be the zero address.to
cannot be the zero address.tokenId
token must be owned by from
.from
, it must be approved to move this token by either approve or setApprovalForAll.Emits a Transfer event.
Transfer ownership of this contract
the EVM adddress of the receiver
an array of TransactionReceipt objects
Interface that represents a smart contract, which implements MRC721 and has a royalty up to 10%