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

# WaaS API リファレンス

> Helius wallet-kit SDK 用の useHeliusWallet() フックのインターフェースとパッケージインポート

[`helius-wallet-kit`](https://www.npmjs.com/package/helius-wallet-kit) SDK が公開しているすべての内容。

## インポート

```ts theme={"system"}
// Provider, hook, and types
import { HeliusWalletProvider, useHeliusWallet } from "helius-wallet-kit";

// Next.js route handler
import { createHeliusRouteHandler } from "helius-wallet-kit/next";

// Styles
import "helius-wallet-kit/ui/styles.css";
```

## `useHeliusWallet()`

| プロパティ                               | タイプ                                                      | 説明                                                           |
| ----------------------------------- | -------------------------------------------------------- | ------------------------------------------------------------ |
| `address`                           | `string \| null`                                         | 接続されたウォレットの Solana アドレス。                                     |
| `status`                            | `"loading" \| "unauthenticated" \| "authenticated"`      | 認証状態。                                                        |
| `user`                              | `object \| null`                                         | 認証済みの場合は `{ userId, username, email?, subOrgId, walletId }`。 |
| `login()`                           | `() => Promise<void>`                                    | ウォレットモーダルを開いてサインイン。                                          |
| `logout()`                          | `() => Promise<void>`                                    | ユーザーをサインアウト。                                                 |
| `signMessage(message)`              | `(string) => Promise<string>`                            | UTF-8 メッセージにサインして署名を返します。                                    |
| `signTransaction(tx)`               | `(Uint8Array \| Buffer) => Promise<Buffer>`              | シリアライズされたトランザクションにサインしますが、送信しません。                            |
| `signAndSendTransaction(tx)`        | `(Uint8Array \| Buffer) => Promise<string>`              | シリアライズされたトランザクションにサインして送信し、署名を返します。                          |
| `exportWallet()`                    | `() => Promise<void>`                                    | 暗号化されたフローを開いてユーザーのウォレットをエクスポートします。                           |
| `getTransactions(options?)`         | `({ limit?: number }) => Promise<EnhancedTransaction[]>` | パースされたトランザクション履歴。ルートハンドラーが必要です。                              |
| `getPriorityFee(keys, level?)`      | `(string[], PriorityLevel?) => Promise<number>`          | プライオリティ手数料の推定値（マイクロラマポート）；`level` はデフォルトで `Medium`。          |
| `getPriorityFeeLevels(accountKeys)` | `(string[]) => Promise<PriorityFeeLevels>`               | 各レベルのプライオリティ手数料の推定値。                                         |
| `connection`                        | `Connection`                                             | Helius RPC での `@solana/web3.js` 接続。                          |
| `rpcUrl`                            | `string`                                                 | アクティブな RPC URL（セキュア RPC またはルートハンドラープロキシ）。                    |
| `cluster`                           | `"mainnet-beta" \| "devnet"`                             | アクティブなクラスター。                                                 |
| `setCluster(cluster)`               | `(cluster) => void`                                      | アクティブなクラスターを切り替えます。                                          |
| `apiKey`                            | `string \| null`                                         | 解決済みの Helius API キー。                                         |
| `projectId`                         | `string \| null`                                         | 起動時に API キーから解決されたプロジェクト ID。                                 |
| `planTier`                          | `HeliusPlan \| null`                                     | アカウントのプラン階層が解決された場合。                                         |

## 次のステップ

<CardGroup cols={2}>
  <Card title="Privy からの移行" icon="arrow-right-arrow-left" href="/ja/waas/migrating-from-privy">
    既存の Privy ウォレットを Helius WaaS に移動
  </Card>

  <Card title="価格" icon="credit-card" href="/ja/waas/overview#pricing">
    1 署名あたり 200 クレジット (\$0.001)
  </Card>
</CardGroup>
