⚡ Test Our Private Nodes of 40+ Blockchains just for $50!

coins coins coins coins
sol
Solana (SOL)

Method: POST getSignaturesForAddress

dropdown

# getSignaturesForAddress example for Solana (SOL)

POST getSignaturesForAddress

Returns signatures for confirmed transactions that include the given address in their accountKeys list. Returns signatures backwards in time from the provided signature or most recent confirmed block

Parameters

adress - string

account address as base-58 encoded string

Config - object

Optional.

Configuration object containing the following fields: - limit: number (optional) - maximum transaction signatures to return (between 1 and 1,000, default: 1,000). - before: string (optional) - start searching backwards from this transaction signature. If not provided the search starts from the top of the highest max confirmed block. - until: string (optional) - search until this transaction signature, if found before limit reached. - commitment (optional) - "processed" is not supported. If parameter not provided, the default is "finalized".

Request

curl --location --request POST 'https://sol.getblock.io/mainnet' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "getSignaturesForAddress",
"params": ["6UFmHMgP4ErpKrdjDgya1gAfHmcC6QhWK9w8wBT7iCNo", {"limit": 5}],
"id": "getblock.io"}'


Response

{
    "jsonrpc": "2.0",
    "id": "getblock.io",
    "result": [
        {
            "err": null,
            "memo": null,
            "signature": "5h6xBEauJ3PK6SWCZ1PGjBvj8vDdWG3KpwATGy1ARAXFSDwt8GFXM7W5Ncn16wmqokgpiKRLuS83KUxyZyv2sUYv",
            "slot": 114,
            "blockTime": null
        }
    ]
}