📄️ getBalance
The getBalance method for the ERC-1155 token standard retrieves the balance of a specific token ID owned by a specified Ethereum address. Unlike ERC-721, which tracks ownership of individual unique tokens, ERC-1155 allows users to own multiple quantities of a particular token type. The method is part of the ERC1155Instance object, which can be obtained through an appropriate method of the EdexaClient or the relevant library.
📄️ getUri
The getUri method for the ERC-1155 token standard fetches the URI associated with a specific token ID. This URI often points to a metadata file, containing details about the token, such as its name, description, image, and other attributes. The method is an integral part of the ERC1155Instance object, which can be accessed through an appropriate method of the EdexaClient or the relevant library.
📄️ getBalanceOfBatch
The getBalanceOfBatch method for the ERC-1155 token standard retrieves the balances of multiple token IDs for a specified Ethereum address. This method is efficient for applications that need to check balances for a range of token IDs in a single call. The method is part of the ERC1155Instance object, which can be acquired through a suitable method of the EdexaClient or the corresponding library.
📄️ mint
The mint method for the ERC-1155 token standard facilitates the creation of a specified quantity of a token with a given ID for a specified Ethereum address. This functionality is pivotal for various applications, such as issuing rewards or creating new token batches. The method is incorporated within the ERC1155Instance object, which can be fetched through the relevant method of the EdexaClient or a similar library.
📄️ mintBatch
The mintBatch method for the ERC-1155 token standard allows for the creation of specified quantities of multiple tokens with respective IDs for a certain Ethereum address. This method is essential for scenarios that require the simultaneous minting of various token types, enhancing efficiency by consolidating multiple minting operations into a single transaction. The method is housed within the ERC1155Instance object, accessible via the designated method of the EdexaClient or a similar library.
📄️ safeTransferFrom
The safeTransferFrom method for the ERC-1155 token standard manages the secure transfer of a specified amount of a token with a given ID from one Ethereum address to another. This method ensures a safe transaction by checking if the receiving address implements the necessary ERC-1155 token receiver interface. The method is encapsulated within the ERC1155Instance object, which is available through the appropriate method of the EdexaClient or the associated library.
📄️ safeBatchTransferFrom
The safeBatchTransferFrom method in the ERC-1155 token standard orchestrates the secure transfer of specified amounts of multiple tokens with their respective IDs from one Ethereum address to another. This method ensures a streamlined and secure transaction by verifying if the receiving address implements the essential ERC-1155 token receiver interface. This method is encompassed within the ERC1155Instance object, obtainable via the relevant method of the EdexaClient or the corresponding library.
📄️ setApprovalForAll
The setApprovalForAll method for the ERC-1155 token standard provides an ability for an Ethereum address (typically representing a smart contract or another user) to manage multiple token IDs on behalf of the current token holder. By setting this approval, the approved address can transfer tokens on the holder's behalf, facilitating operations like batch transfers or trading on decentralized platforms. The method is embedded within the ERC1155Instance object, accessible through the appropriate method of the EdexaClient or the related library.
📄️ transferOwnership
The transferOwnership method is a pivotal function that allows for the transfer of contract ownership from the current owner to a new Ethereum address. Ownership of a contract often grants extensive control over the contract's operations and may include permissions like updating contract parameters, minting tokens, or pausing the contract. This method is embedded within the contract's instance, accessible through the relevant method of the EdexaClient or a corresponding library.