POST
/
insights
/
v1
/
decode
/
{contractAddress}
Decode logs and transactions​
curl --request POST \
  --url https://data-api.b3.fun/insights/v1/decode/{contractAddress} \
  --header 'Content-Type: application/json' \
  --data '{
  "transactions": [
    {
      "data": "<string>"
    }
  ],
  "logs": [
    {
      "data": "<string>",
      "topics": [
        "<string>"
      ]
    }
  ]
}'
{
  "data": {
    "transactions": [
      {
        "data": "<string>",
        "function_name": "<string>",
        "args": [
          "<any>"
        ]
      }
    ],
    "logs": [
      {
        "data": "<string>",
        "topics": [
          "<string>"
        ],
        "event_name": "<string>",
        "args": [
          "<any>"
        ]
      }
    ]
  }
}

Path Parameters

contract_address
string
required
Example:

"vitalik.eth"

Query Parameters

chain
number[]
deprecated

Use chain_id instead

Example:
[20, 56, 1]
chain_id
number[]

The chain ID(s) to request the data for. You can specify multiple chain IDs, up to a maximum of 55. Use repeated query parameters, e.g., ?chain_id=20&chain_id=56. Optional, because a single chain can as well be specified as a subdomain

Example:
[20, 56, 1]

Body

application/json

Response

200
application/json

Success

The response is of type object.