# getTransactionWithCompressionInfo

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

POST https://solana-mainnet.g.alchemy.com/v2/{apiKey}

Returns the transaction details for the given signature, with additional compression information about accounts opened or closed.

Reference: https://www.alchemy.com/docs/chains/solana/solana-photon-api/solana-photon-api/get-transaction-with-compression-info

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| signature | string | Yes | The transaction signature to query. |

## Result

**Transaction with compression info** (object): The transaction details with associated compression state changes.

## Example

### Request

```json
{
  "jsonrpc": "2.0",
  "method": "getTransactionWithCompressionInfo",
  "params": [
    "2M5XHXBGZSwqYw6HN5TfReiamMXghcJEdwLJCyUPgoAo2kJrSt7EZnS43WRqx1Fiq95W5SV2n86oAKgDARrLLG3u"
  ],
  "id": 1
}
```

### Response

```json
{
  "jsonrpc": "2.0",
  "result": {
    "transaction": {
      "slot": 357735227,
      "transaction": [
        "AUNU25v9P3vM794BYWijMVNsZx0V1j9daXYLS3QVTX8sr/BWJGe2Kftl2eycN/7nWXxFTvfYnPhMHojwtd3XWQyAAQALEKYEOITZsTZ04JUgRlndqiUEv47ibPrNlpgoezHT5qXJDQHJoqUdq5rQgjeV7HXa15zD...(truncated)",
        "base64"
      ],
      "meta": {
        "err": null,
        "status": {
          "Ok": null
        },
        "fee": 5140,
        "preBalances": [
          47955282,
          9746107860,
          2039280,
          2039280,
          2039280,
          1,
          1,
          1141440,
          1141440,
          4534961825,
          1141440,
          1141440,
          1141441,
          1392000,
          479783646,
          0
        ],
        "postBalances": [
          47949842,
          9746108160,
          2039280,
          2039280,
          2039280,
          1,
          1,
          1141440,
          1141440,
          4534961825,
          1141440,
          1141440,
          1141441,
          1392000,
          479783646,
          0
        ],
        "innerInstructions": [
          {
            "index": 2,
            "instructions": [
              {
                "programIdIndex": 9,
                "accounts": [
                  3,
                  2,
                  0
                ],
                "data": "3JYH8H8DArPR",
                "stackHeight": 2
              },
              {
                "programIdIndex": 8,
                "accounts": [
                  0,
                  14,
                  13,
                  12,
                  15,
                  11,
                  10,
                  8,
                  8,
                  5,
                  8,
                  1
                ],
                "data": "6uxfRrqz7k19jZzDZgmuRKQLqNipRu4PLoNaJqnsnQFWPr9SQLnEgq3krLcs4YPa9WXziMwNSoSc1E3Q6q6oQsh5TLwCcDuv8zND4n8rwpstxfd61wP1Vo2v33mBGETFxp3iruMoUHndNR8me6F1p73AQStU47MCppji9SMd7Lj4wzJehsE2MczF8xC6FbYAY7NoQzVNuVwLERwMuaXZqh23bZ7MpPQxmfHqE1m7ZEozj1fMoZQfSEjxEmgid3t4HNd9y",
                "stackHeight": 2
              },
              {
                "programIdIndex": 11,
                "accounts": [
                  0,
                  15,
                  13,
                  5,
                  1
                ],
                "data": "5wPdbtbk7M4b3JSHrvzzbr316bwYx8ZFiBFo977zJUzhf4zwCVPsyxPP1T5dBc",
                "stackHeight": 3
              },
              {
                "programIdIndex": 5,
                "accounts": [
                  0,
                  1
                ],
                "data": "3Bxs48DZ3Zx6m4mD",
                "stackHeight": 4
              },
              {
                "programIdIndex": 12,
                "accounts": [],
                "data": "11112kX1UPPxVh1DqEGPf6pdnNUf7avKrEfBeq5PRHE8jM1tzTDg7Yie66SAGjHsnzsZfU4fepRwkwwuJrM1QnC6K4E6zTLSKUXPZf1ciXBExb8SZptUhCzTRPnswKfBCxBGahQhij3nS3PqQfYGphycJKjdg7pBvKySqJ3MNc4as8EhNQV2WxTDSNCkdtBMULESEGzh1BbTrW1h9kupfotKVGeRKHMbV6oKqXQTkzhoMwrfUYa5kVpNinNMJ7AT7NHKP7Kjanm5K859KCJQaiu9fsDq2uqL1xLQ3N4HJ8Yc3SQ3J2G83nUhDnneLKZwR7ri6BTmnSrao8EB8syW7JcfqcQdo7Cbk4xXofCi7AYxVErfJZPXoX4YhWcUn7AwwHmotaucbXfZdemo1Ryzw",
                "stackHeight": 3
              }
            ]
          }
        ],
        "logMessages": [
          "Program ComputeBudget111111111111111111111111111111 invoke [1]",
          "Program ComputeBudget111111111111111111111111111111 success",
          "Program ComputeBudget111111111111111111111111111111 invoke [1]"
        ],
        "preTokenBalances": [
          {
            "accountIndex": 2,
            "mint": "5iVmFCCwJTuuw7p4FrxYoZ1bUNdjg14j7uv5hMsMpump",
            "uiTokenAmount": {
              "uiAmount": null,
              "decimals": 6,
              "amount": "0",
              "uiAmountString": "0"
            },
            "owner": "GXtd2izAiMJPwMEjfgTRH3d7k9mjn4Jq3JrWFv9gySYy",
            "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
          },
          {
            "accountIndex": 3,
            "mint": "5iVmFCCwJTuuw7p4FrxYoZ1bUNdjg14j7uv5hMsMpump",
            "uiTokenAmount": {
              "uiAmount": 109290.308038,
              "decimals": 6,
              "amount": "109290308038",
              "uiAmountString": "109290.308038"
            },
            "owner": "CB4QpcVCYGwiHgbwkY3XQ1pg4KM5cPH7XqymJuz1h7xU",
            "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
          },
          {
            "accountIndex": 4,
            "mint": "5iVmFCCwJTuuw7p4FrxYoZ1bUNdjg14j7uv5hMsMpump",
            "uiTokenAmount": {
              "uiAmount": 187.239702,
              "decimals": 6,
              "amount": "187239702",
              "uiAmountString": "187.239702"
            },
            "owner": "5STUuhrL8kJ4up9spEY39VJ6ibQCFrg8x8cRV5UeEcfv",
            "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
          }
        ],
        "postTokenBalances": [
          {
            "accountIndex": 2,
            "mint": "5iVmFCCwJTuuw7p4FrxYoZ1bUNdjg14j7uv5hMsMpump",
            "uiTokenAmount": {
              "uiAmount": 108197.404958,
              "decimals": 6,
              "amount": "108197404958",
              "uiAmountString": "108197.404958"
            },
            "owner": "GXtd2izAiMJPwMEjfgTRH3d7k9mjn4Jq3JrWFv9gySYy",
            "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
          },
          {
            "accountIndex": 3,
            "mint": "5iVmFCCwJTuuw7p4FrxYoZ1bUNdjg14j7uv5hMsMpump",
            "uiTokenAmount": {
              "uiAmount": null,
              "decimals": 6,
              "amount": "0",
              "uiAmountString": "0"
            },
            "owner": "CB4QpcVCYGwiHgbwkY3XQ1pg4KM5cPH7XqymJuz1h7xU",
            "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
          },
          {
            "accountIndex": 4,
            "mint": "5iVmFCCwJTuuw7p4FrxYoZ1bUNdjg14j7uv5hMsMpump",
            "uiTokenAmount": {
              "uiAmount": 1280.142782,
              "decimals": 6,
              "amount": "1280142782",
              "uiAmountString": "1280.142782"
            },
            "owner": "5STUuhrL8kJ4up9spEY39VJ6ibQCFrg8x8cRV5UeEcfv",
            "programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
          }
        ],
        "rewards": [],
        "loadedAddresses": {
          "writable": [],
          "readonly": []
        },
        "computeUnitsConsumed": 121277
      },
      "version": 0,
      "blockTime": 1754278913
    },
    "compressionInfo": {
      "closedAccounts": [],
      "openedAccounts": [
        {
          "account": {
            "hash": "3KC9cKQhhzEPjwuyQaohM6SGaZu1ukKRZw2QRgc1sYVL",
            "address": null,
            "data": {
              "discriminator": 2,
              "data": "RhAVR6AmcnFercuAcoi9gbc/hIy3UBfL/FeQkTk7SE8I8WaM+ETZsH8YD96DZJdZG7IPY2fuP8pCP/oQV1de4R5hETEZAAAAAAAA",
              "dataHash": "mkARkU6arYpeTacykBCEytKihySvzGJXbkG5PbwhieQ"
            },
            "owner": "cTokenmWW8bLPjZEBAUgYy3zKxQZW6VKi7bqNFEVv3m",
            "lamports": 0,
            "tree": "smt6ukQDSPPYHSshQovmiRUjG9jGFq2hW9vgrDFk5Yz",
            "leafIndex": 832574,
            "seq": 877634,
            "slotCreated": 357735227
          },
          "optionalTokenData": {
            "mint": "5iVmFCCwJTuuw7p4FrxYoZ1bUNdjg14j7uv5hMsMpump",
            "owner": "bukwBg6C8VAHsuak1dPm5Teiu3eWe78xakgTL8QjVbW",
            "amount": 108197404958,
            "delegate": null,
            "state": "initialized",
            "tlv": null
          }
        }
      ]
    }
  },
  "id": 1
}
```

## Code Examples

### cURL

```bash
curl --request POST \
  --url https://solana-mainnet.g.alchemy.com/v2/docs-demo \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getTransactionWithCompressionInfo",
  "params": [
    "2M5XHXBGZSwqYw6HN5TfReiamMXghcJEdwLJCyUPgoAo2kJrSt7EZnS43WRqx1Fiq95W5SV2n86oAKgDARrLLG3u"
  ]
}'
```

### JavaScript

```javascript
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({
    jsonrpc: '2.0',
    id: 1,
    method: 'getTransactionWithCompressionInfo',
    params: [
      '2M5XHXBGZSwqYw6HN5TfReiamMXghcJEdwLJCyUPgoAo2kJrSt7EZnS43WRqx1Fiq95W5SV2n86oAKgDARrLLG3u'
    ]
  })
};

fetch('https://solana-mainnet.g.alchemy.com/v2/docs-demo', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://solana-mainnet.g.alchemy.com/v2/docs-demo"

payload = {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getTransactionWithCompressionInfo",
    "params": ["2M5XHXBGZSwqYw6HN5TfReiamMXghcJEdwLJCyUPgoAo2kJrSt7EZnS43WRqx1Fiq95W5SV2n86oAKgDARrLLG3u"]
}
headers = {"Content-Type": "application/json"}

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

print(response.text)
```

### Go

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://solana-mainnet.g.alchemy.com/v2/docs-demo"

	payload := strings.NewReader("{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"getTransactionWithCompressionInfo\",\n  \"params\": [\n    \"2M5XHXBGZSwqYw6HN5TfReiamMXghcJEdwLJCyUPgoAo2kJrSt7EZnS43WRqx1Fiq95W5SV2n86oAKgDARrLLG3u\"\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
```

### Java

```java
HttpResponse<String> response = Unirest.post("https://solana-mainnet.g.alchemy.com/v2/docs-demo")
  .header("Content-Type", "application/json")
  .body("{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"getTransactionWithCompressionInfo\",\n  \"params\": [\n    \"2M5XHXBGZSwqYw6HN5TfReiamMXghcJEdwLJCyUPgoAo2kJrSt7EZnS43WRqx1Fiq95W5SV2n86oAKgDARrLLG3u\"\n  ]\n}")
  .asString();
```

### C#

```csharp
using RestSharp;


var options = new RestClientOptions("https://solana-mainnet.g.alchemy.com/v2/docs-demo");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddJsonBody("{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"getTransactionWithCompressionInfo\",\n  \"params\": [\n    \"2M5XHXBGZSwqYw6HN5TfReiamMXghcJEdwLJCyUPgoAo2kJrSt7EZnS43WRqx1Fiq95W5SV2n86oAKgDARrLLG3u\"\n  ]\n}", false);
var response = await client.PostAsync(request);

Console.WriteLine("{0}", response.Content);

```


## OpenRPC Method Specification

```yaml
name: getTransactionWithCompressionInfo
description: Returns the transaction details for the given signature, with additional compression information about accounts opened or closed.
params:
  - name: signature
    required: true
    description: The transaction signature to query.
    schema:
      title: Solana Signature
      type: string
      description: A base-58 encoded Solana transaction signature.
examples:
  - name: getTransactionWithCompressionInfo example
    params:
      - name: signature
        value: 2M5XHXBGZSwqYw6HN5TfReiamMXghcJEdwLJCyUPgoAo2kJrSt7EZnS43WRqx1Fiq95W5SV2n86oAKgDARrLLG3u
    result:
      name: Transaction with compression info
      value:
        transaction:
          slot: 357735227
          transaction:
            - AUNU25v9P3vM794BYWijMVNsZx0V1j9daXYLS3QVTX8sr/BWJGe2Kftl2eycN/7nWXxFTvfYnPhMHojwtd3XWQyAAQALEKYEOITZsTZ04JUgRlndqiUEv47ibPrNlpgoezHT5qXJDQHJoqUdq5rQgjeV7HXa15zD...(truncated)
            - base64
          meta:
            err: null
            status:
              Ok: null
            fee: 5140
            preBalances:
              - 47955282
              - 9746107860
              - 2039280
              - 2039280
              - 2039280
              - 1
              - 1
              - 1141440
              - 1141440
              - 4534961825
              - 1141440
              - 1141440
              - 1141441
              - 1392000
              - 479783646
              - 0
            postBalances:
              - 47949842
              - 9746108160
              - 2039280
              - 2039280
              - 2039280
              - 1
              - 1
              - 1141440
              - 1141440
              - 4534961825
              - 1141440
              - 1141440
              - 1141441
              - 1392000
              - 479783646
              - 0
            innerInstructions:
              - index: 2
                instructions:
                  - programIdIndex: 9
                    accounts:
                      - 3
                      - 2
                      - 0
                    data: 3JYH8H8DArPR
                    stackHeight: 2
                  - programIdIndex: 8
                    accounts:
                      - 0
                      - 14
                      - 13
                      - 12
                      - 15
                      - 11
                      - 10
                      - 8
                      - 8
                      - 5
                      - 8
                      - 1
                    data: 6uxfRrqz7k19jZzDZgmuRKQLqNipRu4PLoNaJqnsnQFWPr9SQLnEgq3krLcs4YPa9WXziMwNSoSc1E3Q6q6oQsh5TLwCcDuv8zND4n8rwpstxfd61wP1Vo2v33mBGETFxp3iruMoUHndNR8me6F1p73AQStU47MCppji9SMd7Lj4wzJehsE2MczF8xC6FbYAY7NoQzVNuVwLERwMuaXZqh23bZ7MpPQxmfHqE1m7ZEozj1fMoZQfSEjxEmgid3t4HNd9y
                    stackHeight: 2
                  - programIdIndex: 11
                    accounts:
                      - 0
                      - 15
                      - 13
                      - 5
                      - 1
                    data: 5wPdbtbk7M4b3JSHrvzzbr316bwYx8ZFiBFo977zJUzhf4zwCVPsyxPP1T5dBc
                    stackHeight: 3
                  - programIdIndex: 5
                    accounts:
                      - 0
                      - 1
                    data: 3Bxs48DZ3Zx6m4mD
                    stackHeight: 4
                  - programIdIndex: 12
                    accounts: []
                    data: 11112kX1UPPxVh1DqEGPf6pdnNUf7avKrEfBeq5PRHE8jM1tzTDg7Yie66SAGjHsnzsZfU4fepRwkwwuJrM1QnC6K4E6zTLSKUXPZf1ciXBExb8SZptUhCzTRPnswKfBCxBGahQhij3nS3PqQfYGphycJKjdg7pBvKySqJ3MNc4as8EhNQV2WxTDSNCkdtBMULESEGzh1BbTrW1h9kupfotKVGeRKHMbV6oKqXQTkzhoMwrfUYa5kVpNinNMJ7AT7NHKP7Kjanm5K859KCJQaiu9fsDq2uqL1xLQ3N4HJ8Yc3SQ3J2G83nUhDnneLKZwR7ri6BTmnSrao8EB8syW7JcfqcQdo7Cbk4xXofCi7AYxVErfJZPXoX4YhWcUn7AwwHmotaucbXfZdemo1Ryzw
                    stackHeight: 3
            logMessages:
              - Program ComputeBudget111111111111111111111111111111 invoke [1]
              - Program ComputeBudget111111111111111111111111111111 success
              - Program ComputeBudget111111111111111111111111111111 invoke [1]
            preTokenBalances:
              - accountIndex: 2
                mint: 5iVmFCCwJTuuw7p4FrxYoZ1bUNdjg14j7uv5hMsMpump
                uiTokenAmount:
                  uiAmount: null
                  decimals: 6
                  amount: '0'
                  uiAmountString: '0'
                owner: GXtd2izAiMJPwMEjfgTRH3d7k9mjn4Jq3JrWFv9gySYy
                programId: TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
              - accountIndex: 3
                mint: 5iVmFCCwJTuuw7p4FrxYoZ1bUNdjg14j7uv5hMsMpump
                uiTokenAmount:
                  uiAmount: 109290.308038
                  decimals: 6
                  amount: '109290308038'
                  uiAmountString: '109290.308038'
                owner: CB4QpcVCYGwiHgbwkY3XQ1pg4KM5cPH7XqymJuz1h7xU
                programId: TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
              - accountIndex: 4
                mint: 5iVmFCCwJTuuw7p4FrxYoZ1bUNdjg14j7uv5hMsMpump
                uiTokenAmount:
                  uiAmount: 187.239702
                  decimals: 6
                  amount: '187239702'
                  uiAmountString: '187.239702'
                owner: 5STUuhrL8kJ4up9spEY39VJ6ibQCFrg8x8cRV5UeEcfv
                programId: TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
            postTokenBalances:
              - accountIndex: 2
                mint: 5iVmFCCwJTuuw7p4FrxYoZ1bUNdjg14j7uv5hMsMpump
                uiTokenAmount:
                  uiAmount: 108197.404958
                  decimals: 6
                  amount: '108197404958'
                  uiAmountString: '108197.404958'
                owner: GXtd2izAiMJPwMEjfgTRH3d7k9mjn4Jq3JrWFv9gySYy
                programId: TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
              - accountIndex: 3
                mint: 5iVmFCCwJTuuw7p4FrxYoZ1bUNdjg14j7uv5hMsMpump
                uiTokenAmount:
                  uiAmount: null
                  decimals: 6
                  amount: '0'
                  uiAmountString: '0'
                owner: CB4QpcVCYGwiHgbwkY3XQ1pg4KM5cPH7XqymJuz1h7xU
                programId: TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
              - accountIndex: 4
                mint: 5iVmFCCwJTuuw7p4FrxYoZ1bUNdjg14j7uv5hMsMpump
                uiTokenAmount:
                  uiAmount: 1280.142782
                  decimals: 6
                  amount: '1280142782'
                  uiAmountString: '1280.142782'
                owner: 5STUuhrL8kJ4up9spEY39VJ6ibQCFrg8x8cRV5UeEcfv
                programId: TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
            rewards: []
            loadedAddresses:
              writable: []
              readonly: []
            computeUnitsConsumed: 121277
          version: 0
          blockTime: 1754278913
        compressionInfo:
          closedAccounts: []
          openedAccounts:
            - account:
                hash: 3KC9cKQhhzEPjwuyQaohM6SGaZu1ukKRZw2QRgc1sYVL
                address: null
                data:
                  discriminator: 2
                  data: RhAVR6AmcnFercuAcoi9gbc/hIy3UBfL/FeQkTk7SE8I8WaM+ETZsH8YD96DZJdZG7IPY2fuP8pCP/oQV1de4R5hETEZAAAAAAAA
                  dataHash: mkARkU6arYpeTacykBCEytKihySvzGJXbkG5PbwhieQ
                owner: cTokenmWW8bLPjZEBAUgYy3zKxQZW6VKi7bqNFEVv3m
                lamports: 0
                tree: smt6ukQDSPPYHSshQovmiRUjG9jGFq2hW9vgrDFk5Yz
                leafIndex: 832574
                seq: 877634
                slotCreated: 357735227
              optionalTokenData:
                mint: 5iVmFCCwJTuuw7p4FrxYoZ1bUNdjg14j7uv5hMsMpump
                owner: bukwBg6C8VAHsuak1dPm5Teiu3eWe78xakgTL8QjVbW
                amount: 108197404958
                delegate: null
                state: initialized
                tlv: null
result:
  name: Transaction with compression info
  description: The transaction details with associated compression state changes.
  schema:
    title: Transaction With Compression Info
    type: object
    description: A Solana transaction with additional compression information.
    properties:
      compression_info:
        type: object
        properties:
          closedAccounts:
            type: array
            items:
              title: Compressed Account With Optional Token Data
              type: object
              properties:
                account:
                  title: Compressed Account
                  type: object
                  properties:
                    address:
                      title: Pubkey
                      type: string
                      description: Base-58 encoded public key.
                    data:
                      title: Compressed Account Data
                      type: object
                      properties:
                        discriminator:
                          title: Unsigned Integer
                          type: integer
                          description: An unsigned 64-bit integer.
                        data:
                          title: Base64 String
                          type: string
                          description: A base-64 encoded string.
                        dataHash:
                          title: Hash
                          type: string
                          description: A 32-byte hash represented as a base-58 string.
                    hash:
                      title: Hash
                      type: string
                      description: A 32-byte hash represented as a base-58 string.
                    lamports:
                      title: Unsigned Integer
                      type: integer
                      description: An unsigned 64-bit integer.
                    leafIndex:
                      title: Unsigned Integer
                      type: integer
                      description: An unsigned 64-bit integer.
                    owner:
                      title: Pubkey
                      type: string
                      description: Base-58 encoded public key.
                    seq:
                      title: Unsigned Integer
                      type: integer
                      description: An unsigned 64-bit integer.
                    slotCreated:
                      title: Unsigned Integer
                      type: integer
                      description: An unsigned 64-bit integer.
                    tree:
                      title: Pubkey
                      type: string
                      description: Base-58 encoded public key.
                optionalTokenData:
                  title: Compressed Token Data
                  type: object
                  properties:
                    mint:
                      title: Pubkey
                      type: string
                      description: Base-58 encoded public key.
                    owner:
                      title: Pubkey
                      type: string
                      description: Base-58 encoded public key.
                    amount:
                      title: Unsigned Integer
                      type: integer
                      description: An unsigned 64-bit integer.
                    delegate:
                      title: Pubkey
                      type: string
                      description: Base-58 encoded public key.
                    state:
                      title: Account State
                      type: string
                      enum:
                        - initialized
                        - frozen
                    tlv:
                      title: Base64 String
                      type: string
                      description: A base-64 encoded string.
          openedAccounts:
            type: array
            items:
              title: Compressed Account With Optional Token Data
              type: object
              properties:
                account:
                  title: Compressed Account
                  type: object
                  properties:
                    address:
                      title: Pubkey
                      type: string
                      description: Base-58 encoded public key.
                    data:
                      title: Compressed Account Data
                      type: object
                      properties:
                        discriminator:
                          title: Unsigned Integer
                          type: integer
                          description: An unsigned 64-bit integer.
                        data:
                          title: Base64 String
                          type: string
                          description: A base-64 encoded string.
                        dataHash:
                          title: Hash
                          type: string
                          description: A 32-byte hash represented as a base-58 string.
                    hash:
                      title: Hash
                      type: string
                      description: A 32-byte hash represented as a base-58 string.
                    lamports:
                      title: Unsigned Integer
                      type: integer
                      description: An unsigned 64-bit integer.
                    leafIndex:
                      title: Unsigned Integer
                      type: integer
                      description: An unsigned 64-bit integer.
                    owner:
                      title: Pubkey
                      type: string
                      description: Base-58 encoded public key.
                    seq:
                      title: Unsigned Integer
                      type: integer
                      description: An unsigned 64-bit integer.
                    slotCreated:
                      title: Unsigned Integer
                      type: integer
                      description: An unsigned 64-bit integer.
                    tree:
                      title: Pubkey
                      type: string
                      description: Base-58 encoded public key.
                optionalTokenData:
                  title: Compressed Token Data
                  type: object
                  properties:
                    mint:
                      title: Pubkey
                      type: string
                      description: Base-58 encoded public key.
                    owner:
                      title: Pubkey
                      type: string
                      description: Base-58 encoded public key.
                    amount:
                      title: Unsigned Integer
                      type: integer
                      description: An unsigned 64-bit integer.
                    delegate:
                      title: Pubkey
                      type: string
                      description: Base-58 encoded public key.
                    state:
                      title: Account State
                      type: string
                      enum:
                        - initialized
                        - frozen
                    tlv:
                      title: Base64 String
                      type: string
                      description: A base-64 encoded string.
      transaction:
        type: object
        description: An encoded confirmed transaction with status meta.
```
