β˜‘οΈPrerequisites

Prerequisites for Using the Nansen API

Before integrating with the Nansen API, ensure the following requirements are met:

  • Nansen API Subscription: You need an active subscription to Nansen’s Professional plan that includes API access.

  • API Key: Log in to your Nansen account to obtain your personal API key from the dashboard.

  • HTTPS Client: Be familiar with making HTTPS requests using tools like curl, or libraries like requests in Python, or axios/fetch in Node.js.

  • Development Environment: Set up a suitable environment for writing and executing code to interact with APIs.


Sample Request: Smart Money Inflows Endpoint

HTTPS Request

POST /api/beta/smart-money/inflows HTTP/1.1
Host: api.nansen.ai
apiKey: YOUR_API_KEY
Content-Type: application/json
Accept: */*

{
  "parameters": {
    "smFilter": [
      "180D Smart Trader",
      "Fund",
      "Smart Trader"
    ],
    "chains": [
      "ethereum",
      "solana"
    ],
    "includeStablecoin": true,
    "includeNativeTokens": true,
    "excludeSmFilter": []
  }
}

cURL Example

curl -L \
  --request POST \
  --url 'https://api.nansen.ai/api/beta/smart-money/inflows' \
  --header 'apiKey: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "parameters": {
      "smFilter": [
        "180D Smart Trader",
        "Fund",
        "Smart Trader"
      ],
      "chains": [
        "ethereum",
        "solana"
      ],
      "includeStablecoin": true,
      "includeNativeTokens": true,
      "excludeSmFilter": []
    }
  }'

Additional Notes

  • Always refer to the official API documentation for parameter options and rate limit details.

  • Ensure your API key remains confidential and is not shared in public repositories.

Last updated

Was this helpful?