ERC1155
Constructor
new ERC1155(config: IContractConfig);
Param | Type | Description |
---|---|---|
config | IContractConfig |
Properties
Methods
Properties
address
Returns
Type: Address
Methods
balanceOf(account, id)
Parameters
Name Type Description account string id number Returns
Type: Promise<number>
balanceOfBatch(accounts, ids)
Parameters
Name Type Description accounts string[] ids number[] Returns
Type: Promise<number[]>
isApprovedForAll(account, operator)
Parameters
Name Type Description account string operator string Returns
Type: Promise<boolean>
safeBatchTransferFrom(args)
Parameters
Name Type Description args IERC1155SafeBatchTransferFromParams Returns
Type: ContractOperation
safeTransferFrom(args)
Parameters
Name Type Description args IERC1155SafeTransferFromParams Returns
Type: ContractOperation
setApprovalForAll(args)
Parameters
Name Type Description args IERC1155SetApprovalForAllParams Returns
Type: ContractOperation
supportsInterface(interfaceId)
Parameters
Name Type Description interfaceId string Returns
Type: Promise<boolean>
uri(id)
See IERC1155MetadataURI-uri.
This implementation returns the same URI for *all* token types. It relies on the token type ID substitution mechanism https://eips.ethereum.org/EIPS/eip-1155\#metadata\[defined in the EIP].
Clients calling this function must replace the id
substring with the actual token type ID.
Parameters
Name Type Description id number Returns
Type: Promise<string>
Events
ApprovalForAll
Emits
Type: Log & { args: IERC1155ApprovalForAllEventParams }
TransferBatch
Emits
Type: Log & { args: IERC1155TransferBatchEventParams }
TransferSingle
Emits
Type: Log & { args: IERC1155TransferSingleEventParams }
URI
Emits
Type: Log & { args: IERC1155URIEventParams }