CRYPTO NEWS

Kitsumon Launches NFT Breeding Gameplay

London, United Kingdom, 23rd September, 2022, Chainwire Kitsumon has announced the launch of its Breeding Mainnet, showing the significant progress made by the game project since its testnet […]

How to read ERC1155’s SafeTransferFrom() transactions in golang?

Trying to read ERC1155 SafeTransferFrom events, in golang. Here is what I tried: var ( // erc 1155 logSafeTransferFromSig = []byte("SafeTransferFrom(address,address,uint256,uint256,bytes)") logSafeTransferFromSigHash = crypto.Keccak256Hash(logSafeTransferFromSig) ) When try to match the event via: switch vLog.Topics[0].Hex() { case logSafeTransferFromSigHash.Hex(): // ERC1155 – safeTransferFrom() TransferSingle events on this page are not matched. So how what should variable logSafeTransferFromSig::Listen

Trying to read ERC1155 SafeTransferFrom events, in golang.

Here is what I tried:

var (     // erc 1155     logSafeTransferFromSig     = []byte("SafeTransferFrom(address,address,uint256,uint256,bytes)")     logSafeTransferFromSigHash = crypto.Keccak256Hash(logSafeTransferFromSig) ) 

When try to match the event via:

switch vLog.Topics[0].Hex() {     case logSafeTransferFromSigHash.Hex(): // ERC1155 - safeTransferFrom() 

TransferSingle events on this page are not matched.

So how what should variable logSafeTransferFromSig be?

Kitsumon Launches NFT Breeding Gameplay

Shopping cart
There are no products in the cart!
Continue shopping
0