Skip to content

Instantly share code, notes, and snippets.

@carsontang
Created November 4, 2021 12:22
Show Gist options
  • Save carsontang/7fec00fcb822f83e5b5c8908bbd57be8 to your computer and use it in GitHub Desktop.
Save carsontang/7fec00fcb822f83e5b5c8908bbd57be8 to your computer and use it in GitHub Desktop.
Command to pull SAMO hodlers
curl http://api.mainnet-beta.solana.com -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getProgramAccounts",
"params": [
"7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
{
"encoding": "jsonParsed",
"filters": [
{
"dataSize": 165
},
{
"memcmp": {
"offset": 32,
"bytes": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU"
}
}
]
}
]
}
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment