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

# Referencia de la API del SDK de TypeScript

> Todos los métodos de la API de Solana en el SDK de TypeScript de Helius, organizados por espacio de nombres: DAS API, RPC V2, transacciones, webhooks, WebSockets, staking y compresión ZK.

Referencia completa de métodos para el [SDK de TypeScript de Helius](https://github.com/helius-labs/helius-sdk). Para instalarlo y comenzar a usarlo, consulta la [descripción general del SDK de TypeScript](/docs/es/agents/typescript-sdk).

## RPC estándar de Solana

Todos los métodos RPC estándar de Solana están disponibles directamente en `helius.*` mediante un proxy al cliente Rpc `@solana/kit` subyacente:

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

La propiedad `helius.raw` expone explícitamente el mismo cliente `Rpc`, lo que resulta útil al pasarlo a bibliotecas de terceros que esperan un objeto `Rpc` estándar.

## DAS API (estándar de activos digitales)

Consulta NFT, NFT comprimidos, tokens fungibles y otros activos digitales mediante una interfaz unificada.

```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
```

## Métodos de RPC V2

Métodos RPC mejorados con paginación y filtrado del lado del servidor, además de compatibilidad con cuentas de tokens.

```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
```

## Transacciones

Crea y envía transacciones optimizadas con estimación automática de unidades de cómputo y comisiones de prioridad.

```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)
```

## Transacciones mejoradas

Analiza transacciones sin procesar y conviértelas en formatos etiquetados y legibles.

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

## Webhooks

Crea y administra notificaciones HTTP POST en tiempo real para eventos en cadena.

```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)
```

## WebSockets

Transmite datos de la blockchain en tiempo real mediante conexiones 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

Haz staking de SOL en el validador de Helius y administra cuentas de staking.

```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
```

## API de billeteras

Consulta saldos de billeteras, historiales de transacciones, transferencias e información de identidad mediante endpoints 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
```

## Compresión ZK

Trabaja con cuentas y tokens comprimidos para reducir en un 98 % el costo del almacenamiento en cadena.

```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
```
