ERC1155 - View All & View Owned
You can utilize these features of the SDK if your contract implements the ERC1155Enumerable interface.
Get All NFTs
Get all the data associated with every NFT in this contract.
By default, it loads the first 100
NFTs; an optional QueryAllParams
object can be provided to specify a count
and start
value.
- React
- Javascript
- Python
- Go
- Unity
const nfts = await contract.erc1155.getAll();
This snippet is for v3 of the SDK. Learn how to upgrade.
View in React SDK Documentationconst nfts = await contract.erc1155.getAll();
This snippet is for v3 of the SDK. Learn how to upgrade.
View in Javascript SDK DocumentationThis feature is missing a code snippet or might not be supported yet.
Check the Python SDK documentation for more information.
Reach out on Discord for further assistance!
View Python SDK DocumentationThis feature is missing a code snippet or might not be supported yet.
Check the Go SDK documentation for more information.
Reach out on Discord for further assistance!
View Go SDK Documentationvar nfts = await contract.ERC1155.GetAll();
Get Owned NFTs
Get all of the NFTs owned by a specific wallet address at this current point in time.
Automatically fetches the metadata for each NFT.
- React
- Javascript
- Python
- Go
- Unity
// Address of the wallet to get the NFTs of
const address = "{{wallet_address}}";
const nfts = await contract.erc1155.getOwned(address);
This snippet is for v3 of the SDK. Learn how to upgrade.
View in React SDK Documentation// Address of the wallet to get the NFTs of
const address = "{{wallet_address}}";
const nfts = await contract.erc1155.getOwned(address);
This snippet is for v3 of the SDK. Learn how to upgrade.
View in Javascript SDK DocumentationThis feature is missing a code snippet or might not be supported yet.
Check the Python SDK documentation for more information.
Reach out on Discord for further assistance!
View Python SDK DocumentationThis feature is missing a code snippet or might not be supported yet.
Check the Go SDK documentation for more information.
Reach out on Discord for further assistance!
View Go SDK Documentation// Address of the wallet to get the NFTs of
var address = "{{wallet_address}}";
var nfts = await contract.ERC1155.GetOwned(address);