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

# Token flow

> トークンの作成、mint、transfer、burnの流れ

## Create token

<RequestExample>
  ```bash theme={null}
  curl --location 'https://overlay.fun/tokens' \
    --header 'api-key: ovl_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
    --header 'Content-Type: application/json' \
    --data '{
      "network": "solana",
      "name": "newOVL",
      "symbol": "nOVL",
      "description": "this is test",
      "image": "https://overlay.fun/logo.png",
      "amount": 1000000000,
      "website": "https://overlay.fun",
      "seller_fee": "3"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true,
    "data": {
      "mint_address": "example_mint_address",
      "metadata_uri": "https://example.com/metadata.json",
      "tx": "..."
    },
    "message": "Token created successfully"
  }
  ```
</ResponseExample>

## Mint token

```bash theme={null}
curl --location 'https://overlay.fun/tokens/{mint_address}/mint' \
  --header 'api-key: ovl_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data '{
    "network": "solana",
    "amount": 1000
  }'
```

## Transfer token

```bash theme={null}
curl --location 'https://overlay.fun/tokens/{mint_address}/transfer' \
  --header 'api-key: ovl_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data '{
    "network": "solana",
    "amount": 5000,
    "recipient": "example_recipient_address"
  }'
```

`recipient_address` も利用できます。

## Burn token

```bash theme={null}
curl --location 'https://overlay.fun/tokens/{mint_address}/burn' \
  --header 'api-key: ovl_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data '{
    "network": "solana",
    "amount": 100
  }'
```

## Fetch token

```bash theme={null}
curl --location 'https://overlay.fun/tokens/{mint_address}' \
  --header 'api-key: ovl_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
```

<Card title="Interactive reference" icon="square-terminal" href="/reference/overview">
  MintlifyのAPI Playgroundから、各エンドポイントのパラメータとレスポンスを確認できます。
</Card>
