transferFrom
method.balanceOf
method would return the number of swords owned by a wallet, and a user can transfer any number of these swords by calling transferFrom
with the “sword” ID.transferFrom
method) for 1,000 unique tokens. With ERC1155, the developer need only call transferFrom
with quantity 1,000 and perform a single transfer operation. This increased efficiency, of course, comes with the loss of information: we can no longer trace the history of an individual sword.