ERC1155
Methods
balanceOf
function balanceOf(address, uint256) external view returns (uint256)
Get the balance of an account's Tokens.
Parameters
_0
address
undefined
_1
uint256
undefined
Returns
_0
uint256
The _owner's balance of the Token type requested
balanceOfBatch
function balanceOfBatch(address[] accounts, uint256[] ids) external view returns (uint256[])
Parameters
accounts
address[]
undefined
ids
uint256[]
undefined
Returns
_0
uint256[]
undefined
isApprovedForAll
function isApprovedForAll(address, address) external view returns (bool)
Queries the approval status of an operator for a given owner.
Parameters
_0
address
undefined
_1
address
undefined
Returns
_0
bool
True if the operator is approved, false if not
name
function name() external view returns (string)
Returns
_0
string
undefined
safeBatchTransferFrom
function safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] amounts, bytes data) external nonpayable
Parameters
from
address
undefined
to
address
undefined
ids
uint256[]
undefined
amounts
uint256[]
undefined
data
bytes
undefined
safeTransferFrom
function safeTransferFrom(address from, address to, uint256 id, uint256 amount, bytes data) external nonpayable
Parameters
from
address
undefined
to
address
undefined
id
uint256
undefined
amount
uint256
undefined
data
bytes
undefined
setApprovalForAll
function setApprovalForAll(address operator, bool approved) external nonpayable
Parameters
operator
address
undefined
approved
bool
undefined
supportsInterface
function supportsInterface(bytes4 interfaceId) external view returns (bool)
Parameters
interfaceId
bytes4
undefined
Returns
_0
bool
undefined
symbol
function symbol() external view returns (string)
Returns
_0
string
undefined
uri
function uri(uint256 tokenId) external view returns (string)
Parameters
tokenId
uint256
undefined
Returns
_0
string
undefined
Events
ApprovalForAll
event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved)
Parameters
_owner indexed
address
undefined
_operator indexed
address
undefined
_approved
bool
undefined
TransferBatch
event TransferBatch(address indexed _operator, address indexed _from, address indexed _to, uint256[] _ids, uint256[] _values)
Parameters
_operator indexed
address
undefined
_from indexed
address
undefined
_to indexed
address
undefined
_ids
uint256[]
undefined
_values
uint256[]
undefined
TransferSingle
event TransferSingle(address indexed _operator, address indexed _from, address indexed _to, uint256 _id, uint256 _value)
Parameters
_operator indexed
address
undefined
_from indexed
address
undefined
_to indexed
address
undefined
_id
uint256
undefined
_value
uint256
undefined
URI
event URI(string _value, uint256 indexed _id)
Parameters
_value
string
undefined
_id indexed
uint256
undefined
Last updated