> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xenarch.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Link Networks

> Read which networks and stablecoins a pay link takes, as set by its owner, and the list a pay page shows buyers.

```bash theme={null}
curl https://api.xenarch.dev/v1/links/JJjIwDyV4N1CG9g8AHMxfdJ9/networks \
  -H "Authorization: Bearer xm_live_..."
```

```json 200 theme={null}
{
  "link_id": "JJjIwDyV4N1CG9g8AHMxfdJ9",
  "accepted_networks": {
    "ethereum": {"tokens": ["USDC", "USDT"]}
  },
  "networks": [
    {
      "network": "base",
      "name": "Base",
      "chain_id": 8453,
      "native_symbol": "ETH",
      "confirmations": 1,
      "wallet": true,
      "pay_to": "0xYourWalletAddress",
      "tokens": [{"symbol": "USDC", "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "decimals": 6}]
    },
    {
      "network": "ethereum",
      "name": "Ethereum",
      "chain_id": 1,
      "standard": "ERC-20",
      "native_symbol": "ETH",
      "confirmations": 12,
      "wallet": true,
      "pay_to": "0xYourWalletAddress",
      "tokens": [
        {"symbol": "USDC", "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "decimals": 6},
        {"symbol": "USDT", "address": "0xdAC17F958D2ee523a2206206994597C13D831ec7", "decimals": 6}
      ]
    }
  ]
}
```

Returns the link's network setting. The link's owner only: a merchant key or the dashboard's wallet session (see [Authentication](https://docs.xenarch.com/api-reference/authentication.md)).

`accepted_networks` is what you stored with [Set Link Networks](https://docs.xenarch.com/api-reference/links/set-networks.md), or `null` for Base USDC only. `networks` is what the link takes right now, in the order a pay page lists it; buyers see the same list on [Get Link](https://docs.xenarch.com/api-reference/links/get.md).

## Errors

| Status | Meaning |
| - | - |
| `401` | No merchant key or session |
| `404` | No link with this id, or the link isn't yours |


## OpenAPI

````yaml GET /v1/links/{link_id}/networks
openapi: 3.1.0
info:
  title: Xenarch API
  version: 0.1.0
servers:
  - url: https://api.xenarch.dev
security: []
paths:
  /v1/links/{link_id}/networks:
    get:
      tags:
        - pay-links
      summary: Get Link Networks
      description: The networks and stablecoins a pay link takes. Owner only.
      operationId: get_link_networks_v1_links__link_id__networks_get
      parameters:
        - name: link_id
          in: path
          required: true
          schema:
            type: string
            title: Link Id
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PayLinkNetworksResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PayLinkNetworksResponse:
      type: object
      title: PayLinkNetworksResponse
      required:
        - link_id
      properties:
        link_id:
          type: string
        accepted_networks:
          type:
            - object
            - 'null'
          description: >-
            The stored setting, as you sent it after normalising. `null` means
            Base USDC only.
        networks:
          type: array
          items:
            $ref: '#/components/schemas/PayLinkNetwork'
          description: What the link takes now, as a pay page lists it.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PayLinkNetwork:
      type: object
      title: PayLinkNetwork
      description: >-
        One network a pay link takes, in the order a pay page lists them. Base
        USDC comes first.
      properties:
        network:
          type: string
          description: '`base`, `ethereum`, `bnb`, `monad` or `tron`.'
        name:
          type: string
          description: Display name, for example `BNB Chain`.
        label:
          type: string
          description: Display label.
        kind:
          type: string
          description: '`evm` or `tron`.'
        chain_id:
          type:
            - integer
            - 'null'
          description: EVM chain id (8453, 1, 56, 143). `null` on Tron.
        standard:
          type: string
          description: >-
            Token standard shown to buyers, for example `ERC-20`, `BEP-20`,
            `TRC-20`. Empty on Base.
        native_symbol:
          type: string
          description: 'The coin the network fee is paid in: `ETH`, `BNB`, `MON` or `TRX`.'
        confirmations:
          type: integer
          description: Confirmations needed before a payment is booked.
        wallet:
          type: boolean
          description: >-
            Whether a buyer can pay from a connected wallet here. `false` on
            Tron, which takes `manual` payments only.
        explorer_name:
          type: string
          description: Block explorer name, for example `Etherscan`.
        explorer_tx:
          type: string
          description: Explorer URL prefix for a transaction hash.
        pay_to:
          type: string
          description: >-
            The receiving address on this network: the link's wallet on EVM
            networks, the owner's Tron address on Tron.
        tokens:
          type: array
          description: The stablecoins taken here.
          items:
            type: object
            properties:
              symbol:
                type: string
              address:
                type: string
                description: Token contract.
              decimals:
                type: integer
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.