Hello all,
Given the following transaction in bsc: 0x575e4a540c9605c5e6cdd318743b78f41b3c94c32cacec5478d7fd055347afed
I am trying to extract the internal transactions done on pancakeswaps
I am running the following Moralis code:
from moralis import evm_api
import json
api_key = API_KEY
params = {
“address”: “0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c”, #WBNB contract
“chain”: “bsc”,
“topic”: “0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef”, #topic ID
“abi”:
{
"anonymous": False,
"inputs": [
{
"indexed": True,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": True,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": False,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
}
}
result = evm_api.events.get_contract_logs(
api_key=api_key,
params=params,
)
pretty = json.dumps(result, indent=2, sort_keys=True)
print(pretty)
In the output i get a data which is an hexa:
“data”: “0x000000000000000000000000000000000000000000000000016345785d8a0000”
Any way to decode this?
Many thanks