> ## 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.

# TypeScript SDK API リファレンス

> DAS API、RPC V2、トランザクション、拡張トランザクション、Webhook、WebSocket、Staking、Wallet API、ZK Compression、標準 Solana RPC の名前空間ごとに整理された、Helius TypeScript SDK 内のすべての API メソッドの完全なリスト。

[Helius TypeScript SDK](https://github.com/helius-labs/helius-sdk) の完全なメソッドリファレンスです。インストールと開始については、[TypeScript SDK 概要](/ja/agents/typescript-sdk)を参照してください。

## 標準 Solana RPC

すべての標準的な Solana RPC メソッドは、基礎となる `@solana/kit` Rpc クライアントへのプロキシを介して、直接 `helius.*` で利用できます。

```typescript theme={"system"}
const balance = await helius.getBalance(address).send();
const blockhash = await helius.getLatestBlockhash().send();
const slot = await helius.getSlot().send();
```

プロパティ `helius.raw` は同じ `Rpc` クライアントを明示的に公開しており、標準の `Rpc` オブジェクトを期待するサードパーティライブラリに渡す際に便利です。

## DAS API (デジタルアセット標準)

NFT、圧縮 NFT、ファンジブルトークン、その他のデジタルアセットを統一されたインターフェースでクエリします。

```typescript theme={"system"}
helius.getAsset({ id })                                    // Single asset by mint
helius.getAssetBatch({ ids })                              // Multiple assets
helius.getAssetsByOwner({ ownerAddress, page, limit })     // Assets by wallet
helius.getAssetsByAuthority({ authorityAddress })           // Assets by update authority
helius.getAssetsByCreator({ creatorAddress })               // Assets by creator
helius.getAssetsByGroup({ groupKey, groupValue })           // Assets by collection
helius.searchAssets({ ownerAddress, tokenType, ... })       // Flexible search
helius.getAssetProof({ id })                               // Merkle proof (cNFTs)
helius.getAssetProofBatch({ ids })                         // Batch Merkle proofs
helius.getTokenAccounts({ owner })                         // Token accounts
helius.getNftEditions({ id })                              // Print editions
helius.getSignaturesForAsset({ id })                       // Transaction history for asset
```

## RPC V2 メソッド

サーバーサイドのページネーション、フィルタリング、トークンアカウントサポートを備えた拡張 RPC メソッド。

```typescript theme={"system"}
helius.getTransactionsForAddress([address, config])        // Transaction history (paginationToken)
helius.getProgramAccountsV2([programId, config])           // Program accounts (paginationKey)
helius.getTokenAccountsByOwnerV2([owner, filter?, config]) // Token accounts (paginationKey)
helius.getPriorityFeeEstimate({ accountKeys, options })    // Fee estimates
```

## トランザクション

計算ユニットの自動推定と優先手数料による最適化されたトランザクションの構築と送信。

```typescript theme={"system"}
helius.tx.sendSmartTransaction({ instructions, signers })  // Auto-optimized send
helius.tx.createSmartTransaction({ instructions, signers })// Build without sending
helius.tx.sendTransactionWithSender({ ..., region })       // Helius Sender (low latency)
```

## 拡張トランザクション

生のトランザクションを人間が読みやすいラベル付きフォーマットに解析します。

```typescript theme={"system"}
helius.enhanced.getTransactions({ transactions })          // Parse by signatures
helius.enhanced.getTransactionsByAddress({ address })      // Parse by address
```

## Webhook

オンチェーンイベントのリアルタイム HTTP POST 通知を作成および管理します。

```typescript theme={"system"}
helius.webhooks.create({ webhookURL, transactionTypes, accountAddresses })
helius.webhooks.get(webhookID)
helius.webhooks.getAll()
helius.webhooks.update(webhookID, params)
helius.webhooks.delete(webhookID)
```

## WebSocket

WebSocket 接続を介してリアルタイムのブロックチェーンデータをストリーム配信します。

```typescript theme={"system"}
helius.ws.logsNotifications(filter, config)                // Transaction logs
helius.ws.accountNotifications(address, config)            // Account changes
helius.ws.signatureNotifications(signature, config)        // Tx confirmation
helius.ws.slotNotifications(config)                        // Slot updates
helius.ws.programNotifications(programId, config)          // Program account changes
helius.ws.close()                                          // Clean up connections
```

## Staking

Helius バリデーターに SOL をステークし、ステークアカウントを管理します。

```typescript theme={"system"}
helius.stake.createStakeTransaction(owner, amountSol)                          // Stake SOL
helius.stake.createUnstakeTransaction(ownerSigner, stakeAccount)               // Unstake
helius.stake.createWithdrawTransaction(withdrawAuth, stakeAcct, dest, lamports)// Withdraw
helius.stake.getHeliusStakeAccounts(wallet)                // List stake accounts
```

## Wallet API

ウォレット残高、トランザクション履歴、転送、アイデンティティ情報を REST エンドポイント経由でクエリします。

```typescript theme={"system"}
helius.wallet.getBalances({ wallet })                      // Token balances
helius.wallet.getHistory({ wallet })                       // Transaction history
helius.wallet.getTransfers({ wallet })                     // Transfer history
helius.wallet.getIdentity({ wallet })                      // Known identity lookup
helius.wallet.getBatchIdentity({ addresses })              // Batch identity (max 100)
helius.wallet.getFundedBy({ wallet })                      // Funding source
```

## ZK 圧縮

圧縮アカウントとトークンを使用して 98% 安価なオンチェーンストレージを実現します。

```typescript theme={"system"}
helius.zk.getCompressedAccount({ address })                // Single compressed account
helius.zk.getCompressedAccountsByOwner({ owner })          // By owner
helius.zk.getCompressedTokenAccountsByOwner({ owner })     // Compressed tokens
helius.zk.getCompressedAccountProof({ hash })              // Merkle proof
helius.zk.getCompressedBalance({ address })                // Balance
helius.zk.getValidityProof({ hashes })                     // Validity proof
```
