Naar de inhoud
GET /v1/actions

Recent on-chain actions (swaps/adds/withdraws)

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/maya-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/maya-api/v1/actions" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/maya-api/v1/actions", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/maya-api/v1/actions");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/maya-api/v1/actions",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "count": 20,
        "actions": [
            {
                "in": [
                    {
                        "coins": [
                            {
                                "asset": "BTC~BTC",
                                "amount": 0.00061496
                            }
                        ],
                        "address": "maya1tqjzul33srl289afkpgu7avlyyjhnt5u35n4zv"
                    }
                ],
                "out": [
                    {
                        "coins": [
                            {
                                "asset": "ETH~USDC-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48",
                                "amount": 40.359405
                            }
                        ],
                        "address": "maya1tqjzul33srl289afkpgu7avlyyjhnt5u35n4zv"
                    },
                    {
                        "coins": [
                            {
                                "asset": "ETH~USDC-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48",
                                "amount": 40.359405
                            }
                        ],
                        "address": "maya1tqjzul33srl289afkpgu7avlyyjhnt5u35n4zv"
                    }
                ],
                "type": "swap",
                "pools": [
                    "BTC.BTC",
                    "ETH.USDC-0XA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48"
                ],
                "height": 17029462,
                "status": "success",
                "date_ns": "1781489310511403191"
            },
            {
                "in": [
                    {
                        "coins": [
                            {
                                "asset": "BTC~BTC",
                                "amount": 0.00155994
                            }
                        ],
                        "address": "maya176820wmjp536wtsddxn4y52ghp3w23k747hard"
                    }
                ],
                "out": [
                    {
                        "coins": [
                            {
                                "asset": "ZEC~ZEC",
                                "amount": 0.21720658
                            }
                        ],
                        "address": "maya176820wmjp536wtsddxn4y52ghp3w23k747hard"
                    },
                    {
                        "coins": [
                            {
                                "asset": "ZEC~ZEC",
                                "amount": 0.21720658
                            }
                        ],
                        "address": "maya176820wmjp536wtsddxn4y52ghp3w23k747hard"
                    }
                ],
                "type": "swap",
                "pools": [
                    "BTC.BTC",
                    "ZEC.ZEC"
                ],
                "height": 17029462,
                "status": "success",
        
…