ERC1155

Methods

balanceOf

function balanceOf(address, uint256) external view returns (uint256)

Get the balance of an account's Tokens.

Parameters

Name
Type
Description

_0

address

undefined

_1

uint256

undefined

Returns

Name
Type
Description

_0

uint256

The _owner's balance of the Token type requested

balanceOfBatch

function balanceOfBatch(address[] accounts, uint256[] ids) external view returns (uint256[])

Parameters

Name
Type
Description

accounts

address[]

undefined

ids

uint256[]

undefined

Returns

Name
Type
Description

_0

uint256[]

undefined

isApprovedForAll

function isApprovedForAll(address, address) external view returns (bool)

Queries the approval status of an operator for a given owner.

Parameters

Name
Type
Description

_0

address

undefined

_1

address

undefined

Returns

Name
Type
Description

_0

bool

True if the operator is approved, false if not

name

function name() external view returns (string)

Returns

Name
Type
Description

_0

string

undefined

safeBatchTransferFrom

function safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] amounts, bytes data) external nonpayable

Parameters

Name
Type
Description

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

Name
Type
Description

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

Name
Type
Description

operator

address

undefined

approved

bool

undefined

supportsInterface

function supportsInterface(bytes4 interfaceId) external view returns (bool)

Parameters

Name
Type
Description

interfaceId

bytes4

undefined

Returns

Name
Type
Description

_0

bool

undefined

symbol

function symbol() external view returns (string)

Returns

Name
Type
Description

_0

string

undefined

uri

function uri(uint256 tokenId) external view returns (string)

Parameters

Name
Type
Description

tokenId

uint256

undefined

Returns

Name
Type
Description

_0

string

undefined

Events

ApprovalForAll

event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved)

Parameters

Name
Type
Description

_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

Name
Type
Description

_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

Name
Type
Description

_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

Name
Type
Description

_value

string

undefined

_id indexed

uint256

undefined

Last updated