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>"
]
}
]
}
}
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>"
]
}
]
}
}
Success
The response is of type object
.