Skip to content

Instantly share code, notes, and snippets.

@vodolaz
Created April 1, 2025 11:56
Show Gist options
  • Save vodolaz/cdf1277212b26e1f581d3acf422c8194 to your computer and use it in GitHub Desktop.
Save vodolaz/cdf1277212b26e1f581d3acf422c8194 to your computer and use it in GitHub Desktop.
helius request
curl 'https://mainnet.helius-rpc.com/?api-key=********-****-***-****-***********' \
-H 'accept: */*' \
-H 'accept-language: en-GB,en-US;q=0.9,en;q=0.8' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'origin: https://vote.neondao.org' \
-H 'pragma: no-cache' \
-H 'priority: u=1, i' \
-H 'referer: https://vote.neondao.org/' \
-H 'sec-ch-ua: "Not(A:Brand";v="99", "Google Chrome";v="133", "Chromium";v="133"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: cross-site' \
-H 'solana-client: js/1.0.0-maintenance' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36' \
--data-raw '{
"method":"getProgramAccounts",
"jsonrpc":"2.0",
"params":[
"DRJeCVsc33fDT2khezFiMQpQiuoucFrji1A62QfbxPPT",
{
"encoding":"base64",
"commitment":"confirmed",
"filters":[
{
"memcmp":{
"offset":0,
"bytes":"K",
"encoding":"base58"
}
},
{
"memcmp":{
"offset":1,
"bytes":"9AQvVMCTEBqKFzPRG9inL9ssSVJeQhWQVARHBMy3Fo1V",
"encoding":"base58"
}
}
]
}
],
"id":"d8385c6b-5129-4aba-ab0c-ae814c97375a"
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment