getTokenAccountsByOwnerV2 là phiên bản nâng cao của getTokenAccountsByOwner, hỗ trợ phân trang bằng con trỏ và cập nhật changedSinceSlot cho các danh mục token Solana lớn.
getTokenAccountsByOwnerV2 là phiên bản nâng cao của phương thức getTokenAccountsByOwner tiêu chuẩn, được thiết kế riêng để truy vấn hiệu quả các danh mục token và xử lý các ví nắm giữ lượng lớn token. Phương thức này bổ sung tính năng phân trang dựa trên con trỏ và khả năng cập nhật tăng dần.
Các tính năng mới trong V2:
Phân trang dựa trên con trỏ: Cấu hình giới hạn từ 1 đến 10.000 tài khoản token cho mỗi yêu cầu
Cập nhật tăng dần: Sử dụng changedSinceSlot để chỉ tìm nạp các tài khoản token mới được sửa đổi gần đây
Khả năng mở rộng danh mục: Xử lý hiệu quả các ví có hàng nghìn tài khoản token
Khả năng tương thích ngược: Hỗ trợ tất cả tham số và bộ lọc hiện có của getTokenAccountsByOwner
withContext tùy chọn: true thêm slot và apiVersion vào result.context; nếu bỏ qua hoặc đặt thành false thì chúng sẽ không được đưa vào
Yêu cầu về bộ lọc: Bạn phải cung cấp mint (token cụ thể) hoặc programId (chương trình SPL Token hoặc Token-2022) trong truy vấn. Không hỗ trợ truy vấn tất cả loại token của một chủ sở hữu mà không có bộ lọc.
Giá trị Boolean trong đối tượng cấu hình (params[2]). Chỉ cấu trúc của result thay đổi, còn bộ lọc, giới hạn và cách phân trang không thay đổi. Nếu bỏ qua hoặc đặt thành false: result.value là mảng tài khoản token. Nếu đặt thành true: result.context cùng với result.value dưới dạng đối tượng (accounts, paginationKey). Nếu xử lý cả hai trường hợp, hãy phân nhánh theo Array.isArray(result.value).
Hành vi phân trang quan trọng: Việc kết thúc phân trang chỉ được xác định khi không có tài khoản token nào được trả về. API có thể trả về ít tài khoản hơn giới hạn do áp dụng bộ lọc — luôn tiếp tục phân trang cho đến khi paginationKey là null.
Hỗ trợ Token-2022: Sử dụng TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb làm programId để truy vấn các tài khoản Token-2022 có phần mở rộng như phí chuyển, token sinh lãi và nhiều tính năng khác.
Khi là true, trả về result.context (siêu dữ liệu ảnh chụp nhanh: slot, apiVersion) và lồng
accounts cùng paginationKey bên trong result.value dưới dạng đối tượng. Khi là false
hoặc bị bỏ qua, result.value là mảng tài khoản token của trang này, với paginationKey
nằm trong result. Áp dụng cùng bộ lọc và giới hạn.
Các tài khoản token được phân trang khi withContext là false hoặc bị bỏ qua. Khớp với cấu trúc quen thuộc, trong đó danh sách tài khoản là một mảng tại result.value (không được lồng trong accounts).
{
"jsonrpc": "2.0",
"error": {
"code": -32002,
"message": "Dịch vụ không khả dụng"
},
"id": "1"
}
{
"jsonrpc": "2.0",
"error": {
"code": -32003,
"message": "Cổng kết nối hết thời gian chờ"
},
"id": "1"
}
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Helius Docs","colors":{"primary":"#E84125","light":"#E84125","dark":"#E84125"},"logo":{"light":"https://mintcdn.com/helius/1-9q8-PZtWH0Z9Lt/logo/light.svg?fit=max\u0026auto=format\u0026n=1-9q8-PZtWH0Z9Lt\u0026q=85\u0026s=170d27f36fb94074ff24cfb5e0ad9816","dark":"https://mintcdn.com/helius/1-9q8-PZtWH0Z9Lt/logo/dark.svg?fit=max\u0026auto=format\u0026n=1-9q8-PZtWH0Z9Lt\u0026q=85\u0026s=a28519235a2fa6053288c3b9c0091124","href":"https://www.helius.dev"},"favicon":"https://mintcdn.com/helius/rDY9bg93WpWmK5qF/favicon.svg?fit=max\u0026auto=format\u0026n=rDY9bg93WpWmK5qF\u0026q=85\u0026s=2efaf0d2b47cac3f8fd18b089e46cb01","appearance":{"default":"dark"},"navbar":{"links":[{"href":"/support","label":"Support"}],"primary":{"type":"button","label":"Get started","href":"https://dashboard.helius.dev"}},"footer":{"socials":{"x":"https://x.com/helius","telegram":"https://t.me/helius_help","discord":"https://discord.com/invite/6GXdee3gBj","linkedin":"https://www.linkedin.com/company/heliusapi"},"links":[{"header":"Product","items":[{"label":"Preconfirmations (Preconfs)","href":"https://www.helius.dev/preconfirmations"},{"label":"Shred Delivery","href":"https://www.helius.dev/shreds"},{"label":"Preprocessed Transactions","href":"https://www.helius.dev/preprocessed-transactions"},{"label":"Sender","href":"https://www.helius.dev/sender"},{"label":"Transaction Rebates","href":"https://www.helius.dev/rebates"},{"label":"LaserStream","href":"https://www.helius.dev/laserstream"},{"label":"Webhooks \u0026 Websockets","href":"https://www.helius.dev/solana-webhooks-websockets"},{"label":"Parsed Events \u0026 Streams","href":"https://www.helius.dev/parsed-data"},{"label":"Token APIs","href":"https://www.helius.dev/solana-token-apis"},{"label":"Wallet API (Beta)","href":"https://www.helius.dev/wallet-api"},{"label":"Historical Data","href":"https://www.helius.dev/historical-data"},{"label":"RPC Nodes","href":"https://www.helius.dev/solana-rpc-nodes"},{"label":"Helius Validator","href":"https://www.helius.dev/validator"},{"label":"Validator-as-a-Service","href":"https://www.helius.dev/validator-as-a-service"},{"label":"Validator Monetization","href":"https://www.helius.dev/validator-monetization"}]},{"header":"Solutions","items":[{"label":"Traders \u0026 MMs","href":"https://www.helius.dev/use-case/trading"},{"label":"Exchanges","href":"https://www.helius.dev/use-case/exchanges"},{"label":"Wallets","href":"https://www.helius.dev/use-case/wallets"},{"label":"Fintech","href":"https://www.helius.dev/use-case/fintech"},{"label":"DeFi","href":"https://www.helius.dev/use-case/defi"},{"label":"Privacy","href":"https://www.helius.dev/privacy"}]},{"header":"Resources","items":[{"label":"Agents","href":"https://www.helius.dev/agents"},{"label":"Orb","href":"https://orbmarkets.io"},{"label":"Blog","href":"https://www.helius.dev/blog"},{"label":"Docs","href":"https://www.helius.dev/docs"},{"label":"Status","href":"https://helius.statuspage.io/"},{"label":"Pricing","href":"https://www.helius.dev/pricing"},{"label":"Sign Up","href":"https://dashboard.helius.dev/signup"},{"label":"RPC Benchmarks","href":"https://www.helius.dev/benchmarks"},{"label":"Stake with Us","href":"https://www.helius.dev/stake"},{"label":"Staking Calculator","href":"https://www.helius.dev/staking/calculator"},{"label":"Startup Launchpad","href":"https://www.helius.dev/startup-launchpad"},{"label":"EVM vs. SVM","href":"https://www.helius.dev/solana-vs-ethereum"},{"label":"Solana Roadmap","href":"https://www.solanaroadmap.com/"}]},{"header":"Company","items":[{"label":"About","href":"https://www.helius.dev/about"},{"label":"Careers","href":"https://www.helius.dev/careers"},{"label":"Contact Sales","href":"https://www.helius.dev/contact"},{"label":"Support","href":"https://www.helius.dev/docs/support"},{"label":"Media","href":"https://www.helius.dev/media"},{"label":"Brand","href":"https://www.helius.dev/brand"},{"label":"Security","href":"https://security.helius.dev/"},{"label":"Privacy Policy","href":"https://www.helius.dev/privacy-policy"},{"label":"Terms \u0026 Conditions","href":"https://www.helius.dev/terms"},{"label":"Privacy Preferences","href":"https://www.helius.dev/privacy-policy"}]}]},"seo":{"organization":{"id":"https://www.helius.dev/#organization","name":"Helius","url":"https://www.helius.dev","logo":"https://www.helius.dev/Helius-Brandkit/Helius/PNG/Helius-Horizontal-Logo.png","sameAs":["https://github.com/helius-labs","https://discord.com/invite/6GXdee3gBj","https://x.com/helius","https://www.linkedin.com/company/heliusapi"]}},"fonts":{"heading":{"family":"fontLausanne","weight":450,"source":"https://jiz6tlwg28uaztou.public.blob.vercel-storage.com/docs/lausanne-450-Xv6JlhB8OudFw8Xb2zwoQodc86f35H.woff2","format":"woff2"},"body":{"family":"Geist"}},"styling":{"codeblocks":"system","latex":true},"integrations":{"posthog":{"apiKey":"phc_H66gRNy1uok5uPmsul2kpbRynt6h9L74f5BlPJ4RMqE","apiHost":"https://www.helius.dev/relay-RMqE"}},"banner":{"content":"NEW: Try the Parsed Events Scan API to find any transaction across any address's history. [Learn more](/docs/api-reference/parsed-events/scan)","dismissible":true},"errors":{"404":{"redirect":false}},"contextual":{"options":["copy","view","chatgpt","claude","cursor","perplexity","mcp"],"display":"header"},"thumbnails":{"fonts":{"family":"Noto Sans CJK SC","source":"fonts/noto-sans-cjk-sc/noto-sans-cjk-sc-docs.woff","format":"woff"}},"navigation":{"global":{"anchors":[]},"languages":[{"language":"en","href":""},{"language":"zh","banner":{"content":"新功能:试用 Parsed Events Scan API,在任意地址的历史记录中查找任何交易。[了解更多](/docs/zh/api-reference/parsed-events/scan)","dismissible":true},"href":"zh"},{"language":"ja","banner":{"content":"新機能:Parsed Events Scan API を使用して、任意のアドレスの履歴全体からあらゆるトランザクションを検索できます。[詳細を見る](/docs/ja/api-reference/parsed-events/scan)","dismissible":true},"href":"ja"},{"language":"pt-BR","banner":{"content":"NOVO: Experimente a API de varredura de eventos analisados para encontrar qualquer transação no histórico de qualquer endereço. [Saiba mais](/docs/pt-BR/api-reference/parsed-events/scan)","dismissible":true},"href":"pt-BR"},{"language":"ko","banner":{"content":"신규: Parsed Events Scan API를 사용하여 모든 주소의 기록에서 원하는 트랜잭션을 찾아보세요. [자세히 알아보기](/docs/ko/api-reference/parsed-events/scan)","dismissible":true},"href":"ko"},{"language":"de","banner":{"content":"NEU: Probiere die Parsed Events Scan API aus, um Transaktionen im Verlauf einer beliebigen Adresse zu finden. [Mehr erfahren](/docs/de/api-reference/parsed-events/scan)","dismissible":true},"href":"de"},{"language":"fr","banner":{"content":"NOUVEAU : essayez l’API Parsed Events Scan pour trouver n’importe quelle transaction dans l’historique de n’importe quelle adresse. [En savoir plus](/docs/fr/api-reference/parsed-events/scan)","dismissible":true},"href":"fr"},{"language":"es","banner":{"content":"NUEVO: Prueba la API Parsed Events Scan para encontrar cualquier transacción en el historial de cualquier dirección. [Más información](/docs/es/api-reference/parsed-events/scan)","dismissible":true},"href":"es"},{"language":"id","banner":{"content":"BARU: Coba Parsed Events Scan API untuk menemukan transaksi apa pun di seluruh riwayat alamat mana pun. [Pelajari lebih lanjut](/docs/id/api-reference/parsed-events/scan)","dismissible":true},"href":"id"},{"language":"vi","banner":{"content":"MỚI: Hãy thử Parsed Events Scan API để tìm bất kỳ giao dịch nào trong toàn bộ lịch sử của bất kỳ địa chỉ nào. [Tìm hiểu thêm](/docs/vi/api-reference/parsed-events/scan)","dismissible":true},"href":"vi"},{"language":"ru","banner":{"content":"НОВОЕ: попробуйте Parsed Events Scan API, чтобы найти любую транзакцию во всей истории любого адреса. [Подробнее](/docs/ru/api-reference/parsed-events/scan)","dismissible":true},"href":"ru"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"helius","hasAudioNarration":false,"actualSubdomain":"helius","customDomains":["www.helius.dev"],"gitSource":{"type":"github","owner":"helius-labs","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"issues":false,"edits":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"DISABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af20b3f6347df5a7ec1402e","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"en","tag":"API Reference","count":176},{"language":"de","tag":"API-Referenz","count":176},{"language":"es","tag":"Referencia de la API","count":176},{"language":"fr","tag":"Référence de l’API","count":176},{"language":"id","tag":"Referensi API","count":176},{"language":"ja","tag":"APIリファレンス","count":176},{"language":"ko","tag":"API 레퍼런스","count":176},{"language":"pt-BR","tag":"Referência da API","count":176},{"language":"ru","tag":"Справочник API","count":176},{"language":"vi","tag":"Tài liệu tham chiếu API","count":176},{"language":"zh","tag":"API 参考","count":176},{"language":"en","tag":"Data APIs \u0026 RPCs","count":153},{"language":"de","tag":"Daten-APIs und RPCs","count":153},{"language":"es","tag":"API de datos y RPC","count":153},{"language":"fr","tag":"API de données et RPC","count":153},{"language":"id","tag":"API Data \u0026 RPC","count":153},{"language":"ja","tag":"データAPIとRPC","count":153},{"language":"ko","tag":"데이터 API 및 RPC","count":153},{"language":"pt-BR","tag":"APIs de dados e RPCs","count":153},{"language":"ru","tag":"API данных и RPC","count":153},{"language":"vi","tag":"API dữ liệu \u0026 RPC","count":153},{"language":"zh","tag":"数据 API 与 RPC","count":153},{"language":"en","tag":"Documentation","count":115},{"language":"de","tag":"Dokumentation","count":115},{"language":"es","tag":"Documentación","count":115},{"language":"fr","tag":"Documentation","count":115},{"language":"id","tag":"Dokumentasi","count":115},{"language":"ja","tag":"ドキュメント","count":115},{"language":"ko","tag":"문서","count":115},{"language":"pt-BR","tag":"Documentação","count":115},{"language":"ru","tag":"Документация","count":115},{"language":"vi","tag":"Tài liệu","count":115},{"language":"zh","tag":"文档","count":115},{"language":"en","tag":"Guides","count":96},{"language":"de","tag":"Anleitungen","count":96},{"language":"es","tag":"Guías","count":96},{"language":"fr","tag":"Guides","count":96},{"language":"id","tag":"Panduan","count":96},{"language":"ja","tag":"ガイド","count":96},{"language":"ko","tag":"가이드","count":96},{"language":"pt-BR","tag":"Guias","count":96},{"language":"ru","tag":"Руководства","count":96},{"language":"vi","tag":"Hướng dẫn","count":96},{"language":"zh","tag":"指南","count":96},{"language":"en","tag":"Data Streaming \u0026 Event Listening","count":63},{"language":"de","tag":"Daten-Streaming und Ereignisüberwachung","count":63},{"language":"es","tag":"Transmisión de datos y escucha de eventos","count":63},{"language":"fr","tag":"Streaming de données et écoute d’événements","count":63},{"language":"id","tag":"Streaming Data \u0026 Pemantauan Peristiwa","count":63},{"language":"ja","tag":"データストリーミングとイベントリスニング","count":63},{"language":"ko","tag":"데이터 스트리밍 및 이벤트 수신","count":63},{"language":"pt-BR","tag":"Streaming de dados e escuta de eventos","count":63},{"language":"ru","tag":"Потоковая передача данных и отслеживание событий","count":63},{"language":"vi","tag":"Truyền dữ liệu \u0026 lắng nghe sự kiện","count":63},{"language":"zh","tag":"数据流与事件监听","count":63},{"language":"en","tag":"Solana RPC","count":57},{"language":"de","tag":"Solana RPC","count":57},{"language":"es","tag":"RPC de Solana","count":57},{"language":"fr","tag":"RPC Solana","count":57},{"language":"id","tag":"RPC Solana","count":57},{"language":"ja","tag":"Solana RPC","count":57},{"language":"ko","tag":"Solana RPC","count":57},{"language":"pt-BR","tag":"RPC da Solana","count":57},{"language":"ru","tag":"RPC Solana","count":57},{"language":"vi","tag":"Solana RPC","count":57},{"language":"zh","tag":"Solana RPC","count":57},{"language":"en","tag":"RPC Method Guides","count":52},{"language":"de","tag":"Anleitungen zu RPC-Methoden","count":52},{"language":"es","tag":"Guías de métodos RPC","count":52},{"language":"fr","tag":"Guides des méthodes RPC","count":52},{"language":"id","tag":"Panduan Metode RPC","count":52},{"language":"ja","tag":"RPCメソッドガイド","count":52},{"language":"ko","tag":"RPC 메서드 가이드","count":52},{"language":"pt-BR","tag":"Guias de métodos RPC","count":52},{"language":"ru","tag":"Руководства по методам RPC","count":52},{"language":"vi","tag":"Hướng dẫn phương thức RPC","count":52},{"language":"zh","tag":"RPC 方法指南","count":52},{"language":"zh","tag":"交易","count":31},{"language":"en","tag":"ZK Compression","count":26},{"language":"de","tag":"ZK-Komprimierung","count":26},{"language":"es","tag":"Compresión ZK","count":26},{"language":"fr","tag":"Compression ZK","count":26},{"language":"id","tag":"Kompresi ZK","count":26},{"language":"ja","tag":"ZK圧縮","count":26},{"language":"ko","tag":"ZK 압축","count":26},{"language":"pt-BR","tag":"Compressão ZK","count":26},{"language":"ru","tag":"ZK-сжатие","count":26},{"language":"vi","tag":"Nén ZK","count":26},{"language":"zh","tag":"ZK 压缩","count":26},{"language":"en","tag":"LaserStream WebSocket","count":24},{"language":"de","tag":"LaserStream WebSocket","count":24},{"language":"es","tag":"LaserStream WebSocket","count":24},{"language":"fr","tag":"LaserStream WebSocket","count":24},{"language":"id","tag":"LaserStream WebSocket","count":24},{"language":"ja","tag":"LaserStream WebSocket","count":24},{"language":"ko","tag":"LaserStream WebSocket","count":24},{"language":"pt-BR","tag":"LaserStream WebSocket","count":24},{"language":"ru","tag":"LaserStream WebSocket","count":24},{"language":"vi","tag":"LaserStream WebSocket","count":24},{"language":"zh","tag":"LaserStream WebSocket","count":24},{"language":"en","tag":"Agents","count":20},{"language":"de","tag":"Agenten","count":20},{"language":"es","tag":"Agentes","count":20},{"language":"fr","tag":"Agents","count":20},{"language":"id","tag":"Agen","count":20},{"language":"ja","tag":"エージェント","count":20},{"language":"ko","tag":"에이전트","count":20},{"language":"pt-BR","tag":"Agentes","count":20},{"language":"ru","tag":"Агенты","count":20},{"language":"vi","tag":"Tác nhân","count":20}]},"assistantConfig":{"enableAskAiButton":true,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@helius.xyz"}},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":".dark #topbar-cta-button a,.dark #topbar-cta-button a span{color:#fff!important}h1,h2,h3,h4,h5,h6{font-weight:450!important;font-style:normal!important}#footer a{max-width:none!important}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:rgb(var(--primary-light) / 0.8)}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)):hover{border-color:rgb(var(--primary-light) / 1)}#banner{background-color:#0F0F0F}@media (min-width: 1024px){nav#sidebar-content{width:18rem!important}#content-container{margin-left:4rem!important}}.sidebar-group-header{font-size:0.875rem!important}.dark .sidebar-group-header{color:#fff!important}@media (min-width: 1024px){[class*=\"lg:ml-[max(0px,calc(50vw-348px-14rem)\"]{margin-left:max(0px, min(calc(50vw - 348px - 14rem), calc(100% - 696px)))!important}}@media (max-width: 1023px){.chat-assistant-floating-input{display:none!important}}.privacy-embed-slot{--embed-sk-base: #e4e2de;--embed-sk-shine: rgba(255, 255, 255, 0.55);--embed-fade: 0.45s ease;position:relative;height:15rem;overflow:hidden}.dark .privacy-embed-slot{--embed-sk-base: #2a2a2e;--embed-sk-shine: rgba(255, 255, 255, 0.08)}.privacy-embed-fallback{position:absolute;inset:0;z-index:1;opacity:1;pointer-events:none;transition:opacity var(--embed-fade)}.privacy-embed-skeleton{position:relative;overflow:hidden;box-sizing:border-box;display:flex;flex-direction:column;gap:10px;width:100%;height:100%;padding:18px 20px;border:0;background:transparent}.privacy-embed-skeleton::after{content:\"\";position:absolute;inset:0;background:linear-gradient(90deg, transparent, var(--embed-sk-shine), transparent);transform:translateX(-100%);animation:privacy-embed-sweep 1.4s ease-in-out infinite;pointer-events:none}.privacy-embed-bone{display:block;flex:none;border-radius:6px;background:var(--embed-sk-base)}.privacy-embed-bone-lg{width:72%;height:12px}.privacy-embed-bone-md{width:54%;height:12px}.privacy-embed-bone-sm{width:38%;height:12px}.privacy-embed-bone-block{width:100%;flex:1 1 auto;min-height:72px;margin-top:6px;border-radius:10px}@keyframes privacy-embed-sweep{to{transform:translateX(100%)}}.privacy-embed-slot [data-as=\"iframe\"],.privacy-embed-slot iframe,.privacy-embed-slot .privacy-embed{position:absolute;inset:0;width:100%!important;height:100%!important;opacity:0;overflow:hidden;pointer-events:none;border:0!important;box-shadow:none!important;outline:none!important;aspect-ratio:auto!important;background:transparent!important;transition:opacity var(--embed-fade)}.privacy-embed-static{display:none;position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:contain}.privacy-embed-slot.is-failed .privacy-embed-skeleton{display:none}.privacy-embed-slot.is-failed .privacy-embed-static{display:block}.privacy-embed-slot.is-live .privacy-embed-fallback,.privacy-embed-slot.is-live .privacy-embed-static{opacity:0}.privacy-embed-slot.is-live [data-as=\"iframe\"],.privacy-embed-slot.is-live iframe,.privacy-embed-slot.is-live .privacy-embed{opacity:1;pointer-events:auto}@media (max-width: 720px){.privacy-embed-slot{height:22rem}}@media (prefers-reduced-motion: reduce){.privacy-embed-skeleton::after{animation:none}.privacy-embed-fallback,.privacy-embed-slot [data-as=\"iframe\"],.privacy-embed-slot iframe,.privacy-embed-slot .privacy-embed{transition:none}}.dark .privacy-embed{color-scheme:dark!important}.light .privacy-embed{color-scheme:light!important}"},{"filePath":"styles.css","content":"@container navbar (width >= 1500px) and (width \u003c 1800px){#navbar #search-bar-entry,#navbar button[aria-label=\"Toggle assistant panel\"]{padding:0!important;width:2.25rem!important;justify-content:center!important}#navbar #search-bar-entry>div>div,#navbar #search-bar-entry>span,#navbar button[aria-label=\"Toggle assistant panel\"]>span{display:none!important}}"}],"page":{"pagePath":"vi/api-reference/rpc/http/gettokenaccountsbyownerv2","slug":"/vi/api-reference/rpc/http/gettokenaccountsbyownerv2","pageMetadata":{"title":"getTokenAccountsByOwnerV2","og:title":"Phương thức RPC Solana getTokenAccountsByOwnerV2","sidebarTitle":"getTokenAccountsByOwnerV2","description":"getTokenAccountsByOwnerV2 là phiên bản nâng cao của getTokenAccountsByOwner, hỗ trợ phân trang bằng con trỏ và cập nhật changedSinceSlot cho các danh mục token Solana lớn.","og:description":"Truy vấn tài khoản token nâng cao với tính năng phân trang bằng con trỏ và cập nhật tăng dần cho các token SPL trong ví Solana","openapi":"vi/openapi/rpc-http/getTokenAccountsByOwnerV2.yaml POST /","href":"/vi/api-reference/rpc/http/gettokenaccountsbyownerv2"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"getTokenAccountsByOwnerV2 là phiên bản nâng cao của getTokenAccountsByOwner, hỗ trợ phân trang bằng con trỏ và cập nhật changedSinceSlot cho các danh mục token Solana lớn.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Card,CardGroup,CodeBlock,Heading,Info,ParamField,Tip,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`tổng-quan`,children:`Tổng quan`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`getTokenAccountsByOwnerV2`}),` là phiên bản nâng cao của phương thức `,_jsx(_components.code,{children:`getTokenAccountsByOwner`}),` tiêu chuẩn, được thiết kế riêng để truy vấn hiệu quả các danh mục token và xử lý các ví nắm giữ lượng lớn token. Phương thức này bổ sung tính năng phân trang dựa trên con trỏ và khả năng cập nhật tăng dần.`]}),`\n`,_jsxs(Info,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Các tính năng mới trong V2:`})}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Phân trang dựa trên con trỏ`}),`: Cấu hình giới hạn từ 1 đến 10.000 tài khoản token cho mỗi yêu cầu`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Cập nhật tăng dần`}),`: Sử dụng `,_jsx(_components.code,{children:`changedSinceSlot`}),` để chỉ tìm nạp các tài khoản token mới được sửa đổi gần đây`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Khả năng mở rộng danh mục`}),`: Xử lý hiệu quả các ví có hàng nghìn tài khoản token`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Khả năng tương thích ngược`}),`: Hỗ trợ tất cả tham số và bộ lọc hiện có của `,_jsx(_components.code,{children:`getTokenAccountsByOwner`})]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.code,{children:`withContext`}),` tùy chọn`]}),`: `,_jsx(_components.code,{children:`true`}),` thêm `,_jsx(_components.code,{children:`slot`}),` và `,_jsx(_components.code,{children:`apiVersion`}),` vào `,_jsx(_components.code,{children:`result.context`}),`; nếu bỏ qua hoặc đặt thành `,_jsx(_components.code,{children:`false`}),` thì chúng sẽ không được đưa vào`]}),`\n`]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Yêu cầu về bộ lọc`}),`: Bạn phải cung cấp `,_jsx(_components.code,{children:`mint`}),` (token cụ thể) hoặc `,_jsx(_components.code,{children:`programId`}),` (chương trình SPL Token hoặc Token-2022) trong truy vấn. Không hỗ trợ truy vấn tất cả loại token của một chủ sở hữu mà không có bộ lọc.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`lợi-ích-chính`,children:`Lợi ích chính`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Large Portfolios`,icon:`wallet`,children:_jsx(_components.p,{children:`Xử lý các ví có hàng nghìn tài khoản token mà không gặp lỗi hết thời gian chờ hoặc vấn đề về bộ nhớ`})}),_jsx(Card,{title:`Real-time Tracking`,icon:`chart-line`,children:_jsxs(_components.p,{children:[`Theo dõi các thay đổi của danh mục theo thời gian thực bằng `,_jsx(_components.code,{children:`changedSinceSlot`}),` để cập nhật tăng dần`]})})]}),`\n`,_jsxs(Heading,{level:`2`,id:`withcontext-tùy-chọn`,children:[_jsx(_components.code,{children:`withContext`}),` (tùy chọn)`]}),`\n`,_jsxs(_components.p,{children:[`Giá trị Boolean trong đối tượng cấu hình (`,_jsx(_components.code,{children:`params[2]`}),`). Chỉ cấu trúc của `,_jsx(_components.code,{children:`result`}),` thay đổi, còn bộ lọc, giới hạn và cách phân trang không thay đổi. Nếu bỏ qua hoặc đặt thành `,_jsx(_components.code,{children:`false`}),`: `,_jsx(_components.code,{children:`result.value`}),` là `,_jsx(_components.strong,{children:`mảng`}),` tài khoản token. Nếu đặt thành `,_jsx(_components.code,{children:`true`}),`: `,_jsx(_components.code,{children:`result.context`}),` cùng với `,_jsx(_components.code,{children:`result.value`}),` dưới dạng `,_jsx(_components.strong,{children:`đối tượng`}),` (`,_jsx(_components.code,{children:`accounts`}),`, `,_jsx(_components.code,{children:`paginationKey`}),`). Nếu xử lý cả hai trường hợp, hãy phân nhánh theo `,_jsx(_components.code,{children:`Array.isArray(result.value)`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Omitted or false`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"jsonrpc\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2.0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"result\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [], `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"paginationKey\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } }`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// true`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"jsonrpc\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2.0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"result\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"context\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"slot\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`411895550`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"apiVersion\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3.1.9\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"accounts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [], `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"paginationKey\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`các-phương-pháp-hay-nhất-khi-phân-trang`,children:`Các phương pháp hay nhất khi phân trang`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Hành vi phân trang quan trọng`}),`: Việc kết thúc phân trang chỉ được xác định khi `,_jsx(_components.strong,{children:`không có tài khoản token nào được trả về`}),`. API có thể trả về ít tài khoản hơn giới hạn do áp dụng bộ lọc — luôn tiếp tục phân trang cho đến khi `,_jsx(_components.code,{children:`paginationKey`}),` là `,_jsx(_components.code,{children:`null`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`truy-vấn-danh-mục-cơ-bản`,children:`Truy vấn danh mục cơ bản`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`30`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`30`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Get all SPL Token accounts for a wallet`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` allTokenAccounts`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [];`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` paginationKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`do`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`https://mainnet.helius-rpc.com/?api-key=\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` jsonrpc:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '2.0'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '1'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'getTokenAccountsByOwnerV2'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` params:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// wallet address`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"programId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` encoding:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'jsonParsed'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` limit:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`paginationKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`paginationKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` `})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` allTokenAccounts`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`push`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`value`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` paginationKey`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`paginationKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`while`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`paginationKey`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`Total token accounts: \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`allTokenAccounts`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`length`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`cập-nhật-danh-mục-tăng-dần`,children:`Cập nhật danh mục tăng dần`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`19`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`19`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Get only token accounts modified since a specific slot`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` portfolioUpdates`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`https://mainnet.helius-rpc.com/?api-key=\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` jsonrpc:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '2.0'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '1'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'getTokenAccountsByOwnerV2'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` params:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` walletAddress`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"programId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` encoding:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'jsonParsed'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` limit:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` changedSinceSlot:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` lastUpdateSlot`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Only get recent changes`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`hỗ-trợ-chương-trình-token`,children:`Hỗ trợ chương trình token`}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Hỗ trợ Token-2022`}),`: Sử dụng `,_jsx(_components.code,{children:`TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb`}),` làm `,_jsx(_components.code,{children:`programId`}),` để truy vấn các tài khoản Token-2022 có phần mở rộng như phí chuyển, token sinh lãi và nhiều tính năng khác.`]})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`15`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Query Token-2022 accounts (supports token extensions)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` token2022Response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`https://mainnet.helius-rpc.com/?api-key=\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` jsonrpc:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '2.0'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '1'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'getTokenAccountsByOwnerV2'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` params:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` walletAddress`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"programId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Token-2022`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`encoding:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'jsonParsed'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`limit:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`di-chuyển-từ-gettokenaccountsbyowner`,children:`Di chuyển từ getTokenAccountsByOwner`}),`\n`,_jsx(_components.p,{children:`Việc di chuyển rất đơn giản — chỉ cần thêm các tham số phân trang vào truy vấn hiện có:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`diff`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`diff`,children:_jsxs(_components.code,{language:`diff`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \"jsonrpc\": \"2.0\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \"id\": \"1\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#82071E`,\"--shiki-dark\":`#CE9178`},children:`- \"method\": \"getTokenAccountsByOwner\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#B5CEA8`},children:`+ \"method\": \"getTokenAccountsByOwnerV2\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \"params\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { \"programId\": \"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` \"encoding\": \"jsonParsed\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#B5CEA8`},children:`+ \"limit\": 1000`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`các-phương-thức-liên-quan`,children:`Các phương thức liên quan`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`getTokenAccountsByOwner`,icon:`wallet`,href:`/vi/api-reference/rpc/http/gettokenaccountsbyowner`,children:_jsx(_components.p,{children:`Phương thức gốc không có tính năng phân trang`})}),_jsx(Card,{title:`getProgramAccountsV2`,icon:`code`,href:`/vi/api-reference/rpc/http/getprogramaccountsv2`,children:_jsx(_components.p,{children:`Phương thức V2 dành cho các truy vấn tài khoản chương trình`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`tham-số-yêu-cầu`,children:`Tham số yêu cầu`}),`\n`,_jsx(ParamField,{body:`address`,type:`string`,required:true,id:`param-address`,children:_jsx(_components.p,{children:`Địa chỉ ví Solana (pubkey) của chủ sở hữu tài khoản cần truy vấn lượng token đang nắm giữ, ở dạng chuỗi được mã hóa base-58.`})}),`\n`,_jsx(ParamField,{body:`mint`,type:`string`,id:`param-mint`,children:_jsx(_components.p,{children:`Địa chỉ phát hành token Solana cụ thể để chỉ truy xuất các tài khoản của một token hoặc NFT nhất định.`})}),`\n`,_jsx(ParamField,{body:`programId`,type:`string`,id:`param-program-id`,children:_jsx(_components.p,{children:`ID chương trình token Solana cụ thể (thường là chương trình SPL Token) đã tạo các tài khoản token.`})}),`\n`,_jsxs(ParamField,{body:`commitment`,type:`string`,id:`param-commitment`,children:[_jsx(_components.p,{children:`Mức cam kết cho yêu cầu.`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`confirmed`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`finalized`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`processed`})}),`\n`]})]}),`\n`,_jsx(ParamField,{body:`minContextSlot`,type:`number`,id:`param-min-context-slot`,children:_jsx(_components.p,{children:`Slot tối thiểu mà tại đó yêu cầu có thể được đánh giá.`})}),`\n`,_jsx(ParamField,{body:`withContext`,type:`boolean`,id:`param-with-context`,children:_jsxs(_components.p,{children:[`Khi là `,_jsx(_components.code,{children:`true`}),`, trả về `,_jsx(_components.code,{children:`result.context`}),` (siêu dữ liệu ảnh chụp nhanh: `,_jsx(_components.code,{children:`slot`}),`, `,_jsx(_components.code,{children:`apiVersion`}),`) và lồng\n`,_jsx(_components.code,{children:`accounts`}),` cùng `,_jsx(_components.code,{children:`paginationKey`}),` bên trong `,_jsx(_components.code,{children:`result.value`}),` dưới dạng đối tượng. Khi là `,_jsx(_components.code,{children:`false`}),`\nhoặc bị bỏ qua, `,_jsx(_components.code,{children:`result.value`}),` là mảng tài khoản token của trang này, với `,_jsx(_components.code,{children:`paginationKey`}),`\nnằm trong `,_jsx(_components.code,{children:`result`}),`. Áp dụng cùng bộ lọc và giới hạn.`]})}),`\n`,_jsx(ParamField,{body:`dataSlice`,type:`object`,id:`param-data-slice`,children:_jsx(_components.p,{children:`Yêu cầu một phần dữ liệu của tài khoản.`})}),`\n`,_jsx(ParamField,{body:`dataSlice.length`,type:`number`,id:`param-data-slice-length`,children:_jsx(_components.p,{children:`Số byte cần trả về.`})}),`\n`,_jsx(ParamField,{body:`dataSlice.offset`,type:`number`,id:`param-data-slice-offset`,children:_jsx(_components.p,{children:`Độ lệch byte để bắt đầu đọc.`})}),`\n`,_jsxs(ParamField,{body:`encoding`,type:`string`,id:`param-encoding`,children:[_jsx(_components.p,{children:`Định dạng mã hóa cho dữ liệu Tài khoản.`}),_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`base58`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`base64`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`base64+zstd`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`jsonParsed`})}),`\n`]})]}),`\n`,_jsx(ParamField,{body:`limit`,type:`number`,id:`param-limit`,children:_jsx(_components.p,{children:`Số tài khoản token tối đa trả về cho mỗi yêu cầu (1-10.000).`})}),`\n`,_jsx(ParamField,{body:`paginationKey`,type:`string`,id:`param-pagination-key`,children:_jsx(_components.p,{children:`Con trỏ phân trang được mã hóa base-58 để tìm nạp các trang tiếp theo. Sử dụng paginationKey từ phản hồi trước đó.`})}),`\n`,_jsx(ParamField,{body:`changedSinceSlot`,type:`number`,id:`param-changed-since-slot`,children:_jsx(_components.p,{children:`Chỉ trả về các tài khoản token đã được sửa đổi tại hoặc sau số slot này. Hữu ích cho việc cập nhật danh mục tăng dần.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"getTokenAccountsByOwnerV2","og:title":"Phương thức RPC Solana getTokenAccountsByOwnerV2","sidebarTitle":"getTokenAccountsByOwnerV2","description":"getTokenAccountsByOwnerV2 là phiên bản nâng cao của getTokenAccountsByOwner, hỗ trợ phân trang bằng con trỏ và cập nhật changedSinceSlot cho các danh mục token Solana lớn.","og:description":"Truy vấn tài khoản token nâng cao với tính năng phân trang bằng con trỏ và cập nhật tăng dần cho các token SPL trong ví Solana","openapi":"vi/openapi/rpc-http/getTokenAccountsByOwnerV2.yaml POST /","href":"/vi/api-reference/rpc/http/gettokenaccountsbyownerv2"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Tổng quan","slug":"tổng-quan","depth":2,"children":[]},{"title":"Lợi ích chính","slug":"lợi-ích-chính","depth":2,"children":[]},{"title":"withContext (tùy chọn)","slug":"withcontext-tùy-chọn","depth":2,"children":[]},{"title":"Các phương pháp hay nhất khi phân trang","slug":"các-phương-pháp-hay-nhất-khi-phân-trang","depth":2,"children":[{"title":"Truy vấn danh mục cơ bản","slug":"truy-vấn-danh-mục-cơ-bản","depth":3,"children":[]},{"title":"Cập nhật danh mục tăng dần","slug":"cập-nhật-danh-mục-tăng-dần","depth":3,"children":[]}]},{"title":"Hỗ trợ chương trình token","slug":"hỗ-trợ-chương-trình-token","depth":2,"children":[]},{"title":"Di chuyển từ getTokenAccountsByOwner","slug":"di-chuyển-từ-gettokenaccountsbyowner","depth":2,"children":[]},{"title":"Các phương thức liên quan","slug":"các-phương-thức-liên-quan","depth":2,"children":[]},{"title":"Tham số yêu cầu","slug":"tham-số-yêu-cầu","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/helius/5f930f78031445fe/scripts/sitemap.js","/docs/_mintlify/custom/helius/ecb2b22c1bc28209/scripts/sync-docs-nav.js","/docs/_mintlify/custom/helius/232d75b56cf461f7/linkedin.js","/docs/_mintlify/custom/helius/d5a10ed2d4d996d9/scripts/fix-i18n-links.js","/docs/_mintlify/custom/helius/c90894153130b6c4/scripts/fix-i18n-frontmatter.js","/docs/_mintlify/custom/helius/b4d84372b075c905/scripts/find-unparseable-frontmatter.js","/docs/_mintlify/custom/helius/dc8d0e922a5d8fb6/scripts/check-i18n-integrity.js","/docs/_mintlify/custom/helius/49d45a89496348bd/scripts/i18n-health-report.js","/docs/_mintlify/custom/helius/4e0f1d39839ccd64/scripts/locales.js","/docs/_mintlify/custom/helius/68a8df30ec1986a3/scripts/check-anchors.js","/docs/_mintlify/custom/helius/556b36961bc54fbe/scripts/mdx-anchors.js","/docs/_mintlify/custom/helius/642e7f83c8899dfa/scripts/nav-pages.js","/docs/_mintlify/custom/helius/308c1078ca8ba29b/scripts/fix-i18n-jsx-attributes.js","/docs/_mintlify/custom/helius/16d4beb7605f6c62/scripts/check-llms-coverage.js","/docs/_mintlify/custom/helius/e0935d4d58b894e6/privacy-embed.js","/docs/_mintlify/custom/helius/c2f68f57c828ce57/scripts/i18n-merge-locks.js","/docs/_mintlify/custom/helius/120ca3e82eddff19/scripts/i18n-plan-shards.js","/docs/_mintlify/custom/helius/11de683b077d84a9/scripts/find-missing-translations.js","/docs/_mintlify/custom/helius/5bbce53c6bacfb82/scripts/sync-code-only-translations.js","/docs/_mintlify/custom/helius/a20579e01f20e64f/scripts/check-i18n-links.js","/docs/_mintlify/custom/helius/394a6d904921aa8d/scripts/doc-routes.js","/docs/_mintlify/custom/helius/f3f98052deb43d0d/scripts/i18n-link-parity.js","/docs/_mintlify/custom/helius/58304f8f5f63277c/scripts/localized-redirects.js","/docs/_mintlify/custom/helius/4bbb7aa7dc0ba861/scripts/sync-localized-redirects.js","/docs/_mintlify/custom/helius/eb929e6cbd54de05/scripts/check-removed-routes.js","/docs/_mintlify/custom/helius/481461d851bb2ada/scripts/check-og-font-coverage.js","/docs/_mintlify/custom/helius/70670c36240b1fe4/scripts/collect-og-font-codepoints.js","/docs/_mintlify/custom/helius/93cdd43e3414beef/scripts/check-outbound-links.js","/docs/_mintlify/custom/helius/d4c8486aeb8806b9/scripts/banner-i18n.js","/docs/_mintlify/custom/helius/af129e84752fd5a9/scripts/i18n-stage-decision.js"],"openApiReferenceData":{"operation":{"tags":["RPC"],"summary":"getTokenAccountsByOwnerV2","operationId":"getTokenAccountsByOwnerV2","description":"getTokenAccountsByOwnerV2 là phiên bản nâng cao của getTokenAccountsByOwner, hỗ trợ phân trang bằng con trỏ và cập nhật changedSinceSlot cho các danh mục token Solana lớn.","security":["26d12314-1070-4859-8d13-4f0c4be00246"],"requestBody":"d7142d4b-2a1b-44c1-aaf6-b439ff4aff7c","responses":{"200":"8c9e2682-ee3f-4a96-8f86-3356cc25ff3a","400":"a3b2f991-6a3e-40ca-9f31-61e9b5b68e00","401":"83917940-bbce-49fd-bd90-eb2a7f3e22d9","429":"aa2546fa-134d-4e1b-8f34-ae776f7ab64e","500":"c1430d0e-b402-42a5-8da0-de8871b81b39","503":"5df66799-ab6d-4680-9dc7-cd1cf257b184","504":"7bbe93b7-5525-497a-be3b-177af82abf55"},"method":"post","type":"path","servers":["285ae696-809b-4d00-858c-d238e905baf5","a940d0fc-c00c-40c7-b345-0ff0bede5aed"],"path":"/","baseUrlOptions":["https://mainnet.helius-rpc.com","https://devnet.helius-rpc.com"],"title":"getTokenAccountsByOwnerV2","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string","enum":["2.0"],"description":"Phiên bản giao thức JSON-RPC.","example":"2.0","default":"2.0","uniqueKey":"jsonrpc","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"Mã định danh duy nhất cho yêu cầu.","example":"1","default":"1","uniqueKey":"id","typeLabel":"string"},"method":{"type":"string","enum":["getTokenAccountsByOwnerV2"],"description":"Tên của phương thức RPC cần gọi.","example":"getTokenAccountsByOwnerV2","default":"getTokenAccountsByOwnerV2","uniqueKey":"method","typeLabel":"enum\u003cstring>"},"params":{"type":"array","description":"Các tham số để truy vấn những tài khoản token được phân trang thuộc sở hữu của một khóa công khai cụ thể.","default":["A1TMhSGzQxMr1TboBKtgixKz1sS6REASMxPo1qsyTSJd",{"programId":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"},{"encoding":"jsonParsed","limit":1000}],"items":{"oneOf":[{"type":"string","description":"Địa chỉ ví Solana (pubkey) của chủ sở hữu tài khoản cần truy vấn tài sản token, dưới dạng chuỗi được mã hóa base-58.","example":"A1TMhSGzQxMr1TboBKtgixKz1sS6REASMxPo1qsyTSJd","uniqueKey":"params.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"object","description":"Cấu hình bộ lọc để thu hẹp các tài khoản token theo địa chỉ mint hoặc ID chương trình.","properties":{"mint":{"type":"string","description":"Địa chỉ mint token Solana cụ thể để chỉ truy xuất các tài khoản của một token hoặc NFT nhất định.","example":"2cHr7QS3xfuSV8wdxo3ztuF4xbiarF6Nrgx3qpx3HzXR","uniqueKey":"params.items.[INDEX].oneOf.1.mint","typeLabel":"string"},"programId":{"type":"string","description":"ID chương trình token Solana cụ thể (thường là chương trình SPL Token) đã tạo các tài khoản token.","example":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA","uniqueKey":"params.items.[INDEX].oneOf.1.programId","typeLabel":"string"}},"uniqueKey":"params.items.[INDEX].oneOf.1","typeLabel":"object"},{"type":"object","description":"Đối tượng cấu hình nâng cao có hỗ trợ phân trang và các trường tùy chọn.","properties":{"commitment":{"type":"string","description":"Mức cam kết cho yêu cầu.","enum":["confirmed","finalized","processed"],"example":"finalized","uniqueKey":"params.items.[INDEX].oneOf.2.commitment","typeLabel":"enum\u003cstring>"},"minContextSlot":{"type":"integer","description":"Slot tối thiểu mà tại đó yêu cầu có thể được đánh giá.","example":1000,"uniqueKey":"params.items.[INDEX].oneOf.2.minContextSlot","typeLabel":"integer"},"withContext":{"type":"boolean","description":"Khi là `true`, trả về `result.context` (siêu dữ liệu ảnh chụp nhanh: `slot`, `apiVersion`) và lồng\n`accounts` cùng `paginationKey` trong `result.value` dưới dạng đối tượng. Khi là `false`\nhoặc bị bỏ qua, `result.value` là mảng tài khoản token của trang này, với `paginationKey`\ntrong `result`. Áp dụng cùng các bộ lọc và giới hạn.\n","example":true,"uniqueKey":"params.items.[INDEX].oneOf.2.withContext","typeLabel":"boolean"},"dataSlice":{"type":"object","description":"Yêu cầu một phần dữ liệu của tài khoản.","properties":{"length":{"type":"integer","description":"Số byte cần trả về.","example":10,"uniqueKey":"params.items.[INDEX].oneOf.2.dataSlice.length","typeLabel":"integer"},"offset":{"type":"integer","description":"Độ lệch byte để bắt đầu đọc.","example":0,"uniqueKey":"params.items.[INDEX].oneOf.2.dataSlice.offset","typeLabel":"integer"}},"uniqueKey":"params.items.[INDEX].oneOf.2.dataSlice","typeLabel":"object"},"encoding":{"type":"string","description":"Định dạng mã hóa cho dữ liệu tài khoản.","enum":["base58","base64","base64+zstd","jsonParsed"],"example":"jsonParsed","uniqueKey":"params.items.[INDEX].oneOf.2.encoding","typeLabel":"enum\u003cstring>"},"limit":{"type":"integer","description":"Số tài khoản token tối đa cần trả về cho mỗi yêu cầu (1–10.000).","minimum":1,"maximum":10000,"example":1000,"uniqueKey":"params.items.[INDEX].oneOf.2.limit","typeLabel":"integer"},"paginationKey":{"type":"string","description":"Con trỏ phân trang được mã hóa base-58 để tìm nạp các trang tiếp theo. Sử dụng paginationKey từ phản hồi trước.","example":"9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM","uniqueKey":"params.items.[INDEX].oneOf.2.paginationKey","typeLabel":"string"},"changedSinceSlot":{"type":"integer","description":"Chỉ trả về các tài khoản token đã được sửa đổi tại hoặc sau số slot này. Hữu ích cho việc cập nhật danh mục gia tăng.","example":12345678,"uniqueKey":"params.items.[INDEX].oneOf.2.changedSinceSlot","typeLabel":"integer"}},"uniqueKey":"params.items.[INDEX].oneOf.2","typeLabel":"object"}],"uniqueKey":"params.items.[INDEX]","typeLabel":"string · object · object"},"uniqueKey":"params","typeLabel":"string · object · object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"jsonrpc":"2.0","id":"1","method":"getTokenAccountsByOwnerV2","params":["A1TMhSGzQxMr1TboBKtgixKz1sS6REASMxPo1qsyTSJd",{"programId":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"},{"encoding":"jsonParsed","limit":1000}]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"8c9e2682-ee3f-4a96-8f86-3356cc25ff3a":{"description":"Đã truy xuất thành công các tài khoản token được phân trang theo chủ sở hữu.","content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string","description":"Phiên bản giao thức JSON-RPC.","enum":["2.0"],"example":"2.0","uniqueKey":"jsonrpc","typeLabel":"enum\u003cstring>"},"id":{"type":"string","description":"Mã định danh khớp với yêu cầu.","example":"1","uniqueKey":"id","typeLabel":"string"},"result":{"oneOf":[{"type":"object","title":"không có withContext","description":"Các tài khoản token được phân trang khi `withContext` là false hoặc bị bỏ qua. Khớp với cấu trúc quen thuộc, trong đó danh sách tài khoản là một mảng tại `result.value` (không được lồng trong `accounts`).","properties":{"value":{"type":"array","description":"Các tài khoản token của trang hiện tại.","items":{"type":"object","properties":{"pubkey":{"type":"string","description":"Pubkey của tài khoản dưới dạng chuỗi được mã hóa base-58.","example":"BGocb4GEpbTFm8UFV2VsDSaBXHELPfAXrvd4vtt8QWrA","uniqueKey":"result.oneOf.0.value.items.[INDEX].pubkey","typeLabel":"string"},"account":{"type":"object","description":"Chi tiết tài khoản token.","properties":{"lamports":{"type":"integer","description":"Số lamport được gán cho tài khoản.","example":2039280,"uniqueKey":"result.oneOf.0.value.items.[INDEX].account.lamports","typeLabel":"integer"},"owner":{"type":"string","description":"Pubkey của chương trình được gán cho tài khoản này.","example":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA","uniqueKey":"result.oneOf.0.value.items.[INDEX].account.owner","typeLabel":"string"},"data":{"type":"object","description":"Dữ liệu trạng thái token liên kết với tài khoản.","properties":{"program":{"type":"string","description":"Tên chương trình.","example":"spl-token","uniqueKey":"result.oneOf.0.value.items.[INDEX].account.data.program","typeLabel":"string"},"parsed":{"type":"object","description":"Dữ liệu token đã phân tích.","properties":{"info":{"type":"object","description":"Thông tin tài khoản token.","properties":{"isNative":{"type":"boolean","description":"Cho biết tài khoản có nắm giữ SOL gốc hay không.","example":false,"uniqueKey":"result.oneOf.0.value.items.[INDEX].account.data.parsed.info.isNative","typeLabel":"boolean"},"mint":{"type":"string","description":"Pubkey của mint token.","example":"2cHr7QS3xfuSV8wdxo3ztuF4xbiarF6Nrgx3qpx3HzXR","uniqueKey":"result.oneOf.0.value.items.[INDEX].account.data.parsed.info.mint","typeLabel":"string"},"owner":{"type":"string","description":"Pubkey của chủ sở hữu tài khoản.","example":"A1TMhSGzQxMr1TboBKtgixKz1sS6REASMxPo1qsyTSJd","uniqueKey":"result.oneOf.0.value.items.[INDEX].account.data.parsed.info.owner","typeLabel":"string"},"state":{"type":"string","description":"Trạng thái tài khoản token.","example":"initialized","uniqueKey":"result.oneOf.0.value.items.[INDEX].account.data.parsed.info.state","typeLabel":"string"},"tokenAmount":{"type":"object","description":"Chi tiết số lượng token.","properties":{"amount":{"type":"string","description":"Số dư thô chưa tính chữ số thập phân.","example":"420000000000000","uniqueKey":"result.oneOf.0.value.items.[INDEX].account.data.parsed.info.tokenAmount.amount","typeLabel":"string"},"decimals":{"type":"integer","description":"Số chữ số thập phân.","example":6,"uniqueKey":"result.oneOf.0.value.items.[INDEX].account.data.parsed.info.tokenAmount.decimals","typeLabel":"integer"},"uiAmount":{"type":"number","description":"Số dư ở định dạng dễ đọc.","example":420000000,"uniqueKey":"result.oneOf.0.value.items.[INDEX].account.data.parsed.info.tokenAmount.uiAmount","typeLabel":"number"},"uiAmountString":{"type":"string","description":"Số dư dưới dạng chuỗi.","example":"420000000","uniqueKey":"result.oneOf.0.value.items.[INDEX].account.data.parsed.info.tokenAmount.uiAmountString","typeLabel":"string"}},"uniqueKey":"result.oneOf.0.value.items.[INDEX].account.data.parsed.info.tokenAmount","typeLabel":"object"}},"uniqueKey":"result.oneOf.0.value.items.[INDEX].account.data.parsed.info","typeLabel":"object"}},"uniqueKey":"result.oneOf.0.value.items.[INDEX].account.data.parsed","typeLabel":"object"},"space":{"type":"integer","description":"Dung lượng được phân bổ cho tài khoản.","example":165,"uniqueKey":"result.oneOf.0.value.items.[INDEX].account.data.space","typeLabel":"integer"}},"uniqueKey":"result.oneOf.0.value.items.[INDEX].account.data","typeLabel":"object"},"executable":{"type":"boolean","description":"Cho biết tài khoản có chứa chương trình hay không.","example":false,"uniqueKey":"result.oneOf.0.value.items.[INDEX].account.executable","typeLabel":"boolean"},"rentEpoch":{"type":"integer","description":"Epoch mà tại đó tài khoản sẽ phải trả phí thuê tiếp theo.","example":18446744073709552000,"uniqueKey":"result.oneOf.0.value.items.[INDEX].account.rentEpoch","typeLabel":"integer"},"space":{"type":"integer","description":"Kích thước dữ liệu của tài khoản.","example":165,"uniqueKey":"result.oneOf.0.value.items.[INDEX].account.space","typeLabel":"integer"}},"uniqueKey":"result.oneOf.0.value.items.[INDEX].account","typeLabel":"object"}},"uniqueKey":"result.oneOf.0.value.items.[INDEX]","typeLabel":"object"},"uniqueKey":"result.oneOf.0.value","typeLabel":"object[]"},"paginationKey":{"oneOf":[{"type":"string","description":"Con trỏ phân trang cho trang tiếp theo. Chỉ là null khi không có tài khoản token nào được trả về (kết thúc phân trang). Lưu ý rằng số tài khoản trả về có thể ít hơn giới hạn do bộ lọc, nhưng điều này không có nghĩa là đã kết thúc phân trang.","example":"8WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM","uniqueKey":"result.oneOf.0.paginationKey.oneOf.0","typeLabel":"string"},{"type":"null","description":"Con trỏ phân trang cho trang tiếp theo. Chỉ là null khi không có tài khoản token nào được trả về (kết thúc phân trang). Lưu ý rằng số tài khoản trả về có thể ít hơn giới hạn do bộ lọc, nhưng điều này không có nghĩa là đã kết thúc phân trang.","example":"8WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM","uniqueKey":"result.oneOf.0.paginationKey.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.oneOf.0.paginationKey","typeLabel":"string | null"}},"uniqueKey":"result.oneOf.0","typeLabel":"không có withContext · object"},{"type":"object","title":"có withContext","description":"Kết quả được bao bọc khi `withContext` là `true` trong các tùy chọn yêu cầu.","required":["context","value"],"properties":{"context":{"type":"object","description":"Siêu dữ liệu ảnh chụp nhanh cho phản hồi của nút (tính nhất quán của slot, gỡ lỗi).","properties":{"slot":{"type":"integer","description":"Slot mà tại đó nút tạo phản hồi này.","example":341197933,"uniqueKey":"result.oneOf.1.context.slot","typeLabel":"integer"},"apiVersion":{"type":"string","description":"Phiên bản RPC API khi có sẵn.","example":"2.0.15","uniqueKey":"result.oneOf.1.context.apiVersion","typeLabel":"string"}},"isRequired":true,"uniqueKey":"result.oneOf.1.context","typeLabel":"object"},"value":{"type":"object","description":"Các tài khoản token được phân trang khi `withContext` là true. Chứa `accounts` và `paginationKey` trong `result.value`, cùng với `result.context`.","properties":{"accounts":{"type":"array","description":"Các tài khoản token của trang hiện tại.","items":{"type":"object","properties":{"pubkey":{"type":"string","description":"Pubkey của tài khoản dưới dạng chuỗi được mã hóa base-58.","example":"BGocb4GEpbTFm8UFV2VsDSaBXHELPfAXrvd4vtt8QWrA","uniqueKey":"result.oneOf.1.value.accounts.items.[INDEX].pubkey","typeLabel":"string"},"account":{"type":"object","description":"Chi tiết tài khoản token.","properties":{"lamports":{"type":"integer","description":"Số lamport được gán cho tài khoản.","example":2039280,"uniqueKey":"result.oneOf.1.value.accounts.items.[INDEX].account.lamports","typeLabel":"integer"},"owner":{"type":"string","description":"Pubkey của chương trình được gán cho tài khoản này.","example":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA","uniqueKey":"result.oneOf.1.value.accounts.items.[INDEX].account.owner","typeLabel":"string"},"data":{"type":"object","description":"Dữ liệu trạng thái token liên kết với tài khoản.","properties":{"program":{"type":"string","description":"Tên chương trình.","example":"spl-token","uniqueKey":"result.oneOf.1.value.accounts.items.[INDEX].account.data.program","typeLabel":"string"},"parsed":{"type":"object","description":"Dữ liệu token đã phân tích.","properties":{"info":{"type":"object","description":"Thông tin tài khoản token.","properties":{"isNative":{"type":"boolean","description":"Cho biết tài khoản có nắm giữ SOL gốc hay không.","example":false,"uniqueKey":"result.oneOf.1.value.accounts.items.[INDEX].account.data.parsed.info.isNative","typeLabel":"boolean"},"mint":{"type":"string","description":"Pubkey của mint token.","example":"2cHr7QS3xfuSV8wdxo3ztuF4xbiarF6Nrgx3qpx3HzXR","uniqueKey":"result.oneOf.1.value.accounts.items.[INDEX].account.data.parsed.info.mint","typeLabel":"string"},"owner":{"type":"string","description":"Pubkey của chủ sở hữu tài khoản.","example":"A1TMhSGzQxMr1TboBKtgixKz1sS6REASMxPo1qsyTSJd","uniqueKey":"result.oneOf.1.value.accounts.items.[INDEX].account.data.parsed.info.owner","typeLabel":"string"},"state":{"type":"string","description":"Trạng thái tài khoản token.","example":"initialized","uniqueKey":"result.oneOf.1.value.accounts.items.[INDEX].account.data.parsed.info.state","typeLabel":"string"},"tokenAmount":{"type":"object","description":"Chi tiết số lượng token.","properties":{"amount":{"type":"string","description":"Số dư thô chưa tính chữ số thập phân.","example":"420000000000000","uniqueKey":"result.oneOf.1.value.accounts.items.[INDEX].account.data.parsed.info.tokenAmount.amount","typeLabel":"string"},"decimals":{"type":"integer","description":"Số chữ số thập phân.","example":6,"uniqueKey":"result.oneOf.1.value.accounts.items.[INDEX].account.data.parsed.info.tokenAmount.decimals","typeLabel":"integer"},"uiAmount":{"type":"number","description":"Số dư ở định dạng dễ đọc.","example":420000000,"uniqueKey":"result.oneOf.1.value.accounts.items.[INDEX].account.data.parsed.info.tokenAmount.uiAmount","typeLabel":"number"},"uiAmountString":{"type":"string","description":"Số dư dưới dạng chuỗi.","example":"420000000","uniqueKey":"result.oneOf.1.value.accounts.items.[INDEX].account.data.parsed.info.tokenAmount.uiAmountString","typeLabel":"string"}},"uniqueKey":"result.oneOf.1.value.accounts.items.[INDEX].account.data.parsed.info.tokenAmount","typeLabel":"object"}},"uniqueKey":"result.oneOf.1.value.accounts.items.[INDEX].account.data.parsed.info","typeLabel":"object"}},"uniqueKey":"result.oneOf.1.value.accounts.items.[INDEX].account.data.parsed","typeLabel":"object"},"space":{"type":"integer","description":"Dung lượng được phân bổ cho tài khoản.","example":165,"uniqueKey":"result.oneOf.1.value.accounts.items.[INDEX].account.data.space","typeLabel":"integer"}},"uniqueKey":"result.oneOf.1.value.accounts.items.[INDEX].account.data","typeLabel":"object"},"executable":{"type":"boolean","description":"Cho biết tài khoản có chứa chương trình hay không.","example":false,"uniqueKey":"result.oneOf.1.value.accounts.items.[INDEX].account.executable","typeLabel":"boolean"},"rentEpoch":{"type":"integer","description":"Epoch mà tại đó tài khoản sẽ phải trả phí thuê tiếp theo.","example":18446744073709552000,"uniqueKey":"result.oneOf.1.value.accounts.items.[INDEX].account.rentEpoch","typeLabel":"integer"},"space":{"type":"integer","description":"Kích thước dữ liệu của tài khoản.","example":165,"uniqueKey":"result.oneOf.1.value.accounts.items.[INDEX].account.space","typeLabel":"integer"}},"uniqueKey":"result.oneOf.1.value.accounts.items.[INDEX].account","typeLabel":"object"}},"uniqueKey":"result.oneOf.1.value.accounts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"result.oneOf.1.value.accounts","typeLabel":"object[]"},"paginationKey":{"oneOf":[{"type":"string","description":"Con trỏ phân trang cho trang tiếp theo. Chỉ là null khi không có tài khoản token nào được trả về (kết thúc phân trang). Lưu ý rằng số tài khoản trả về có thể ít hơn giới hạn do bộ lọc, nhưng điều này không có nghĩa là đã kết thúc phân trang.","example":"8WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM","uniqueKey":"result.oneOf.1.value.paginationKey.oneOf.0","typeLabel":"string"},{"type":"null","description":"Con trỏ phân trang cho trang tiếp theo. Chỉ là null khi không có tài khoản token nào được trả về (kết thúc phân trang). Lưu ý rằng số tài khoản trả về có thể ít hơn giới hạn do bộ lọc, nhưng điều này không có nghĩa là đã kết thúc phân trang.","example":"8WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM","uniqueKey":"result.oneOf.1.value.paginationKey.oneOf.1","typeLabel":"null"}],"uniqueKey":"result.oneOf.1.value.paginationKey","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"result.oneOf.1.value","typeLabel":"object"}},"uniqueKey":"result.oneOf.1","typeLabel":"có withContext · object"}],"uniqueKey":"result","typeLabel":"không có withContext · object | có withContext · object"}},"uniqueKey":"","typeLabel":"object"},"example":{"jsonrpc":"2.0","id":"1","result":{"value":[{"pubkey":"BGocb4GEpbTFm8UFV2VsDSaBXHELPfAXrvd4vtt8QWrA","account":{"lamports":2039280,"owner":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA","data":{"program":"spl-token","parsed":{"info":{"isNative":false,"mint":"2cHr7QS3xfuSV8wdxo3ztuF4xbiarF6Nrgx3qpx3HzXR","owner":"A1TMhSGzQxMr1TboBKtgixKz1sS6REASMxPo1qsyTSJd","state":"initialized","tokenAmount":{"amount":"420000000000000","decimals":6,"uiAmount":420000000,"uiAmountString":"420000000"}}},"space":165},"executable":false,"rentEpoch":18446744073709552000,"space":165}}],"paginationKey":"8WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"}},"examples":{"Example":{"title":"Example","value":{"jsonrpc":"2.0","id":"1","result":{"value":[{"pubkey":"BGocb4GEpbTFm8UFV2VsDSaBXHELPfAXrvd4vtt8QWrA","account":{"lamports":2039280,"owner":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA","data":{"program":"spl-token","parsed":{"info":{"isNative":false,"mint":"2cHr7QS3xfuSV8wdxo3ztuF4xbiarF6Nrgx3qpx3HzXR","owner":"A1TMhSGzQxMr1TboBKtgixKz1sS6REASMxPo1qsyTSJd","state":"initialized","tokenAmount":{"amount":"420000000000000","decimals":6,"uiAmount":420000000,"uiAmountString":"420000000"}}},"space":165},"executable":false,"rentEpoch":18446744073709552000,"space":165}}],"paginationKey":"8WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"}}}},"exampleType":"examples"}},"exampleType":"examples"},"a3b2f991-6a3e-40ca-9f31-61e9b5b68e00":{"description":"Yêu cầu không hợp lệ — Tham số yêu cầu không hợp lệ hoặc yêu cầu sai định dạng.","content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string","description":"Phiên bản giao thức JSON-RPC.","enum":["2.0"],"example":"2.0","uniqueKey":"jsonrpc","typeLabel":"enum\u003cstring>"},"error":{"type":"object","properties":{"code":{"type":"integer","description":"Mã lỗi.","example":-32602,"uniqueKey":"error.code","typeLabel":"integer"},"message":{"type":"string","description":"Thông báo lỗi.","uniqueKey":"error.message","typeLabel":"string"},"data":{"type":"object","description":"Dữ liệu bổ sung về lỗi.","uniqueKey":"error.data","typeLabel":"object"}},"uniqueKey":"error","typeLabel":"object"},"id":{"type":"string","description":"Mã định danh khớp với yêu cầu.","example":"1","uniqueKey":"id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"jsonrpc":"2.0","error":{"code":-32602,"message":"Tham số không hợp lệ"},"id":"1"},"examples":{"Example":{"title":"Example","value":{"jsonrpc":"2.0","error":{"code":-32602,"message":"Tham số không hợp lệ"},"id":"1"}}},"exampleType":"examples"}},"exampleType":"examples"},"83917940-bbce-49fd-bd90-eb2a7f3e22d9":{"description":"Không được phép — Khóa API không hợp lệ hoặc bị thiếu.","content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string","description":"Phiên bản giao thức JSON-RPC.","enum":["2.0"],"example":"2.0","uniqueKey":"jsonrpc","typeLabel":"enum\u003cstring>"},"error":{"type":"object","properties":{"code":{"type":"integer","description":"Mã lỗi.","example":-32602,"uniqueKey":"error.code","typeLabel":"integer"},"message":{"type":"string","description":"Thông báo lỗi.","uniqueKey":"error.message","typeLabel":"string"},"data":{"type":"object","description":"Dữ liệu bổ sung về lỗi.","uniqueKey":"error.data","typeLabel":"object"}},"uniqueKey":"error","typeLabel":"object"},"id":{"type":"string","description":"Mã định danh khớp với yêu cầu.","example":"1","uniqueKey":"id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"jsonrpc":"2.0","error":{"code":-32001,"message":"Không được phép"},"id":"1"},"examples":{"Example":{"title":"Example","value":{"jsonrpc":"2.0","error":{"code":-32001,"message":"Không được phép"},"id":"1"}}},"exampleType":"examples"}},"exampleType":"examples"},"aa2546fa-134d-4e1b-8f34-ae776f7ab64e":{"description":"Quá nhiều yêu cầu — Đã vượt quá giới hạn tốc độ.","content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string","description":"Phiên bản giao thức JSON-RPC.","enum":["2.0"],"example":"2.0","uniqueKey":"jsonrpc","typeLabel":"enum\u003cstring>"},"error":{"type":"object","properties":{"code":{"type":"integer","description":"Mã lỗi.","example":-32602,"uniqueKey":"error.code","typeLabel":"integer"},"message":{"type":"string","description":"Thông báo lỗi.","uniqueKey":"error.message","typeLabel":"string"},"data":{"type":"object","description":"Dữ liệu bổ sung về lỗi.","uniqueKey":"error.data","typeLabel":"object"}},"uniqueKey":"error","typeLabel":"object"},"id":{"type":"string","description":"Mã định danh khớp với yêu cầu.","example":"1","uniqueKey":"id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"jsonrpc":"2.0","error":{"code":-32005,"message":"Quá nhiều yêu cầu"},"id":"1"},"examples":{"Example":{"title":"Example","value":{"jsonrpc":"2.0","error":{"code":-32005,"message":"Quá nhiều yêu cầu"},"id":"1"}}},"exampleType":"examples"}},"exampleType":"examples"},"c1430d0e-b402-42a5-8da0-de8871b81b39":{"description":"Lỗi máy chủ nội bộ — Đã xảy ra lỗi trên máy chủ.","content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string","description":"Phiên bản giao thức JSON-RPC.","enum":["2.0"],"example":"2.0","uniqueKey":"jsonrpc","typeLabel":"enum\u003cstring>"},"error":{"type":"object","properties":{"code":{"type":"integer","description":"Mã lỗi.","example":-32602,"uniqueKey":"error.code","typeLabel":"integer"},"message":{"type":"string","description":"Thông báo lỗi.","uniqueKey":"error.message","typeLabel":"string"},"data":{"type":"object","description":"Dữ liệu bổ sung về lỗi.","uniqueKey":"error.data","typeLabel":"object"}},"uniqueKey":"error","typeLabel":"object"},"id":{"type":"string","description":"Mã định danh khớp với yêu cầu.","example":"1","uniqueKey":"id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"jsonrpc":"2.0","error":{"code":-32603,"message":"Lỗi nội bộ"},"id":"1"},"examples":{"Example":{"title":"Example","value":{"jsonrpc":"2.0","error":{"code":-32603,"message":"Lỗi nội bộ"},"id":"1"}}},"exampleType":"examples"}},"exampleType":"examples"},"5df66799-ab6d-4680-9dc7-cd1cf257b184":{"description":"Dịch vụ không khả dụng — Dịch vụ tạm thời không khả dụng.","content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string","description":"Phiên bản giao thức JSON-RPC.","enum":["2.0"],"example":"2.0","uniqueKey":"jsonrpc","typeLabel":"enum\u003cstring>"},"error":{"type":"object","properties":{"code":{"type":"integer","description":"Mã lỗi.","example":-32602,"uniqueKey":"error.code","typeLabel":"integer"},"message":{"type":"string","description":"Thông báo lỗi.","uniqueKey":"error.message","typeLabel":"string"},"data":{"type":"object","description":"Dữ liệu bổ sung về lỗi.","uniqueKey":"error.data","typeLabel":"object"}},"uniqueKey":"error","typeLabel":"object"},"id":{"type":"string","description":"Mã định danh khớp với yêu cầu.","example":"1","uniqueKey":"id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"jsonrpc":"2.0","error":{"code":-32002,"message":"Dịch vụ không khả dụng"},"id":"1"},"examples":{"Example":{"title":"Example","value":{"jsonrpc":"2.0","error":{"code":-32002,"message":"Dịch vụ không khả dụng"},"id":"1"}}},"exampleType":"examples"}},"exampleType":"examples"},"7bbe93b7-5525-497a-be3b-177af82abf55":{"description":"Cổng kết nối hết thời gian chờ — Yêu cầu đã hết thời gian chờ.","content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string","description":"Phiên bản giao thức JSON-RPC.","enum":["2.0"],"example":"2.0","uniqueKey":"jsonrpc","typeLabel":"enum\u003cstring>"},"error":{"type":"object","properties":{"code":{"type":"integer","description":"Mã lỗi.","example":-32602,"uniqueKey":"error.code","typeLabel":"integer"},"message":{"type":"string","description":"Thông báo lỗi.","uniqueKey":"error.message","typeLabel":"string"},"data":{"type":"object","description":"Dữ liệu bổ sung về lỗi.","uniqueKey":"error.data","typeLabel":"object"}},"uniqueKey":"error","typeLabel":"object"},"id":{"type":"string","description":"Mã định danh khớp với yêu cầu.","example":"1","uniqueKey":"id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"jsonrpc":"2.0","error":{"code":-32003,"message":"Cổng kết nối hết thời gian chờ"},"id":"1"},"examples":{"Example":{"title":"Example","value":{"jsonrpc":"2.0","error":{"code":-32003,"message":"Cổng kết nối hết thời gian chờ"},"id":"1"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"26d12314-1070-4859-8d13-4f0c4be00246":{"ApiKeyQuery":{"type":"apiKey","in":"query","name":"api-key","description":"Khóa API Helius của bạn. Bạn có thể nhận khóa miễn phí trong [bảng điều khiển](https://dashboard.helius.dev/api-keys).","scopes":[]}}},"servers":{"285ae696-809b-4d00-858c-d238e905baf5":{"url":"https://mainnet.helius-rpc.com","description":"Điểm cuối RPC Mainnet"},"a940d0fc-c00c-40c7-b345-0ff0bede5aed":{"url":"https://devnet.helius-rpc.com","description":"Điểm cuối RPC Devnet"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"query","name":"api-key","description":"Khóa API Helius của bạn. Bạn có thể nhận khóa miễn phí trong [bảng điều khiển](https://dashboard.helius.dev/api-keys).","scopes":[]},"schema":{"title":"api-key","type":"string","description":"Khóa API Helius của bạn. Bạn có thể nhận khóa miễn phí trong [bảng điều khiển](https://dashboard.helius.dev/api-keys).","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyQuery","name":"api-key"}],"title":"ApiKeyQuery"}]},"originalFileLocation":"vi/openapi/rpc-http/getTokenAccountsByOwnerV2.yaml"},"subdomain":"helius","siteName":"Helius Docs","title":"Phương thức RPC Solana getTokenAccountsByOwnerV2","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/rpc/http/gettokenaccountsbyownerv2","matchLevel":1},"zh":{"href":"/zh/api-reference/rpc/http/gettokenaccountsbyownerv2","matchLevel":1},"ja":{"href":"/ja/api-reference/rpc/http/gettokenaccountsbyownerv2","matchLevel":1},"pt-BR":{"href":"/pt-BR/api-reference/rpc/http/gettokenaccountsbyownerv2","matchLevel":1},"ko":{"href":"/ko/api-reference/rpc/http/gettokenaccountsbyownerv2","matchLevel":1},"de":{"href":"/de/api-reference/rpc/http/gettokenaccountsbyownerv2","matchLevel":1},"fr":{"href":"/fr/api-reference/rpc/http/gettokenaccountsbyownerv2","matchLevel":1},"es":{"href":"/es/api-reference/rpc/http/gettokenaccountsbyownerv2","matchLevel":1},"id":{"href":"/id/api-reference/rpc/http/gettokenaccountsbyownerv2","matchLevel":1},"vi":{"href":"/vi/api-reference/rpc/http/gettokenaccountsbyownerv2","matchLevel":0},"ru":{"href":"/ru/api-reference/rpc/http/gettokenaccountsbyownerv2","matchLevel":1}}},"lastModified":"2026-09-25T19:40:03.529Z","originalFileLocation":"vi/api-reference/rpc/http/gettokenaccountsbyownerv2.mdx","locale":"vi"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"getTokenAccountsByOwnerV2 là phiên bản nâng cao của getTokenAccountsByOwner, hỗ trợ phân trang bằng con trỏ và cập nhật changedSinceSlot cho các danh mục token Solana lớn.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Helius Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/helius/DpSUWoabClKtmJ0I/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/helius/DpSUWoabClKtmJ0I/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/helius/DpSUWoabClKtmJ0I/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/helius/DpSUWoabClKtmJ0I/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/helius/DpSUWoabClKtmJ0I/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/helius/DpSUWoabClKtmJ0I/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/helius/DpSUWoabClKtmJ0I/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/helius/DpSUWoabClKtmJ0I/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/helius/DpSUWoabClKtmJ0I/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Phương thức RPC Solana getTokenAccountsByOwnerV2\">\u003cmeta data-mint-head property=\"og:description\" content=\"Truy vấn tài khoản token nâng cao với tính năng phân trang bằng con trỏ và cập nhật tăng dần cho các token SPL trong ví Solana\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Helius Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.helius.dev/docs/vi/api-reference/rpc/http/gettokenaccountsbyownerv2\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://helius.mintlify.site/docs/_mintlify/api/og/v2?division=Solana+RPC\u0026amp;title=getTokenAccountsByOwnerV2\u0026amp;description=getTokenAccountsByOwnerV2+l%C3%A0+phi%C3%AAn+b%E1%BA%A3n+n%C3%A2ng+cao+c%E1%BB%A7a+getTokenAccountsByOwner%2C+h%E1%BB%97+tr%E1%BB%A3+ph%C3%A2n+trang+b%E1%BA%B1ng+con+tr%E1%BB%8F+v%C3%A0+c%E1%BA%ADp+nh%E1%BA%ADt+changedSinceSlot+cho+c%C3%A1c+danh+m%E1%BB%A5c+token+\u0026amp;theme=823075074ce27a1d8f159cbc\u0026amp;signature=896099f0079232c8101fde2cff8fc6165d06fd58f4e4f9cde50a8c5719030ddb\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Phương thức RPC Solana getTokenAccountsByOwnerV2\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Truy vấn tài khoản token nâng cao với tính năng phân trang bằng con trỏ và cập nhật tăng dần cho các token SPL trong ví Solana\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://helius.mintlify.site/docs/_mintlify/api/og/v2?division=Solana+RPC\u0026amp;title=getTokenAccountsByOwnerV2\u0026amp;description=getTokenAccountsByOwnerV2+l%C3%A0+phi%C3%AAn+b%E1%BA%A3n+n%C3%A2ng+cao+c%E1%BB%A7a+getTokenAccountsByOwner%2C+h%E1%BB%97+tr%E1%BB%A3+ph%C3%A2n+trang+b%E1%BA%B1ng+con+tr%E1%BB%8F+v%C3%A0+c%E1%BA%ADp+nh%E1%BA%ADt+changedSinceSlot+cho+c%C3%A1c+danh+m%E1%BB%A5c+token+\u0026amp;theme=823075074ce27a1d8f159cbc\u0026amp;signature=896099f0079232c8101fde2cff8fc6165d06fd58f4e4f9cde50a8c5719030ddb\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/helius/DpSUWoabClKtmJ0I/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Helius Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#E84125\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.helius.dev/docs/vi/api-reference/rpc/http/gettokenaccountsbyownerv2\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/vi/api-reference/rpc/http/gettokenaccountsbyownerv2.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"vi\" href=\"https://www.helius.dev/docs/vi/api-reference/rpc/http/gettokenaccountsbyownerv2\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://www.helius.dev/docs/api-reference/rpc/http/gettokenaccountsbyownerv2\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://www.helius.dev/docs/zh/api-reference/rpc/http/gettokenaccountsbyownerv2\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://www.helius.dev/docs/ja/api-reference/rpc/http/gettokenaccountsbyownerv2\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt-BR\" href=\"https://www.helius.dev/docs/pt-BR/api-reference/rpc/http/gettokenaccountsbyownerv2\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://www.helius.dev/docs/ko/api-reference/rpc/http/gettokenaccountsbyownerv2\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://www.helius.dev/docs/de/api-reference/rpc/http/gettokenaccountsbyownerv2\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://www.helius.dev/docs/fr/api-reference/rpc/http/gettokenaccountsbyownerv2\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://www.helius.dev/docs/es/api-reference/rpc/http/gettokenaccountsbyownerv2\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"id\" href=\"https://www.helius.dev/docs/id/api-reference/rpc/http/gettokenaccountsbyownerv2\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ru\" href=\"https://www.helius.dev/docs/ru/api-reference/rpc/http/gettokenaccountsbyownerv2\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://www.helius.dev/docs/api-reference/rpc/http/gettokenaccountsbyownerv2\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.helius.dev/#organization\",\"name\":\"Helius\",\"url\":\"https://www.helius.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://www.helius.dev/Helius-Brandkit/Helius/PNG/Helius-Horizontal-Logo.png\"},\"sameAs\":[\"https://github.com/helius-labs\",\"https://discord.com/invite/6GXdee3gBj\",\"https://x.com/helius\",\"https://www.linkedin.com/company/heliusapi\"]},{\"@type\":\"WebSite\",\"@id\":\"https://www.helius.dev/docs#website\",\"name\":\"Helius Docs\",\"url\":\"https://www.helius.dev/docs\",\"publisher\":{\"@id\":\"https://www.helius.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.helius.dev/docs/vi/api-reference/rpc/http/gettokenaccountsbyownerv2#webpage\",\"url\":\"https://www.helius.dev/docs/vi/api-reference/rpc/http/gettokenaccountsbyownerv2\",\"name\":\"getTokenAccountsByOwnerV2\",\"description\":\"getTokenAccountsByOwnerV2 là phiên bản nâng cao của getTokenAccountsByOwner, hỗ trợ phân trang bằng con trỏ và cập nhật changedSinceSlot cho các danh mục token Solana lớn.\",\"dateModified\":\"2026-09-25T19:40:03.529Z\",\"isPartOf\":{\"@id\":\"https://www.helius.dev/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.helius.dev/docs/vi/api-reference/rpc/http/gettokenaccountsbyownerv2#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.helius.dev/docs/vi/api-reference/rpc/http/gettokenaccountsbyownerv2#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API dữ liệu \u0026 RPC\",\"item\":\"https://www.helius.dev/docs/api-reference/data-apis\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Solana RPC\",\"item\":\"https://www.helius.dev/docs/vi/api-reference/rpc/http-methods\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"getTokenAccountsByOwnerV2\",\"item\":\"https://www.helius.dev/docs/vi/api-reference/rpc/http/gettokenaccountsbyownerv2\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://www.helius.dev/docs/vi/api-reference/rpc/http/gettokenaccountsbyownerv2#apireference\",\"headline\":\"getTokenAccountsByOwnerV2\",\"name\":\"getTokenAccountsByOwnerV2\",\"description\":\"getTokenAccountsByOwnerV2 là phiên bản nâng cao của getTokenAccountsByOwner, hỗ trợ phân trang bằng con trỏ và cập nhật changedSinceSlot cho các danh mục token Solana lớn.\",\"url\":\"https://www.helius.dev/docs/vi/api-reference/rpc/http/gettokenaccountsbyownerv2\",\"mainEntityOfPage\":{\"@id\":\"https://www.helius.dev/docs/vi/api-reference/rpc/http/gettokenaccountsbyownerv2#webpage\"},\"dateModified\":\"2026-09-25T19:40:03.529Z\",\"publisher\":{\"@id\":\"https://www.helius.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://www.helius.dev/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Helius Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Helius Docs","nav":{"global":{"anchors":[]},"languages":[{"language":"en","pages":[{"title":"en","href":"/api-reference/rpc/http/gettokenaccountsbyownerv2"}]},{"language":"zh","banner":{"content":"新功能:试用 Parsed Events Scan API,在任意地址的历史记录中查找任何交易。[了解更多](/docs/zh/api-reference/parsed-events/scan)","dismissible":true},"pages":[{"title":"zh","href":"/zh/api-reference/rpc/http/gettokenaccountsbyownerv2"}]},{"language":"ja","banner":{"content":"新機能:Parsed Events Scan API を使用して、任意のアドレスの履歴全体からあらゆるトランザクションを検索できます。[詳細を見る](/docs/ja/api-reference/parsed-events/scan)","dismissible":true},"pages":[{"title":"ja","href":"/ja/api-reference/rpc/http/gettokenaccountsbyownerv2"}]},{"language":"pt-BR","banner":{"content":"NOVO: Experimente a API de varredura de eventos analisados para encontrar qualquer transação no histórico de qualquer endereço. [Saiba mais](/docs/pt-BR/api-reference/parsed-events/scan)","dismissible":true},"pages":[{"title":"pt-BR","href":"/pt-BR/api-reference/rpc/http/gettokenaccountsbyownerv2"}]},{"language":"ko","banner":{"content":"신규: Parsed Events Scan API를 사용하여 모든 주소의 기록에서 원하는 트랜잭션을 찾아보세요. [자세히 알아보기](/docs/ko/api-reference/parsed-events/scan)","dismissible":true},"pages":[{"title":"ko","href":"/ko/api-reference/rpc/http/gettokenaccountsbyownerv2"}]},{"language":"de","banner":{"content":"NEU: Probiere die Parsed Events Scan API aus, um Transaktionen im Verlauf einer beliebigen Adresse zu finden. [Mehr erfahren](/docs/de/api-reference/parsed-events/scan)","dismissible":true},"pages":[{"title":"de","href":"/de/api-reference/rpc/http/gettokenaccountsbyownerv2"}]},{"language":"fr","banner":{"content":"NOUVEAU : essayez l’API Parsed Events Scan pour trouver n’importe quelle transaction dans l’historique de n’importe quelle adresse. [En savoir plus](/docs/fr/api-reference/parsed-events/scan)","dismissible":true},"pages":[{"title":"fr","href":"/fr/api-reference/rpc/http/gettokenaccountsbyownerv2"}]},{"language":"es","banner":{"content":"NUEVO: Prueba la API Parsed Events Scan para encontrar cualquier transacción en el historial de cualquier dirección. [Más información](/docs/es/api-reference/parsed-events/scan)","dismissible":true},"pages":[{"title":"es","href":"/es/api-reference/rpc/http/gettokenaccountsbyownerv2"}]},{"language":"id","banner":{"content":"BARU: Coba Parsed Events Scan API untuk menemukan transaksi apa pun di seluruh riwayat alamat mana pun. [Pelajari lebih lanjut](/docs/id/api-reference/parsed-events/scan)","dismissible":true},"pages":[{"title":"id","href":"/id/api-reference/rpc/http/gettokenaccountsbyownerv2"}]},{"language":"vi","banner":{"content":"MỚI: Hãy thử Parsed Events Scan API để tìm bất kỳ giao dịch nào trong toàn bộ lịch sử của bất kỳ địa chỉ nào. [Tìm hiểu thêm](/docs/vi/api-reference/parsed-events/scan)","dismissible":true},"tabs":[{"tab":"Tài liệu","pages":[{"title":"Tài liệu","href":"/vi"}]},{"tab":"Tài liệu tham chiếu API","groups":[{"group":"Bắt đầu","pages":[{"title":"Tài liệu tham khảo API Solana: Danh sách đầy đủ","sidebarTitle":"Tổng quan","href":"/vi/api-reference"},{"title":"Xác thực","href":"/vi/api-reference/authentication"},{"title":"URL và điểm cuối RPC Solana","sidebarTitle":"Điểm cuối","href":"/vi/api-reference/endpoints"}]},{"group":"Truyền dữ liệu \u0026 lắng nghe sự kiện","root":{"title":"Data Streaming API Reference","href":"/api-reference/data-streaming"},"expanded":true,"pages":[{"group":"LaserStream gRPC","icon":"bolt","pages":[{"title":"API gRPC LaserStream","sidebarTitle":"Tổng quan","href":"/vi/api-reference/laserstream-grpc"},{"title":"Đăng ký","href":"/vi/api-reference/laserstream/grpc/subscribe"},{"title":"SubscribeReplayInfo","href":"/vi/api-reference/laserstream/grpc/subscribereplayinfo"},{"title":"GetBlockHeight","href":"/vi/api-reference/laserstream/grpc/getblockheight"},{"title":"GetLatestBlockhash","href":"/vi/api-reference/laserstream/grpc/getlatestblockhash"},{"title":"GetSlot","href":"/vi/api-reference/laserstream/grpc/getslot"},{"title":"GetVersion","href":"/vi/api-reference/laserstream/grpc/getversion"},{"title":"IsBlockhashValid","href":"/vi/api-reference/laserstream/grpc/isblockhashvalid"},{"title":"Ping","href":"/vi/api-reference/laserstream/grpc/ping"}]},{"group":"LaserStream WebSocket","icon":"signal-stream","pages":[{"title":"Các phương thức WebSocket của LaserStream","sidebarTitle":"Tổng quan","href":"/vi/api-reference/rpc/websocket-methods"},{"title":"transactionSubscribe","sidebarTitle":"transactionSubscribe","href":"/vi/api-reference/rpc/websocket/transactionsubscribe"},{"title":"accountSubscribe","sidebarTitle":"accountSubscribe","href":"/vi/api-reference/rpc/websocket/accountsubscribe"},{"title":"accountUnsubscribe","sidebarTitle":"accountUnsubscribe","href":"/vi/api-reference/rpc/websocket/accountunsubscribe"},{"title":"blockSubscribe","sidebarTitle":"blockSubscribe","href":"/vi/api-reference/rpc/websocket/blocksubscribe"},{"title":"blockUnsubscribe","sidebarTitle":"blockUnsubscribe","href":"/vi/api-reference/rpc/websocket/blockunsubscribe"},{"title":"logsSubscribe","sidebarTitle":"logsSubscribe","href":"/vi/api-reference/rpc/websocket/logssubscribe"},{"title":"logsUnsubscribe","sidebarTitle":"logsUnsubscribe","href":"/vi/api-reference/rpc/websocket/logsunsubscribe"},{"title":"programSubscribe","sidebarTitle":"programSubscribe","href":"/vi/api-reference/rpc/websocket/programsubscribe"},{"title":"programUnsubscribe","sidebarTitle":"programUnsubscribe","href":"/vi/api-reference/rpc/websocket/programunsubscribe"},{"title":"rootSubscribe","sidebarTitle":"rootSubscribe","href":"/vi/api-reference/rpc/websocket/rootsubscribe"},{"title":"rootUnsubscribe","sidebarTitle":"rootUnsubscribe","href":"/vi/api-reference/rpc/websocket/rootunsubscribe"},{"title":"signatureSubscribe","sidebarTitle":"signatureSubscribe","href":"/vi/api-reference/rpc/websocket/signaturesubscribe"},{"title":"signatureUnsubscribe","sidebarTitle":"signatureUnsubscribe","href":"/vi/api-reference/rpc/websocket/signatureunsubscribe"},{"title":"slotSubscribe","sidebarTitle":"slotSubscribe","href":"/vi/api-reference/rpc/websocket/slotsubscribe"},{"title":"slotsUpdatesSubscribe","sidebarTitle":"slotsUpdatesSubscribe","href":"/vi/api-reference/rpc/websocket/slotsupdatessubscribe"},{"title":"slotsUpdatesUnsubscribe","sidebarTitle":"slotsUpdatesUnsubscribe","href":"/vi/api-reference/rpc/websocket/slotsupdatesunsubscribe"},{"title":"slotUnsubscribe","sidebarTitle":"slotUnsubscribe","href":"/vi/api-reference/rpc/websocket/slotunsubscribe"},{"title":"voteSubscribe","sidebarTitle":"voteSubscribe","href":"/vi/api-reference/rpc/websocket/votesubscribe"},{"title":"voteUnsubscribe","sidebarTitle":"voteUnsubscribe","href":"/vi/api-reference/rpc/websocket/voteunsubscribe"}]},{"group":"Luồng đã phân tích","icon":"wave-square","pages":[{"title":"Tài liệu tham chiếu Parsed Streams","sidebarTitle":"Tổng quan","href":"/vi/api-reference/parsed-streams/overview"},{"title":"parsedTransactionSubscribe","sidebarTitle":"parsedTransactionSubscribe","href":"/vi/api-reference/parsed-streams/parsedtransactionsubscribe"},{"title":"parsedTransactionUnsubscribe","sidebarTitle":"parsedTransactionUnsubscribe","href":"/vi/api-reference/parsed-streams/parsedtransactionunsubscribe"},{"title":"describeProgram","sidebarTitle":"describeProgram","href":"/vi/api-reference/parsed-streams/describeprogram"}]},{"group":"Webhook","icon":"webhook","pages":[{"title":"API Webhooks","sidebarTitle":"Tổng quan","href":"/vi/api-reference/webhooks"},{"title":"Tạo Webhook","sidebarTitle":"Tạo Webhook","openapi":"openapi/webhooks.yaml POST /v0/webhooks","href":"/vi/api-reference/webhooks/create-webhook"},{"title":"Lấy Webhook","sidebarTitle":"Lấy Webhook","openapi":"openapi/webhooks.yaml GET /v0/webhooks/{webhookID}","href":"/vi/api-reference/webhooks/get-webhook"},{"title":"Lấy tất cả webhook","sidebarTitle":"Lấy tất cả webhook","openapi":"openapi/webhooks.yaml GET /v0/webhooks","href":"/vi/api-reference/webhooks/get-all-webhooks"},{"title":"Cập nhật webhook","sidebarTitle":"Cập nhật webhook","openapi":"openapi/webhooks.yaml PUT /v0/webhooks/{webhookID}","href":"/vi/api-reference/webhooks/update-webhook"},{"title":"Bật/tắt Webhook","sidebarTitle":"Bật/tắt Webhook","openapi":"openapi/webhooks.yaml PATCH /v0/webhooks/{webhookID}","href":"/vi/api-reference/webhooks/toggle-webhook"},{"title":"Xóa Webhook","sidebarTitle":"Xóa Webhook","openapi":"openapi/webhooks.yaml DELETE /v0/webhooks/{webhookID}","href":"/vi/api-reference/webhooks/delete-webhook"}]}]},{"group":"API dữ liệu \u0026 RPC","root":{"title":"Solana Data APIs and RPC Reference","href":"/api-reference/data-apis"},"expanded":true,"pages":[{"group":"Solana RPC","icon":"server","pages":[{"title":"Các phương thức RPC và tài liệu tham khảo API của Solana","sidebarTitle":"Tổng quan","href":"/vi/api-reference/rpc/http-methods"},{"title":"getAccountInfo","sidebarTitle":"getAccountInfo","openapi":"vi/openapi/rpc-http/getAccountInfo.yaml POST /","href":"/vi/api-reference/rpc/http/getaccountinfo"},{"title":"getAgGenesisCert","sidebarTitle":"getAgGenesisCert","openapi":"vi/openapi/rpc-http/getAgGenesisCert.yaml POST /","href":"/vi/api-reference/rpc/http/getaggenesiscert"},{"title":"getBalance","sidebarTitle":"getBalance","openapi":"vi/openapi/rpc-http/getBalance.yaml POST /","href":"/vi/api-reference/rpc/http/getbalance"},{"title":"getBlock","sidebarTitle":"getBlock","openapi":"vi/openapi/rpc-http/getBlock.yaml POST /","href":"/vi/api-reference/rpc/http/getblock"},{"title":"getBlockCommitment","sidebarTitle":"getBlockCommitment","openapi":"vi/openapi/rpc-http/getBlockCommitment.yaml POST /","href":"/vi/api-reference/rpc/http/getblockcommitment"},{"title":"getBlockHeight","sidebarTitle":"getBlockHeight","openapi":"vi/openapi/rpc-http/getBlockHeight.yaml POST /","href":"/vi/api-reference/rpc/http/getblockheight"},{"title":"getBlockProduction","sidebarTitle":"getBlockProduction","openapi":"vi/openapi/rpc-http/getBlockProduction.yaml POST /","href":"/vi/api-reference/rpc/http/getblockproduction"},{"title":"getBlocks","sidebarTitle":"getBlocks","openapi":"vi/openapi/rpc-http/getBlocks.yaml POST /","href":"/vi/api-reference/rpc/http/getblocks"},{"title":"getBlocksWithLimit","sidebarTitle":"getBlocksWithLimit","openapi":"vi/openapi/rpc-http/getBlocksWithLimit.yaml POST /","href":"/vi/api-reference/rpc/http/getblockswithlimit"},{"title":"getBlockTime","sidebarTitle":"getBlockTime","openapi":"vi/openapi/rpc-http/getBlockTime.yaml POST /","href":"/vi/api-reference/rpc/http/getblocktime"},{"title":"getClusterNodes","sidebarTitle":"getClusterNodes","openapi":"vi/openapi/rpc-http/getClusterNodes.yaml POST /","href":"/vi/api-reference/rpc/http/getclusternodes"},{"title":"getEpochInfo","sidebarTitle":"getEpochInfo","openapi":"vi/openapi/rpc-http/getEpochInfo.yaml POST /","href":"/vi/api-reference/rpc/http/getepochinfo"},{"title":"getEpochSchedule","sidebarTitle":"getEpochSchedule","openapi":"vi/openapi/rpc-http/getEpochSchedule.yaml POST /","href":"/vi/api-reference/rpc/http/getepochschedule"},{"title":"getFeeForMessage","sidebarTitle":"getFeeForMessage","openapi":"vi/openapi/rpc-http/getFeeForMessage.yaml POST /","href":"/vi/api-reference/rpc/http/getfeeformessage"},{"title":"getFirstAvailableBlock","sidebarTitle":"getFirstAvailableBlock","openapi":"vi/openapi/rpc-http/getFirstAvailableBlock.yaml POST /","href":"/vi/api-reference/rpc/http/getfirstavailableblock"},{"title":"getGenesisHash","sidebarTitle":"getGenesisHash","openapi":"vi/openapi/rpc-http/getGenesisHash.yaml POST /","href":"/vi/api-reference/rpc/http/getgenesishash"},{"title":"getHealth","sidebarTitle":"getHealth","openapi":"vi/openapi/rpc-http/getHealth.yaml POST /","href":"/vi/api-reference/rpc/http/gethealth"},{"title":"getHighestSnapshotSlot","sidebarTitle":"getHighestSnapshotSlot","openapi":"vi/openapi/rpc-http/getHighestSnapshotSlot.yaml POST /","href":"/vi/api-reference/rpc/http/gethighestsnapshotslot"},{"title":"getIdentity","sidebarTitle":"getIdentity","openapi":"vi/openapi/rpc-http/getIdentity.yaml POST /","href":"/vi/api-reference/rpc/http/getidentity"},{"title":"getInflationGovernor","sidebarTitle":"getInflationGovernor","openapi":"vi/openapi/rpc-http/getInflationGovernor.yaml POST /","href":"/vi/api-reference/rpc/http/getinflationgovernor"},{"title":"getInflationRate","sidebarTitle":"getInflationRate","openapi":"vi/openapi/rpc-http/getInflationRate.yaml POST /","href":"/vi/api-reference/rpc/http/getinflationrate"},{"title":"getInflationReward","sidebarTitle":"getInflationReward","openapi":"vi/openapi/rpc-http/getInflationReward.yaml POST /","href":"/vi/api-reference/rpc/http/getinflationreward"},{"title":"getLargestAccounts","sidebarTitle":"getLargestAccounts","openapi":"vi/openapi/rpc-http/getLargestAccounts.yaml POST /","href":"/vi/api-reference/rpc/http/getlargestaccounts"},{"title":"getLatestBlockhash","sidebarTitle":"getLatestBlockhash","openapi":"vi/openapi/rpc-http/getLatestBlockhash.yaml POST /","href":"/vi/api-reference/rpc/http/getlatestblockhash"},{"title":"getLeaderSchedule","sidebarTitle":"getLeaderSchedule","openapi":"vi/openapi/rpc-http/getLeaderSchedule.yaml POST /","href":"/vi/api-reference/rpc/http/getleaderschedule"},{"title":"getMaxRetransmitSlot","sidebarTitle":"getMaxRetransmitSlot","openapi":"vi/openapi/rpc-http/getMaxRetransmitSlot.yaml POST /","href":"/vi/api-reference/rpc/http/getmaxretransmitslot"},{"title":"getMaxShredInsertSlot","sidebarTitle":"getMaxShredInsertSlot","openapi":"vi/openapi/rpc-http/getMaxShredInsertSlot.yaml POST /","href":"/vi/api-reference/rpc/http/getmaxshredinsertslot"},{"title":"getMinimumBalanceForRentExemption","sidebarTitle":"getMinimumBalanceForRentExemption","openapi":"vi/openapi/rpc-http/getMinimumBalanceForRentExemption.yaml POST /","href":"/vi/api-reference/rpc/http/getminimumbalanceforrentexemption"},{"title":"getMultipleAccounts","sidebarTitle":"getMultipleAccounts","openapi":"vi/openapi/rpc-http/getMultipleAccounts.yaml POST /","href":"/vi/api-reference/rpc/http/getmultipleaccounts"},{"title":"getProgramAccounts","sidebarTitle":"getProgramAccounts","openapi":"vi/openapi/rpc-http/getProgramAccounts.yaml POST /","href":"/vi/api-reference/rpc/http/getprogramaccounts"},{"title":"getProgramAccountsV2","sidebarTitle":"getProgramAccountsV2","openapi":"vi/openapi/rpc-http/getProgramAccountsV2.yaml POST /","href":"/vi/api-reference/rpc/http/getprogramaccountsv2"},{"title":"getRecentPerformanceSamples","sidebarTitle":"getRecentPerformanceSamples","openapi":"vi/openapi/rpc-http/getRecentPerformanceSamples.yaml POST /","href":"/vi/api-reference/rpc/http/getrecentperformancesamples"},{"title":"getRecentPrioritizationFees","sidebarTitle":"getRecentPrioritizationFees","openapi":"vi/openapi/rpc-http/getRecentPrioritizationFees.yaml POST /","href":"/vi/api-reference/rpc/http/getrecentprioritizationfees"},{"title":"getSignaturesForAddress","sidebarTitle":"getSignaturesForAddress","openapi":"vi/openapi/rpc-http/getSignaturesForAddress.yaml POST /","href":"/vi/api-reference/rpc/http/getsignaturesforaddress"},{"title":"getSignatureStatuses","sidebarTitle":"getSignatureStatuses","openapi":"vi/openapi/rpc-http/getSignatureStatuses.yaml POST /","href":"/vi/api-reference/rpc/http/getsignaturestatuses"},{"title":"getSlot","sidebarTitle":"getSlot","openapi":"vi/openapi/rpc-http/getSlot.yaml POST /","href":"/vi/api-reference/rpc/http/getslot"},{"title":"getSlotLeader","sidebarTitle":"getSlotLeader","openapi":"vi/openapi/rpc-http/getSlotLeader.yaml POST /","href":"/vi/api-reference/rpc/http/getslotleader"},{"title":"getSlotLeaders","sidebarTitle":"getSlotLeaders","openapi":"vi/openapi/rpc-http/getSlotLeaders.yaml POST /","href":"/vi/api-reference/rpc/http/getslotleaders"},{"title":"getStakeMinimumDelegation","sidebarTitle":"getStakeMinimumDelegation","openapi":"vi/openapi/rpc-http/getStakeMinimumDelegation.yaml POST /","href":"/vi/api-reference/rpc/http/getstakeminimumdelegation"},{"title":"getSupply","sidebarTitle":"getSupply","openapi":"vi/openapi/rpc-http/getSupply.yaml POST /","href":"/vi/api-reference/rpc/http/getsupply"},{"title":"getTokenAccountBalance","sidebarTitle":"getTokenAccountBalance","openapi":"vi/openapi/rpc-http/getTokenAccountBalance.yaml POST /","href":"/vi/api-reference/rpc/http/gettokenaccountbalance"},{"title":"getTokenAccountsByDelegate","sidebarTitle":"getTokenAccountsByDelegate","openapi":"vi/openapi/rpc-http/getTokenAccountsByDelegate.yaml POST /","href":"/vi/api-reference/rpc/http/gettokenaccountsbydelegate"},{"title":"getTokenAccountsByOwner","sidebarTitle":"getTokenAccountsByOwner","description":"getTokenAccountsByOwner trả về mọi tài khoản SPL Token thuộc sở hữu của một ví Solana, được lọc theo mint hoặc chương trình token, đồng thời hỗ trợ đồng bộ gia tăng bằng changedSinceSlot.","openapi":"vi/openapi/rpc-http/getTokenAccountsByOwner.yaml POST /","href":"/vi/api-reference/rpc/http/gettokenaccountsbyowner"},{"title":"getTokenAccountsByOwnerV2","sidebarTitle":"getTokenAccountsByOwnerV2","openapi":"vi/openapi/rpc-http/getTokenAccountsByOwnerV2.yaml POST /","href":"/vi/api-reference/rpc/http/gettokenaccountsbyownerv2"},{"title":"getTokenLargestAccounts","sidebarTitle":"getTokenLargestAccounts","description":"Trả về 20 tài khoản lớn nhất của một loại token SPL cụ thể.","openapi":"vi/openapi/rpc-http/getTokenLargestAccounts.yaml POST /","href":"/vi/api-reference/rpc/http/gettokenlargestaccounts"},{"title":"getTokenSupply","sidebarTitle":"getTokenSupply","openapi":"vi/openapi/rpc-http/getTokenSupply.yaml POST /","href":"/vi/api-reference/rpc/http/gettokensupply"},{"title":"getTransaction","sidebarTitle":"getTransaction","openapi":"vi/openapi/rpc-http/getTransaction.yaml POST /","href":"/vi/api-reference/rpc/http/gettransaction"},{"title":"getTransactionCount","sidebarTitle":"getTransactionCount","openapi":"vi/openapi/rpc-http/getTransactionCount.yaml POST /","href":"/vi/api-reference/rpc/http/gettransactioncount"},{"title":"getVersion","sidebarTitle":"getVersion","openapi":"vi/openapi/rpc-http/getVersion.yaml POST /","href":"/vi/api-reference/rpc/http/getversion"},{"title":"getVoteAccounts","sidebarTitle":"getVoteAccounts","openapi":"vi/openapi/rpc-http/getVoteAccounts.yaml POST /","href":"/vi/api-reference/rpc/http/getvoteaccounts"},{"title":"isBlockhashValid","sidebarTitle":"isBlockhashValid","openapi":"vi/openapi/rpc-http/isBlockhashValid.yaml POST /","href":"/vi/api-reference/rpc/http/isblockhashvalid"},{"title":"minimumLedgerSlot","sidebarTitle":"minimumLedgerSlot","openapi":"vi/openapi/rpc-http/minimumLedgerSlot.yaml POST /","href":"/vi/api-reference/rpc/http/minimumledgerslot"},{"title":"requestAirdrop","sidebarTitle":"requestAirdrop","openapi":"vi/openapi/rpc-http/requestAirdrop.yaml POST /","href":"/vi/api-reference/rpc/http/requestairdrop"},{"title":"sendTransaction","sidebarTitle":"sendTransaction","openapi":"vi/openapi/rpc-http/sendTransaction.yaml POST /","href":"/vi/api-reference/rpc/http/sendtransaction"},{"title":"simulateBundle","sidebarTitle":"simulateBundle","openapi":"vi/openapi/rpc-http/simulateBundle.yaml POST /","href":"/vi/api-reference/rpc/http/simulatebundle"},{"title":"simulateTransaction","sidebarTitle":"simulateTransaction","openapi":"vi/openapi/rpc-http/simulateTransaction.yaml POST /","href":"/vi/api-reference/rpc/http/simulatetransaction"}]},{"group":"Giao dịch","icon":"arrow-right-arrow-left","pages":[{"title":"getTransactionsForAddress","icon":"clock-rotate-left","sidebarTitle":"getTransactionsForAddress","openapi":"vi/openapi/rpc-http/getTransactionsForAddress.yaml POST /","hideApiMarker":true,"href":"/vi/api-reference/rpc/http/gettransactionsforaddress"},{"title":"getTransfersByAddress","icon":"money-bill-transfer","sidebarTitle":"getTransfersByAddress","openapi":"vi/openapi/rpc-http/getTransfersByAddress.yaml POST /","hideApiMarker":true,"href":"/vi/api-reference/rpc/http/gettransfersbyaddress"},{"group":"Giao dịch nâng cao (Cũ)","icon":"receipt","pages":[{"title":"API Giao dịch Nâng cao","sidebarTitle":"Tổng quan","href":"/vi/api-reference/enhanced-transactions/overview"},{"title":"Lấy giao dịch nâng cao","sidebarTitle":"Lấy giao dịch","openapi":"openapi/openapi-definition.yaml POST /v0/transactions","href":"/vi/api-reference/enhanced-transactions/gettransactions"},{"title":"Lấy giao dịch nâng cao theo địa chỉ","sidebarTitle":"Lấy giao dịch theo địa chỉ","openapi":"openapi/openapi-definition.yaml GET /v0/addresses/{address}/transactions","href":"/vi/api-reference/enhanced-transactions/gettransactionsbyaddress"}]}]},{"group":"Sự kiện đã phân tích","icon":"wave-pulse","pages":[{"title":"Tài liệu tham khảo về Sự kiện đã phân tích","sidebarTitle":"Tổng quan","href":"/vi/api-reference/parsed-events/overview"},{"title":"Phân tích giao dịch","sidebarTitle":"Phân tích giao dịch","openapi":"vi/openapi/parsed-events.yaml POST /v1/parsed-events/transactions","href":"/vi/api-reference/parsed-events/transactions"},{"title":"Lịch sử giao dịch đã phân tích","sidebarTitle":"Lịch sử giao dịch đã phân tích","openapi":"vi/openapi/parsed-events.yaml POST /v1/parsed-events/transaction-history","href":"/vi/api-reference/parsed-events/transaction-history"},{"title":"Quét lịch sử giao dịch","sidebarTitle":"Quét lịch sử giao dịch","openapi":"vi/openapi/parsed-events.yaml POST /v1/parsed-events/scan","href":"/vi/api-reference/parsed-events/scan"},{"title":"Liệt kê các phiên bản IDL","sidebarTitle":"Liệt kê các phiên bản IDL","openapi":"vi/openapi/parsed-events.yaml GET /v1/parsed-events/idl/{programId}","href":"/vi/api-reference/parsed-events/idl-versions"},{"title":"Lấy IDL","sidebarTitle":"Lấy IDL","openapi":"vi/openapi/parsed-events.yaml GET /v1/parsed-events/idl/{programId}/{slot}","href":"/vi/api-reference/parsed-events/idl"}]},{"group":"Token \u0026 NFT (DAS)","icon":"hexagon-image","pages":[{"title":"Tiêu chuẩn tài sản kỹ thuật số (DAS)","sidebarTitle":"Tổng quan","href":"/vi/api-reference/das"},{"title":"getAsset","openapi":"vi/openapi/das-api/getAsset.yaml POST /","href":"/vi/api-reference/das/getasset"},{"title":"getAssetBatch","openapi":"vi/openapi/das-api/getAssetBatch.yaml POST /","href":"/vi/api-reference/das/getassetbatch"},{"title":"getAssetProof","openapi":"vi/openapi/das-api/getAssetProof.yaml POST /","href":"/vi/api-reference/das/getassetproof"},{"title":"getAssetProofBatch","openapi":"vi/openapi/das-api/getAssetProofBatch.yaml POST /","href":"/vi/api-reference/das/getassetproofbatch"},{"title":"getAssetsByAuthority","openapi":"vi/openapi/das-api/getAssetsByAuthority.yaml POST /","href":"/vi/api-reference/das/getassetsbyauthority"},{"title":"getAssetsByCreator","openapi":"vi/openapi/das-api/getAssetsByCreator.yaml POST /","href":"/vi/api-reference/das/getassetsbycreator"},{"title":"getAssetsByGroup","openapi":"vi/openapi/das-api/getAssetsByGroup.yaml POST /","href":"/vi/api-reference/das/getassetsbygroup"},{"title":"getAssetsByOwner","openapi":"vi/openapi/das-api/getAssetsByOwner.yaml POST /","href":"/vi/api-reference/das/getassetsbyowner"},{"title":"getNftEditions","openapi":"vi/openapi/das-api/getNftEditions.yaml POST /","href":"/vi/api-reference/das/getnfteditions"},{"title":"getSignaturesForAsset","openapi":"vi/openapi/das-api/getSignaturesForAsset.yaml POST /","href":"/vi/api-reference/das/getsignaturesforasset"},{"title":"getTokenAccounts","openapi":"vi/openapi/das-api/getTokenAccounts.yaml POST /","href":"/vi/api-reference/das/gettokenaccounts"},{"title":"searchAssets","openapi":"vi/openapi/das-api/searchAssets.yaml POST /","href":"/vi/api-reference/das/searchassets"}]},{"group":"Ví","icon":"wallet","tag":"Beta","pages":[{"title":"Wallet API (Beta)","sidebarTitle":"Tổng quan","href":"/vi/api-reference/wallet-api"},{"title":"Lấy danh tính ví","sidebarTitle":"danh tính","openapi":"vi/openapi/wallet-api/openapi.yaml GET /v1/wallet/{wallet}/identity","href":"/vi/api-reference/wallet-api/identity"},{"title":"Lấy số dư ví","sidebarTitle":"số dư","openapi":"vi/openapi/wallet-api/openapi.yaml GET /v1/wallet/{wallet}/balances","href":"/vi/api-reference/wallet-api/balances"},{"title":"Lấy số dư token trong quá khứ","sidebarTitle":"balance-at","openapi":"vi/openapi/wallet-api/openapi.yaml GET /v1/wallet/{wallet}/balance-at","href":"/vi/api-reference/wallet-api/balance-at"},{"title":"Lấy lịch sử ví","sidebarTitle":"lịch sử","openapi":"vi/openapi/wallet-api/openapi.yaml GET /v1/wallet/{wallet}/history","href":"/vi/api-reference/wallet-api/history"},{"title":"Lấy các giao dịch chuyển của ví","sidebarTitle":"giao dịch chuyển","openapi":"vi/openapi/wallet-api/openapi.yaml GET /v1/wallet/{wallet}/transfers","href":"/vi/api-reference/wallet-api/transfers"},{"title":"Lấy thông tin cấp vốn cho ví","sidebarTitle":"funded-by","openapi":"vi/openapi/wallet-api/openapi.yaml GET /v1/wallet/{wallet}/funded-by","href":"/vi/api-reference/wallet-api/funded-by"}]},{"group":"Nén ZK","icon":"arrows-to-circle","pages":[{"title":"API ZK Compression","sidebarTitle":"Tổng quan","href":"/vi/api-reference/zk-compression"},{"title":"getCompressedAccount","sidebarTitle":"getCompressedAccount","openapi":"vi/openapi/zk-compression/getCompressedAccount.yaml POST /","href":"/vi/api-reference/zk-compression/getcompressedaccount"},{"title":"getCompressedAccountProof","sidebarTitle":"getCompressedAccountProof","openapi":"vi/openapi/zk-compression/getCompressedAccountProof.yaml POST /","href":"/vi/api-reference/zk-compression/getcompressedaccountproof"},{"title":"getCompressedAccountsByOwner","sidebarTitle":"getCompressedAccountsByOwner","openapi":"vi/openapi/zk-compression/getCompressedAccountsByOwner.yaml POST /","href":"/vi/api-reference/zk-compression/getcompressedaccountsbyowner"},{"title":"getCompressedBalance","sidebarTitle":"getCompressedBalance","openapi":"vi/openapi/zk-compression/getCompressedBalance.yaml POST /","href":"/vi/api-reference/zk-compression/getcompressedbalance"},{"title":"getCompressedBalanceByOwner","sidebarTitle":"getCompressedBalanceByOwner","openapi":"vi/openapi/zk-compression/getCompressedBalanceByOwner.yaml POST /","href":"/vi/api-reference/zk-compression/getcompressedbalancebyowner"},{"title":"getCompressedMintTokenHolders","sidebarTitle":"getCompressedMintTokenHolders","openapi":"vi/openapi/zk-compression/getCompressedMintTokenHolders.yaml POST /","href":"/vi/api-reference/zk-compression/getcompressedminttokenholders"},{"title":"getCompressedTokenAccountBalance","sidebarTitle":"getCompressedTokenAccountBalance","openapi":"vi/openapi/zk-compression/getCompressedTokenAccountBalance.yaml POST /","href":"/vi/api-reference/zk-compression/getcompressedtokenaccountbalance"},{"title":"getCompressedTokenAccountsByDelegate","sidebarTitle":"getCompressedTokenAccountsByDelegate","openapi":"vi/openapi/zk-compression/getCompressedTokenAccountsByDelegate.yaml POST /","href":"/vi/api-reference/zk-compression/getcompressedtokenaccountsbydelegate"},{"title":"getCompressedTokenAccountsByOwner","sidebarTitle":"getCompressedTokenAccountsByOwner","openapi":"vi/openapi/zk-compression/getCompressedTokenAccountsByOwner.yaml POST /","href":"/vi/api-reference/zk-compression/getcompressedtokenaccountsbyowner"},{"title":"getCompressedTokenBalancesByOwner","sidebarTitle":"getCompressedTokenBalancesByOwner","openapi":"vi/openapi/zk-compression/getCompressedTokenBalancesByOwner.yaml POST /","href":"/vi/api-reference/zk-compression/getcompressedtokenbalancesbyowner"},{"title":"getCompressedTokenBalancesByOwnerV2","sidebarTitle":"getCompressedTokenBalancesByOwnerV2","openapi":"vi/openapi/zk-compression/getCompressedTokenBalancesByOwnerV2.yaml POST /","href":"/vi/api-reference/zk-compression/getcompressedtokenbalancesbyownerv2"},{"title":"getCompressionSignaturesForAccount","sidebarTitle":"getCompressionSignaturesForAccount","openapi":"vi/openapi/zk-compression/getCompressionSignaturesForAccount.yaml POST /","href":"/vi/api-reference/zk-compression/getcompressionsignaturesforaccount"},{"title":"getCompressionSignaturesForAddress","sidebarTitle":"getCompressionSignaturesForAddress","openapi":"vi/openapi/zk-compression/getCompressionSignaturesForAddress.yaml POST /","href":"/vi/api-reference/zk-compression/getcompressionsignaturesforaddress"},{"title":"getCompressionSignaturesForOwner","sidebarTitle":"getCompressionSignaturesForOwner","openapi":"vi/openapi/zk-compression/getCompressionSignaturesForOwner.yaml POST /","href":"/vi/api-reference/zk-compression/getcompressionsignaturesforowner"},{"title":"getCompressionSignaturesForTokenOwner","sidebarTitle":"getCompressionSignaturesForTokenOwner","openapi":"vi/openapi/zk-compression/getCompressionSignaturesForTokenOwner.yaml POST /","href":"/vi/api-reference/zk-compression/getcompressionsignaturesfortokenowner"},{"title":"getIndexerHealth","sidebarTitle":"getIndexerHealth","openapi":"vi/openapi/zk-compression/getIndexerHealth.yaml POST /","href":"/vi/api-reference/zk-compression/getindexerhealth"},{"title":"getIndexerSlot","sidebarTitle":"getIndexerSlot","openapi":"vi/openapi/zk-compression/getIndexerSlot.yaml POST /","href":"/vi/api-reference/zk-compression/getindexerslot"},{"title":"getLatestCompressionSignatures","sidebarTitle":"getLatestCompressionSignatures","openapi":"vi/openapi/zk-compression/getLatestCompressionSignatures.yaml POST /","href":"/vi/api-reference/zk-compression/getlatestcompressionsignatures"},{"title":"getLatestNonVotingSignatures","sidebarTitle":"getLatestNonVotingSignatures","openapi":"vi/openapi/zk-compression/getLatestNonVotingSignatures.yaml POST /","href":"/vi/api-reference/zk-compression/getlatestnonvotingsignatures"},{"title":"getMultipleCompressedAccountProofs","sidebarTitle":"getMultipleCompressedAccountProofs","openapi":"vi/openapi/zk-compression/getMultipleCompressedAccountProofs.yaml POST /","href":"/vi/api-reference/zk-compression/getmultiplecompressedaccountproofs"},{"title":"getMultipleCompressedAccounts","sidebarTitle":"getMultipleCompressedAccounts","openapi":"vi/openapi/zk-compression/getMultipleCompressedAccounts.yaml POST /","href":"/vi/api-reference/zk-compression/getmultiplecompressedaccounts"},{"title":"getMultipleNewAddressProofs","sidebarTitle":"getMultipleNewAddressProofs","openapi":"vi/openapi/zk-compression/getMultipleNewAddressProofs.yaml POST /","href":"/vi/api-reference/zk-compression/getmultiplenewaddressproofs"},{"title":"getMultipleNewAddressProofsV2","sidebarTitle":"getMultipleNewAddressProofsV2","openapi":"vi/openapi/zk-compression/getMultipleNewAddressProofsV2.yaml POST /","href":"/vi/api-reference/zk-compression/getmultiplenewaddressProofsv2"},{"title":"getTransactionWithCompressionInfo","sidebarTitle":"getTransactionWithCompressionInfo","openapi":"vi/openapi/zk-compression/getTransactionWithCompressionInfo.yaml POST /","href":"/vi/api-reference/zk-compression/gettransactionwithcompressioninfo"},{"title":"getValidityProof","sidebarTitle":"getValidityProof","openapi":"vi/openapi/zk-compression/getValidityProof.yaml POST /","href":"/vi/api-reference/zk-compression/getvalidityproof"}]},{"group":"Vòng riêng tư Solana","icon":"shield-halved","tag":"Beta","pages":[{"title":"API Vòng riêng tư Solana","sidebarTitle":"Tổng quan","href":"/vi/api-reference/privacy"},{"title":"getEncryptedUtxosByTags","sidebarTitle":"getEncryptedUtxosByTags","openapi":"vi/openapi/privacy/getEncryptedUtxosByTags.yaml POST /v1/spr/getEncryptedUtxosByTags","href":"/vi/api-reference/privacy/getencryptedutxosbytags"},{"title":"getShieldedTransactionsByTags","sidebarTitle":"getShieldedTransactionsByTags","openapi":"vi/openapi/privacy/getShieldedTransactionsByTags.yaml POST /v1/spr/getShieldedTransactionsByTags","href":"/vi/api-reference/privacy/getshieldedtransactionsbytags"},{"title":"getShieldedTransactionsBySignature","sidebarTitle":"getShieldedTransactionsBySignature","openapi":"vi/openapi/privacy/getShieldedTransactionsBySignature.yaml POST /v1/spr/getShieldedTransactionsBySignature","href":"/vi/api-reference/privacy/getshieldedtransactionsbysignature"},{"title":"getShieldedTransactionsByNullifiers","sidebarTitle":"getShieldedTransactionsByNullifiers","openapi":"vi/openapi/privacy/getShieldedTransactionsByNullifiers.yaml POST /v1/spr/getShieldedTransactionsByNullifiers","href":"/vi/api-reference/privacy/getshieldedtransactionsbynullifiers"},{"title":"getMerkleProofs","sidebarTitle":"getMerkleProofs","openapi":"vi/openapi/privacy/getMerkleProofs.yaml POST /v1/spr/getMerkleProofs","href":"/vi/api-reference/privacy/getmerkleproofs"},{"title":"getNonInclusionProofs","sidebarTitle":"getNonInclusionProofs","openapi":"vi/openapi/privacy/getNonInclusionProofs.yaml POST /v1/spr/getNonInclusionProofs","href":"/vi/api-reference/privacy/getnoninclusionproofs"},{"title":"getNullifierQueueElements","sidebarTitle":"getNullifierQueueElements","openapi":"vi/openapi/privacy/getNullifierQueueElements.yaml POST /v1/spr/getNullifierQueueElements","href":"/vi/api-reference/privacy/getnullifierqueueelements"},{"title":"getUserRecords","sidebarTitle":"getUserRecords","openapi":"vi/openapi/privacy/getUserRecords.yaml POST /v1/spr/getUserRecords","href":"/vi/api-reference/privacy/getuserrecords"}]}]},{"group":"Giao dịch mua bán","pages":[{"group":"Preconfirmations","icon":"stopwatch","pages":[{"title":"preconfSubscribe","sidebarTitle":"preconfSubscribe","href":"/vi/api-reference/pre-confirmations/preconfsubscribe"},{"title":"preconfUnsubscribe","sidebarTitle":"preconfUnsubscribe","href":"/vi/api-reference/pre-confirmations/preconfunsubscribe"},{"title":"getPreConfCoverage","sidebarTitle":"getPreConfCoverage","href":"/vi/api-reference/pre-confirmations/getpreconfcoverage"}]},{"group":"Helius Sender","icon":"satellite-dish","pages":[{"title":"sendTransaction (Sender)","sidebarTitle":"sendTransaction","openapi":"vi/openapi/sender-api/sendTransaction.yaml POST /fast","href":"/vi/api-reference/sender/sendtransaction"},{"title":"ping","sidebarTitle":"ping","openapi":"vi/openapi/sender-api/ping.yaml GET /ping","href":"/vi/api-reference/sender/ping"},{"title":"sendBundle","sidebarTitle":"sendBundle","href":"/vi/api-reference/sender/sendbundle"},{"title":"getBundleStatuses","sidebarTitle":"getBundleStatuses","href":"/vi/api-reference/sender/getbundlestatuses"}]}]},{"group":"Gửi giao dịch","pages":[{"group":"API phí ưu tiên","icon":"star","pages":[{"title":"getPriorityFeeEstimate","sidebarTitle":"getPriorityFeeEstimate","openapi":"vi/openapi/priority-fee-api/getPriorityFeeEstimate.yaml POST /","href":"/vi/api-reference/priority-fee/getpriorityfeeestimate"}]}]},{"group":"Quản lý tài khoản","pages":[{"group":"Quản trị","icon":"shield-halved","pages":[{"title":"API quản trị","sidebarTitle":"Tổng quan","href":"/vi/api-reference/admin"},{"title":"Lấy mức sử dụng của dự án","sidebarTitle":"Lấy mức sử dụng của dự án","openapi":"vi/openapi/admin-api/getProjectUsage.yaml GET /v0/admin/projects/{id}/usage","href":"/vi/api-reference/admin/get-project-usage"}]}]}]},{"tab":"Hướng dẫn","pages":[{"title":"Hướng dẫn","href":"/vi/guides/overview"}]},{"tab":"Tác nhân","pages":[{"title":"Tác nhân","href":"/vi/agents/overview"}]},{"tab":"Câu hỏi thường gặp","pages":[{"title":"Câu hỏi thường gặp","href":"/vi/faqs"}]}]},{"language":"ru","banner":{"content":"НОВОЕ: попробуйте Parsed Events Scan API, чтобы найти любую транзакцию во всей истории любого адреса. [Подробнее](/docs/ru/api-reference/parsed-events/scan)","dismissible":true},"pages":[{"title":"ru","href":"/ru/api-reference/rpc/http/gettokenaccountsbyownerv2"}]}]},"basePath":"","title":"Phương thức RPC Solana getTokenAccountsByOwnerV2","buildId":"dpl_3pZeXn3XukjzFRgAX73A7GNDfRJ1","deploymentId":"dpl_3pZeXn3XukjzFRgAX73A7GNDfRJ1","dynamics":["10e4515597","c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["BannerMarkdown-CnC1a5XR.js","dist-BX6wab7q.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","clsx-DShopWo_.js","html-void-elements-mCSPHezU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","OpenApiReferenceProvider-CW3yP2DK.js","utils-BN0nty2W.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C8_MydSG.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Bsl5xDMQ.js","snippetPresets-DYv9OBej.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-CBlOSKZG.js","ApiExamples-9OnYPrVf.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-xr67xWGO.js","shallow-DO1aDdBF.js","getApiPlaygroundDisplay-o7cLzFL-.js","CodeSnippet-CGr2yOA8.js","CodeSnippets-CzBbqPNh.js","getPastedJson-dpi9sn5Y.js","icon-aIWHt8Pn.js","MethodPill-Bv2zLsGY.js","DuplicateIcon-DxFSz0J6.js","createIcon-uDNv6jwj.js","DynamicMarkdown-C91yhnNP.js","SectionHeading-DG_xjOLR.js","axios-vUo_bRtp.js","Markdown-B4M_Eo1P.js","AssistantPageLink-48h67xm_.js"]}