Parameters
array
string
Loading...
object
object
Loading...
commitment
string
Loading...
finalized
string
Loading...
confirmed
string
Loading...
processed
string
Loading...
encoding
string
Loading...
dataSlice
string
Loading...
minContextSlot
integer
Loading...
Returns
result
Loading...
context
Loading...
apiVersion
Loading...
slot
Loading...
value
Loading...
data
Loading...
executable
Loading...
lamports
Loading...
owner
Loading...
rentEpoch
Loading...
space
Loading...
Request
1curl https://docs-demo.solana-mainnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"jsonrpc": "2.0","id": 1,"method": "getMultipleAccounts","params": [["vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg","4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"],{"dataSlice": {"offset": 0,"length": 0}}]}'
1curl https://docs-demo.solana-mainnet.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"jsonrpc": "2.0","id": 1,"method": "getMultipleAccounts","params": [["vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg","4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"],{"dataSlice": {"offset": 0,"length": 0}}]}'
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.solana-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.host, url.port)8https.use_ssl = true910request = Net::HTTP::Post.new(url)11request["Content-Type"] = "application/json"12request.body = JSON.dump({13"jsonrpc": "2.0",14"id": 1,15"method": "getMultipleAccounts",16"params": [17[18"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",19"4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"20],21{22"dataSlice": {23"offset": 0,24"length": 025}26}27]28})2930response = https.request(request)31puts response.read_body32
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.solana-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.host, url.port)8https.use_ssl = true910request = Net::HTTP::Post.new(url)11request["Content-Type"] = "application/json"12request.body = JSON.dump({13"jsonrpc": "2.0",14"id": 1,15"method": "getMultipleAccounts",16"params": [17[18"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",19"4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"20],21{22"dataSlice": {23"offset": 0,24"length": 025}26}27]28})2930response = https.request(request)31puts response.read_body32
1import { createSolanaRpc, address } from "@solana/kit";23(async () => {4const solanaRpc = createSolanaRpc("https://docs-demo.solana-mainnet.quiknode.pro/");56const publicKey1 = address("vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg");7const publicKey2 = address("4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA");89try {10const accountsInfo = await solanaRpc.getMultipleAccounts([publicKey1, publicKey2]).send();11console.log(accountsInfo);12} catch (error) {13console.error("Error fetching multiple accounts info:", error);14}15})();
1import { createSolanaRpc, address } from "@solana/kit";23(async () => {4const solanaRpc = createSolanaRpc("https://docs-demo.solana-mainnet.quiknode.pro/");56const publicKey1 = address("vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg");7const publicKey2 = address("4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA");89try {10const accountsInfo = await solanaRpc.getMultipleAccounts([publicKey1, publicKey2]).send();11console.log(accountsInfo);12} catch (error) {13console.error("Error fetching multiple accounts info:", error);14}15})();
1const web3 = require("@solana/web3.js");2(async () => {3const publicKey = new web3.PublicKey(4"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg"5);6const solana = new web3.Connection("https://docs-demo.solana-mainnet.quiknode.pro/");7const publicKey2 = new web3.PublicKey(8"4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"9);10console.log(await solana.getMultipleAccountsInfo([publicKey, publicKey2]));11})();12
1const web3 = require("@solana/web3.js");2(async () => {3const publicKey = new web3.PublicKey(4"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg"5);6const solana = new web3.Connection("https://docs-demo.solana-mainnet.quiknode.pro/");7const publicKey2 = new web3.PublicKey(8"4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"9);10console.log(await solana.getMultipleAccountsInfo([publicKey, publicKey2]));11})();12
1from jsonrpcclient import request, parse, Ok2import logging3import requests4response = requests.post("https://docs-demo.solana-mainnet.quiknode.pro/", json=request("getMultipleAccounts", params=[["vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg","4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"],{"dataSlice": {"offset": 0,"length": 0}}]))5parsed = parse(response.json())6if isinstance(parsed, Ok):7print(parsed.result)8else:9logging.error(parsed.message)
1from jsonrpcclient import request, parse, Ok2import logging3import requests4response = requests.post("https://docs-demo.solana-mainnet.quiknode.pro/", json=request("getMultipleAccounts", params=[["vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg","4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"],{"dataSlice": {"offset": 0,"length": 0}}]))5parsed = parse(response.json())6if isinstance(parsed, Ok):7print(parsed.result)8else:9logging.error(parsed.message)
1use reqwest::header;2use reqwest::Client;3use std::error::Error;45#[tokio::main]6async fn main() -> Result<(), Box<dyn Error>> {7let mut headers = header::HeaderMap::new();8headers.insert("Content-Type", "application/json".parse().unwrap());910let client = Client::new();11let json_data = r#"12{13"jsonrpc": "2.0",14"id": 1,15"method": "getMultipleAccounts",16"params": [17[18"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",19"4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"20],21{22"dataSlice": {23"offset": 0,24"length": 025}26}27]28}29"#;30let response = client31.post("https://docs-demo.solana-mainnet.quiknode.pro/")32.headers(headers)33.body(json_data)34.send()35.await?;3637let body = response.text().await?;38println!("{}", body);3940Ok(())41}
1use reqwest::header;2use reqwest::Client;3use std::error::Error;45#[tokio::main]6async fn main() -> Result<(), Box<dyn Error>> {7let mut headers = header::HeaderMap::new();8headers.insert("Content-Type", "application/json".parse().unwrap());910let client = Client::new();11let json_data = r#"12{13"jsonrpc": "2.0",14"id": 1,15"method": "getMultipleAccounts",16"params": [17[18"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",19"4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"20],21{22"dataSlice": {23"offset": 0,24"length": 025}26}27]28}29"#;30let response = client31.post("https://docs-demo.solana-mainnet.quiknode.pro/")32.headers(headers)33.body(json_data)34.send()35.await?;3637let body = response.text().await?;38println!("{}", body);3940Ok(())41}
1import { QuicknodeSdk } from '@quicknode/sdk'23const qn = new QuicknodeSdk({})45const result = await qn.rpc.call(6'getMultipleAccounts',7[8[9"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",10"4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"11],12{13"dataSlice": {14"offset": 0,15"length": 016}17}18],19undefined,20'https://docs-demo.solana-mainnet.quiknode.pro/'21)2223console.log(result)
1import { QuicknodeSdk } from '@quicknode/sdk'23const qn = new QuicknodeSdk({})45const result = await qn.rpc.call(6'getMultipleAccounts',7[8[9"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",10"4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"11],12{13"dataSlice": {14"offset": 0,15"length": 016}17}18],19undefined,20'https://docs-demo.solana-mainnet.quiknode.pro/'21)2223console.log(result)
1import asyncio2from quicknode_sdk import QuicknodeSdk, SdkFullConfig34async def main():5qn = QuicknodeSdk(SdkFullConfig(api_key=None))6result = await qn.rpc.call(7"getMultipleAccounts",8[9[10"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",11"4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"12],13{14"dataSlice": {15"offset": 0,16"length": 017}18}19],20endpoint_url="https://docs-demo.solana-mainnet.quiknode.pro/",21)22print(result)2324asyncio.run(main())
1import asyncio2from quicknode_sdk import QuicknodeSdk, SdkFullConfig34async def main():5qn = QuicknodeSdk(SdkFullConfig(api_key=None))6result = await qn.rpc.call(7"getMultipleAccounts",8[9[10"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",11"4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"12],13{14"dataSlice": {15"offset": 0,16"length": 017}18}19],20endpoint_url="https://docs-demo.solana-mainnet.quiknode.pro/",21)22print(result)2324asyncio.run(main())
1require "quicknode_sdk"23qn = QuicknodeSdk::SDK.from_config(api_key: nil)45result = qn.rpc.call(6method: "getMultipleAccounts",7params: [8[9"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",10"4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"11],12{13"dataSlice" => {14"offset" => 0,15"length" => 016}17}18],19endpoint_url: "https://docs-demo.solana-mainnet.quiknode.pro/"20)2122puts result
1require "quicknode_sdk"23qn = QuicknodeSdk::SDK.from_config(api_key: nil)45result = qn.rpc.call(6method: "getMultipleAccounts",7params: [8[9"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",10"4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"11],12{13"dataSlice" => {14"offset" => 0,15"length" => 016}17}18],19endpoint_url: "https://docs-demo.solana-mainnet.quiknode.pro/"20)2122puts result
1use quicknode_sdk::{QuicknodeSdk, SdkFullConfig};23#[tokio::main]4async fn main() -> Result<(), Box<dyn std::error::Error>> {5let qn = QuicknodeSdk::new(&SdkFullConfig::keyless())?;6let result = qn7.rpc8.call(9"getMultipleAccounts",10Some(serde_json::json!([11[12"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",13"4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"14],15{16"dataSlice": {17"offset": 0,18"length": 019}20}21])),22None,23Some("https://docs-demo.solana-mainnet.quiknode.pro/".into()),24)25.await?;2627println!("{result}");28Ok(())29}
1use quicknode_sdk::{QuicknodeSdk, SdkFullConfig};23#[tokio::main]4async fn main() -> Result<(), Box<dyn std::error::Error>> {5let qn = QuicknodeSdk::new(&SdkFullConfig::keyless())?;6let result = qn7.rpc8.call(9"getMultipleAccounts",10Some(serde_json::json!([11[12"vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",13"4fYNw3dojWmQ4dXtSGE9epjRGy9pFSx62YypT7avPYvA"14],15{16"dataSlice": {17"offset": 0,18"length": 019}20}21])),22None,23Some("https://docs-demo.solana-mainnet.quiknode.pro/".into()),24)25.await?;2627println!("{result}");28Ok(())29}
Response
1{2"jsonrpc": "2.0",3"result": {4"context": {5"apiVersion": "2.1.21",6"slot": 3355017947},8"value": [9null,10{11"data": [12"",13"base64"14],15"executable": false,16"lamports": 2000000,17"owner": "11111111111111111111111111111111",18"rentEpoch": 18446744073709552000,19"space": 8020}21]22},23"id": 124}
1{2"jsonrpc": "2.0",3"result": {4"context": {5"apiVersion": "2.1.21",6"slot": 3355017947},8"value": [9null,10{11"data": [12"",13"base64"14],15"executable": false,16"lamports": 2000000,17"owner": "11111111111111111111111111111111",18"rentEpoch": 18446744073709552000,19"space": 8020}21]22},23"id": 124}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free