How to build and use XRC-1155 tokens

// XRC-20function transferFrom(address from, address to, uint256 value) external returns (bool);
// XRC-1155ifunction safeBatchTransferFrom(address _from,address _to,uint256[] calldata _ids,uint256[] calldata _values,bytes calldata _data) external;
// XRC-20function balanceOf(address owner) external view returns (uint256);
// XRC-1155function balanceOfBatch(address[] calldata _owners,uint256[] calldata _ids) external view returns (uint256[] memory);
// XRC-1155function setApprovalForAll(address _operator,bool _approved) external;
// XRC-1155
function isApprovedForAll(address _owner,address _operator) external view returns (bool);
bytes4(keccak256(“onXRC1155BatchReceived(address,address,uint256[],uint256[],bytes)”))
address _operator,address _from,uint256[] calldata _ids,uint256[] calldata _values,bytes calldata _data) external returns(bytes4);

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store