> For the complete documentation index, see [llms.txt](https://debitllama.gitbook.io/debitllama/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://debitllama.gitbook.io/debitllama/rest-api-v1/api-v1.md).

# /api/v1

Start out here when discovering the API

This is an endpoint available for authenticated users, that will return basic information about the API. Example:

<pre class="language-json"><code class="lang-json"><strong>{
</strong>  _self: { href: "/api/v1", methods: [ "GET" ] },
  _version: "v1",
  _description: "DebitLlama Api v1",
  _links: [
    { href: "/api/v1/accounts", methods: [ "GET" ] },
    { href: "/api/v1/items", methods: [ "GET", "PUT" ] },
    { href: "/api/v1/payment_intents", methods: [ "GET" ] },
    { href: "/api/v1/transactions", methods: [ "GET" ] }
  ],
  artifacts: [
    { name: "ConnectedWallets", href: "/ConnectedWallets.json" },
    { name: "VirtualAccounts", href: "/VirtualAccounts.json" }
  ],
  supported_networks: [
    {
      name: "Arbitrum Sepolia Testnet",
      rpc: "https://sepolia.arbiscan.io",
      chain_id: "0x66eee",
      virtual_accounts_contract: "0x5586938a2fC4489661E868c5800769Fb10847fC5",
      connected_wallets_contract: "0x3Cad43A3038F0E657753C0129ce7Ea4a5801EC90",
      currency: "ETH",
      available_currencies: [
      {name: "ETH",native: true, contract_address: ""},
      {name: "USDC",native: false,contract_address: "0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d"},
      {name: "USDG",native: false,contract_address: "0xFFC95faa3d63Cde504a05B567C600B78C0b41892"}
      ]
    }
  ]
}
</code></pre>

It will return a base response defined in the schema and some extra parameters to help access the Smart Contracts!

#### Artifacts

You can fetch the smart contract artifacts to access the ABI and call functions directly. The artifacts are served by the application as static json files.

#### Supported Networks

The list of currently supported networks is returned by the API with the smart contract addresses that contain the accounts used with DebitLlama. You can query on-chain balances locally if you like using the addresses and the Abis.

You can access the endpoint like this using fetch:

```javascript
await fetch("https://debitllama.com/api/v1", {
    method: "GET",
    headers: {
      "Authorization": `Bearer ${accesstoken}`,
    }
})
```
