Hello guys, I am creating a dapp to sell some erc721 tokens with WBNB, I need to receive the approval events in my dapp to later allow the user to buy the nft, my solution is to listen to the approval events of the token, save them in the database , and with the subscribe function in the client I listen to the events through websocket,
this works without problems on the rinkeby network with a test token that I created following the erc20 standard
but it doesn’t work with WBNB token: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c
this is my configuration for synchronization
Chain: BSC Mainnet
Desc: ERC20 Approvals
Topic: Approval(address,address,uint)
ABI: {
“anonymous”: false,
“inputs”: [
{
“indexed”: true,
“name”: “src”,
“type”: “address”
},
{
“indexed”: true,
“name”: “guy”,
“type”: “address”
},
{
“indexed”: false,
“name”: “wad”,
“type”: “uint256”
}
],
“name”: “Approval”,
“type”: “event”
}
Address: 0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c
filters: {
“eq”: [
“guy”,
“0x5Fc0164BDa2E949F2d2907CCAE3Ee2e23b94C16E”
]
}
TableName: TokenApprovals
0x5Fc0164BDa2E949F2d2907CCAE3Ee2e23b94C16E is the address of the erc721 tokens to sell
I have deactivated the history synchronization since there are too many rows
Thanks I hope you can help me