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

# クイックスタート

> 5分以内にAgentWallexを統合 — エージェントウォレットを作成し、最初の支払いを送信します。

## 前提条件

* Node.js 18+ または Python 3.9+
* AgentWallex APIキー（`awx_...`）— [早期アクセスに登録](https://agentwallex.com)
* ブロックチェーントランザクションの基本的な理解

## インストール

<CodeGroup>
  ```bash npm theme={null}
  npm install @agentwallex/sdk
  ```

  ```bash yarn theme={null}
  yarn add @agentwallex/sdk
  ```

  ```bash pnpm theme={null}
  pnpm add @agentwallex/sdk
  ```

  ```bash pip theme={null}
  pip install agentwallex
  ```
</CodeGroup>

## ステップバイステップの統合

<Steps>
  <Step title="クライアントの初期化">
    APIキーを使用してAgentWallexクライアントを作成します。テストには`sandbox`を、メインネットには`production`を使用してください。

    <CodeGroup>
      ```typescript TypeScript theme={null}
      import { AgentWallex } from "@agentwallex/sdk";

      const aw = new AgentWallex({
        apiKey: process.env.AGENTWALLEX_API_KEY!,
        environment: "sandbox", // use "production" for mainnet
      });
      ```

      ```python Python theme={null}
      from agentwallex import AgentWallex

      aw = AgentWallex(
          api_key=os.environ["AGENTWALLEX_API_KEY"],
          environment="sandbox",  # use "production" for mainnet
      )
      ```
    </CodeGroup>
  </Step>

  <Step title="エージェントウォレットの作成">
    各エージェントは、設定可能なポリシーを持つ独自のMPCセキュアなウォレットを取得します。

    <CodeGroup>
      ```typescript TypeScript theme={null}
      const agent = await aw.agents.create({
        name: "my-trading-agent",
        chain: "eip155:84532",
        policies: {
          maxTransactionAmount: "100",   // USDC
          dailyLimit: "1000",
          allowedAddresses: ["0x..."],
        },
      });

      console.log(`Agent ID: ${agent.id}`);
      console.log(`Wallet: ${agent.wallet.address}`);
      ```

      ```python Python theme={null}
      agent = await aw.agents.create(
          name="my-trading-agent",
          chain="eip155:84532",
          policies={
              "max_transaction_amount": "100",
              "daily_limit": "1000",
              "allowed_addresses": ["0x..."],
          },
      )

      print(f"Agent ID: {agent.id}")
      print(f"Wallet: {agent.wallet.address}")
      ```
    </CodeGroup>
  </Step>

  <Step title="ウォレットへの入金">
    エージェントのウォレットアドレスにテストネットトークンを送信します。Base Sepoliaでは、[フォーセット](https://www.coinbase.com/faucets/base-ethereum-goerli-faucet)を使用してテストUSDCを取得できます。

    <Note>
      サンドボックスモードでは、エージェントウォレットはテストネット上にあります。実際の資金のリスクはありません。
    </Note>
  </Step>

  <Step title="支払いの送信">
    エージェントを通じてオンチェーン決済を実行します。

    <CodeGroup>
      ```typescript TypeScript theme={null}
      const tx = await aw.payments.send({
        agentId: agent.id,
        to: "0xRecipientAddress",
        amount: "10.00",
        token: "USDC",
      });

      console.log(`Transaction hash: ${tx.hash}`);
      console.log(`Status: ${tx.status}`); // "confirmed"
      ```

      ```python Python theme={null}
      tx = await aw.payments.send(
          agent_id=agent.id,
          to="0xRecipientAddress",
          amount="10.00",
          token="USDC",
      )

      print(f"Transaction hash: {tx.hash}")
      print(f"Status: {tx.status}")  # "confirmed"
      ```
    </CodeGroup>
  </Step>
</Steps>

## 内部で何が起こるか

1. **ポリシーチェック** — ポリシーエンジンがエージェントのルール（支出制限、アドレスホワイトリスト、速度制御）に対してトランザクションを検証します。
2. **MPC署名** — トランザクションは2-of-3しきい値MPCを使用して署名されます。単一の当事者が完全な鍵を保持することはありません。
3. **ブロードキャスト** — 署名されたトランザクションがネットワークに送信されます。
4. **確認** — AgentWallexがトランザクションを監視・確認し、Webhookイベントを配信します。

## 次のステップ

<CardGroup cols={2}>
  <Card title="TypeScript SDK" icon="js" href="/ja/sdks/typescript">
    すべてのメソッドと型を含む完全なSDKリファレンス。
  </Card>

  <Card title="REST API" icon="code" href="/ja/api-reference/overview">
    カスタム統合用のHTTPエンドポイント。
  </Card>

  <Card title="x402マイクロペイメント" icon="credit-card" href="/ja/features/x402-micropayments">
    エージェントのAPI呼び出しごとの支払いを有効にします。
  </Card>

  <Card title="ポリシーエンジン" icon="shield-check" href="/ja/features/policy-engine">
    支出制御とセキュリティルールを設定します。
  </Card>
</CardGroup>
