メインコンテンツへスキップ

4 ステップで開始

アカウントを作成し、自動化を有効化、API キーを作成し、最初のリクエストを行います。

ステップ 1: サインイン

app.afkcrypto.com にアクセス。

ステップ 2: 自動化を有効化(ウォレット)

Wallets ページで、あなたのアドレスの Automation をオンにします。これはセッションベースの非カストディ署名で自動ワークフローのトランザクション署名を可能にします。いつでも無効化できます。

ステップ 3: API キーの作成(ウォレット自動化)

ダッシュボードの API Keys でウォレット自動化用の API キーを作成します。
  • ヘッダー: x-api-key: afk_<prefix>_<random>
  • 秘密に保管してください。漏えい時はローテーション
詳細は 認証 を参照してください。

ステップ 4: API を呼び出す

再利用のため環境変数に API キーを設定:
export AFK_API_KEY="afk_abcd_xxx"
curl -s -H "x-api-key: $AFK_API_KEY" \
  "https://api.afkcrypto.com/v1/wallets?chain=ethereum"
{
  "wallets": [
    {
      "address": "0xabc...",
      "chainType": "ethereum",
      "isDefault": true,
      "automationEnabled": true,
      "providerType": "embedded",
      "clientType": "privy"
    }
  ]
}
すべての書き込みエンドポイントで Idempotency-Key: <uuid> を付与します。
curl -s -X POST https://api.afkcrypto.com/v1/send \
  -H "x-api-key: $AFK_API_KEY" -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "chain":"base-sepolia",
    "asset":"erc20",
    "token":"0xToken",
    "to":"0xRecipient",
    "amount":"1000000000000000000"
  }'
{ "id": "tx_...", "status": "SUBMITTED", "hash": "0x...", "explorerUrl": "https://basescan.org/tx/0x...", "chainName": "Base" }
curl -s -X POST https://api.afkcrypto.com/v1/contracts/send \
  -H "x-api-key: $AFK_API_KEY" -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "chain":"base-sepolia",
    "to":"0xContract",
    "data":"0xabcdef...",
    "value":"0"
  }'
curl -s -X POST https://api.afkcrypto.com/v1/send \
  -H "x-api-key: $AFK_API_KEY" -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "chain":"solana-devnet",
    "asset":"spl",
    "token":"MintAddress",
    "to":"RecipientOwnerAddress",
    "amount":"1000000"
  }'
curl -s -H "x-api-key: $AFK_API_KEY" \
  "https://api.afkcrypto.com/v1/tx/tx_cuid_here"
{
  "id":"tx_cuid_here",
  "status":"PENDING",
  "hash": null,
  "explorerUrl": null,
  "chainName":"Base",
  "chainType":"ethereum",
  "chainId":8453,
  "to":"0xrecipient...",
  "value":"1000000000000000",
  "error": null,
  "createdAt":"2025-08-25T08:00:00.000Z",
  "updatedAt":"2025-08-25T08:00:00.000Z"
}

次のステップ

主要エンドポイントを参照:
サポートが必要ですか? hello@afkcrypto.com までメール、または Twitter でご連絡ください。