Magna API Documentation
  • Introduction
  • Authentication
  • Allocations
    • Allocation List
    • Allocation by ID
    • Claim Allocation Tokens
    • Schedule
  • Transactions
    • Transaction Signing Parameters
    • Indexing Transaction
  • Tokens
    • Tokens List
    • Token Summary
  • Nodes
  • Use Cases
  • Security Considerations
  • Webhooks
    • Getting Started
    • Register Webhooks
    • Security
    • Payload Schemas
    • FAQs
  • Claim Portal API
    • Allocations
    • Parameters
  • Protocol Hooks
Powered by GitBook
On this page

Was this helpful?

  1. Tokens

Tokens List

Retrieve a list of all token objects for the project containing details such as token ID, address, symbol, total supply, decimals, chain, and any additional metadata.

Example request:

curl -X GET <https://app.magna.so/api/external/v1/tokens> \\
-H 'Content-Type: application/json' \\
-H 'x-magna-api-token: magna_project_api_token'

magna_project_api_token (required) - replace with your actual Magna API token

Response example:

{
  "isProcessed": true,
  "result": {
    "items": [
      {
        "id": "d94ac97e-504a-4e26-b75c-03afae134849",
        "address": "0xc1bf91946E8CaF19cad76c7D1A00c6081b85AC98",
        "symbol": "MAG",
        "totalSupply": "1000000",
        "decimals": 18,
        "chain": "Ethereum Sepolia",
        "createdAt": "2024-02-16T17:24:20.000Z",
        "updatedAt": "2024-02-16T17:48:51.000Z"
      }
    ],
    "total": 1
  }
}
PreviousTokensNextToken Summary

Last updated 11 months ago

Was this helpful?