SolanaFM
Search
K

Accounts

Get a specific account

Retrieve information of an account by the given account hash.
get
https://api.solana.fm
/v0/accounts/{account-hash}
Returns the account information for the given account hash.
Parameters
Path
account-hash*
string
The account hash to query for.
Responses
200
Returns the account information for the given account hash.
404: Not Found
The specified account was not found / The specified resource was not found.
500: Internal Server Error
The server encountered an unexpected condition that prevented it from fulfilling the request.

Usage Example

Request
Response

Sample Request URL

https://api.solana.fm/v0/accounts/Cs23cJMRuahuKh5oNhVmLhM2UrtaZLULLF3HqrxfTnHc

Sample Response

{
"status": "success",
"message": "Retrieved an account",
"result": {
"accountHash": "Cs23cJMRuahuKh5oNhVmLhM2UrtaZLULLF3HqrxfTnHc",
"data": {
"friendlyName": "EVw8uChLbfXm6qJnSQkzmmRmcq2YZLFqzL8p5Vb43DvU",
"abbreviation": "",
"category": "validators",
"voteKey": "EVw8uChLbfXm6qJnSQkzmmRmcq2YZLFqzL8p5Vb43DvU",
"network": "mainnet",
"tags": [],
"logoURI": null,
"flag": null
}
}
}

Get multiple accounts

Batch retrieve accounts with the ability to customise the query.
post
https://api.solana.fm
/v0/accounts
Returns an array of account information for the given account hashes.
Parameters
Body
accountHashes*
array
The account hashes to query for.
fields
array
Specify the field objects to be returned.
Available array fields:
"data", "onchain", "*"
Responses
200
Returns an array of account information.
422: Unprocessable Entity
The server unable to parse request body.
500: Internal Server Error
The server encountered an unexpected condition that prevented it from fulfilling the request.

Usage Example

Request
Response

Sample Request Body

{
"accountHashes": [
"3yhjyVbAUuYn2ETdELMB2GH75YrV1BzfA5pATcNJ2vjN",
"SysvarC1ock11111111111111111111111111111111",
"SysvarS1otHashes111111111111111111111111111",
"Vote111111111111111111111111111111111111111"
],
"fields": [
"data", "onchain"
]
}

Sample Response

{
"status": "success",
"message": "Retrieved 4 account(s)",
"result": [
{
"accountHash": "3yhjyVbAUuYn2ETdELMB2GH75YrV1BzfA5pATcNJ2vjN",
"onchain": {
"lamports": 302410326313,
"data": {
"program": "vote",
"parsed": {
"info": {
"authorizedVoters": [
{
"authorizedVoter": "HdAgKNJJVpjQ9yviR3J8yDGXHb6n84W2eYPPxzKw9P3g",
"epoch": 414
}
],
"authorizedWithdrawer": "8UMbSW47Xvng9Ts1vm9UWKeFm3whgY8Xwoy72hMoUxt5",
"commission": 10,
"epochCredits": [
{
"credits": "43147366",
"epoch": 351,
"previousCredits": "42787914"
},
...,
{
"credits": "66656194",
"epoch": 414,
"previousCredits": "66354109"
}
],
"lastTimestamp": {
"slot": 179224455,
"timestamp": 1677146312
},
"nodePubkey": "HdAgKNJJVpjQ9yviR3J8yDGXHb6n84W2eYPPxzKw9P3g",
"priorVoters": [],
"rootSlot": 179224414,
"votes": [
{
"confirmationCount": 31,
"slot": 179224415
},
...,
{
"confirmationCount": 1,
"slot": 179224455
}
]
},
"type": "vote"
},
"space": 3731
},
"owner": "Vote111111111111111111111111111111111111111",
"executable": false,
"rentEpoch": 361
}
},
{
"accountHash": "SysvarC1ock11111111111111111111111111111111",
"onchain": {
"lamports": 1169280,
"data": {
"program": "sysvar",
"parsed": {
"info": {
"epoch": 414,
"epochStartTimestamp": 1676953805,
"leaderScheduleEpoch": 415,
"slot": 179224457,
"unixTimestamp": 1677146312
},
"type": "clock"
},
"space": 40
},
"owner": "Sysvar1111111111111111111111111111111111111",
"executable": false,
"rentEpoch": 361
}
},
{
"accountHash": "SysvarS1otHashes111111111111111111111111111",
"onchain": {
"lamports": 143487360,
"data": {
"program": "sysvar",
"parsed": {
"info": [
{
"hash": "7d5GXgbkmQAZx2V7XjSRysToZAGpVJarLcufLigoRDwS",
"slot": 179224456
},
...,
{
"hash": "4f9XEc65h1aE7qkuJGiRxdPscv5ree74Sx1RgcHt57fn",
"slot": 179223878
}
],
"type": "slotHashes"
},
"space": 20488
},
"owner": "Sysvar1111111111111111111111111111111111111",
"executable": false,
"rentEpoch": 361
}
},
{
"accountHash": "Vote111111111111111111111111111111111111111",
"data": {
"friendlyName": "Vote Program",
"abbreviation": "",
"category": "programs",
"voteKey": null,
"network": "custom,devnet,testnet,mainnet",
"tags": [],
"logoURI": null,
"flag": null
},
"onchain": {
"lamports": 1,
"data": [
"c29sYW5hX3ZvdGVfcHJvZ3JhbQ==",
"base64"
],
"owner": "NativeLoader1111111111111111111111111111111",
"executable": true,
"rentEpoch": 0
}
}
]
}