Skip to main content
POST
/
getCompressionSignaturesForAccount
cURL
curl --request POST \
  --url https://devnet.helius-rpc.com/getCompressionSignaturesForAccount \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "test-account",
  "jsonrpc": "2.0",
  "method": "getCompressionSignaturesForAccount",
  "params": {
    "hash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP"
  }
}
'
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
id: 'test-account',
jsonrpc: '2.0',
method: 'getCompressionSignaturesForAccount',
params: {hash: '11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP'}
})
};

fetch('https://devnet.helius-rpc.com/getCompressionSignaturesForAccount', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
import requests

url = "https://devnet.helius-rpc.com/getCompressionSignaturesForAccount"

payload = {
"id": "test-account",
"jsonrpc": "2.0",
"method": "getCompressionSignaturesForAccount",
"params": { "hash": "11111112cMQwSC9qirWGjZM6gLGwW69X22mqwLLGP" }
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "id": "test-account",
  "jsonrpc": "2.0",
  "error": {
    "code": 123,
    "message": "<string>"
  },
  "result": {
    "context": {
      "slot": 100
    },
    "value": {
      "items": [
        {
          "blockTime": 1714081554,
          "signature": "5J8H5sTvEhnGcB4R8K1n7mfoiWUD9RzPVGES7e3WxC7c",
          "slot": 100
        }
      ]
    }
  }
}
{
"error": {
"code": 123,
"message": "<string>"
},
"id": "<string>",
"jsonrpc": "<string>"
}
{
"error": {
"code": 123,
"message": "<string>"
},
"id": "<string>",
"jsonrpc": "<string>"
}

Body

application/json
id
enum<string>
required

An ID to identify the request.

Available options:
test-account
jsonrpc
enum<string>
required

The version of the JSON-RPC protocol.

Available options:
2.0
method
enum<string>
required

The name of the method to invoke.

Available options:
getCompressionSignaturesForAccount
params
object
required

Response

id
enum<string>
required

An ID to identify the response.

Available options:
test-account
jsonrpc
enum<string>
required

The version of the JSON-RPC protocol.

Available options:
2.0
error
object
result
object