👩‍💻Event Decoders

Transactions contain events. Often, these aren't easily decoded and require domain knowledge. We deliver endpoints to decode publicly known events.

Fetch all events that decentrifi can decode from a given transaction on a network.

GET https://api.decentri.fi/events/decode/{transactionHash}?network={NETWORK}

Path Parameters

NameTypeDescription

transactionHash*

String

Query Parameters

NameTypeDescription

NETWORK*

String

Network, like "ETHEREUM"

[
   {
      "type":"APPROVAL",
      "protocol":null,
      "metadata":{
         "owner":"0x83a524af3cf8eb146132a2459664f7680a5515be",
         "spender":"0x6b093998d36f2c7f0cc359441fbb24cc629d5ff0",
         "asset":{
            "network":{
               "name":"ETHEREUM",
               "logo":"https://github.com/defitrack/data/raw/master/logo/network/ethereum.png",
               "chainId":1
            },
            "logo":"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png",
            "name":"Dai Stablecoin",
            "symbol":"DAI",
            "address":"0x6b175474e89094c44da98b954eedeac495271d0f",
            "decimals":18,
            "type":"SINGLE",
            "totalSupply":4.8457660702839423e+27,
            "underlyingTokens":[
               
            ],
            "protocol":null
         },
         "amount":1.157920892373162e+77
      }
   }
]

Last updated