how can I get the data of my erc1155 on the front/backend? I don't know which libraries and which functions to use? Thank you

1 Answer 1


ERC1155 gives you a function uri(uint256 _id) external view returns (string memory); function that gives you URL for metadata of an asset. The metadata is a JSON file. See EIP-1155 for more details.

About how you'll access the data; is how you'll invoke the contract function. You can use any known library; ( web3.js being a popular one) to call the uri function, and then make an HTTP call to the URL and get desired data.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.