Stream Zeta Transactions

This channel provides information on any incoming zeta transactions. It will provide an update any time a zeta transaction is confirmed on chain with instruction's the user has specified.

Subscribe

Be aware that this endpoint is using a beta URL. wss://beta-ny.solana.dex.blxrbdn.com/ws

Parameters:

ParameterTypeDescription

instructions

[]string

Specify which instructions(s) to fetch.

Subscribe sample:

wscat --header "Authorization: $AUTH_HEADER" \
-c wss://beta-ny.solana.dex.blxrbdn.com/ws  --execute '{"jsonrpc": "2.0", "id": 1, "method": "subscribe", "params": ["GetZetaTransactionStream", {"instructions": ["PlacePerpOrderV4"]}]}' --wait 10000

Event Result Details:

FieldTypeDescription

slot

string

The slot number

transaction

TransactionZeta

Transaction information of the found transaction

meta

TransactionMeta

Meta information of the found transaction

TransactionZeta

FieldTypeDescription

signatures

string

signature of the zeta transaction

message

TransactionMessageZeta

the transaction message of the zeta transaction

poolAddress

string

Program address of the pool.

inToken

string

Base token symbol of the pool.

TransactionMeta

ParameterDescription

err

string

description of error in transaction

errored

uint64

did transaction error?

fee

uint64

transaction fee

pre_balances

uint64

balance in wallet before transaction

post_balances

uint64

balance in wallet after transaction

inner_instructions

[] TransactionMetaInnerInstruction

inner instructions inside of transaction

log_messages

string

any logs related to transaction

pre_token_balances

[] TransactionMetaTokenBalance

token balances in wallet before transaction

post_token_balances

[] TransactionMetaTokenBalance

token balances in wallet after transaction

Sample event:

{
  "jsonrpc": "2.0",
  "method": "subscribe",
  "params": {
    "subscription": "309cf033-f340-4928-b3d5-d25f28114300",
    "result": {
      "slot": "277138313",
      "transaction": {
        "signatures": [
          "234BqaSEwqDqjcWwnNTHxHXR9zXtrM11dPu2HN7axKNQuTeP88a7TeUJsoKYj9hFFT1q1uVXzHBHyLFqyzbpZGoM",
          "234BqaSEwqDqjcWwnNTHxHXR9zXtrM11dPu2HN7axKNQuTeP88a7TeUJsoKYj9hFFT1q1uVXzHBHyLFqyzbpZGoM"
        ],
        "message": {
          "header": null,
          "accountKeys": [
            "9sdisaXk3eLnqdu2bu4Y5AQ2g14jPpXF8Jt3vjnUri3o",
            "5h5WtXRW6Hy5s846DU8GSPgoDgnxKFUFK3mYiEy9jqEv",
            "5xSPk47YF3HCoU4wA4HR6KmzQK9whiA8HeUMBcGo9HXn",
            "8cCG6AuMs8aqMN9vLdueYL6Q1kW35EGPBKcRDSyzKMga",
            "9Lsei9qMonizuuusFgdh94djt7fpgktGmh9PRi2j2GUQ",
            "APx2hFAqRAtbN6N7LdvYzDCtqGMGWySqVuvg9iMWfkZ8",
            "bb9su66FxkRvHvNWu4agtdUBnr2G9NAZs4DXFWimiUP",
            "BWhHgAgRXoyLfTU33iZ31ME2bk6WTYZxSr74eUqJsJUM",
            "c3kdNx3v9iM4TPUvsZVrgXc5fS9CQz11BBnS62VsB8e",
            "CQqgakTZWSu8LncGjzecUR5opXWmT6vXU9M9UG8iXpe1",
            "FT174PMhUBye3qvdy2T1qncDc5pUsc5hTpn7xuXrCPXn",
            "GfmT1VSuVpeAwJvFzXShUWpVwzMQ2ztRhuFsqEhCchdK",
            "H2RDp9L9Tfzp5jzAssNoMCpK2MmLrwJv1wnorEaHS2jJ",
            "VdYom29m1yXemVTYFm1cw8Ycu7yzScxyzvG4P63wfW2",
            "11111111111111111111111111111111",
            "8eExPiLp47xbSDYkbuem4qnLUpbLTfZBeFuEJoh6EUr2",
            "AV1UvTbycnqMe4JqHKGCqhACRd2m79YmtEUJrnCUQ3GT",
            "AVNMK6wiGfppdQNg9WKfMRBXefDPGZFh2f3o1fRbgN8n",
            "BbKFezrmKD83PeVh74958MzgFAue1pZptipSNLz5ccpk",
            "ComputeBudget111111111111111111111111111111",
            "GATaRyQr7hq52GQWq3TsCditpNhkgq5ad4EM14JoRMLu",
            "SysvarRent111111111111111111111111111111111",
            "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
            "zDEXqXEG7gAyxb1Kg9mK5fPnUdENCGKzWrM21RMdWRq",
            "ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD"
          ],
          "recentBlockhash": "KMvvpVu3C2pt7t4oERZ1RBczMf9NCbbRbg4qQre9wn6",
          "instructions": [
            {
              "programIdIndex": 19,
              "accounts": [],
              "data": "S3ExR1dL"
            },
            {
              "programIdIndex": 19,
              "accounts": [],
              "data": "M2V1NGNxQk5xdFFG"
            },
            {
              "programIdIndex": 24,
              "accounts": [
                0,
                15,
                18,
                9,
                23,
                22,
                17,
                6,
                21,
                1,
                5,
                12,
                8,
                3,
                13,
                2,
                7,
                10,
                13,
                20,
                14,
                14,
                4,
                16,
                11
              ],
              "data": "S0J1anNxVVp0WjhoaUxHbjJnSHhzUVBBV3E2Nml5eUxpUE11Mms0amtydXlTY0E3aFZDVnFMSnNUeXhtZDFq"
            }
          ]
        }
      },
      "meta": {
        "err": "",
        "errored": false,
        "fee": "0",
        "preBalances": [
          "2431528493",
          "11163840",
          "2039280",
          "457104960",
          "1461600",
          "36609600",
          "23357760",
          "2039280",
          "457104960",
          "25369200",
          "2039280",
          "67797360",
          "1825496640",
          "2039280",
          "1",
          "7906560",
          "0",
          "0",
          "82161280",
          "1",
          "1823520",
          "1009200",
          "934087680",
          "1141440",
          "1141440"
        ],
        "postBalances": [
          "2431462621",
          "11163840",
          "2039280",
          "457104960",
          "1461600",
          "36609600",
          "23357760",
          "2039280",
          "457104960",
          "25369200",
          "2039280",
          "67797360",
          "1825496640",
          "2039280",
          "1",
          "7906560",
          "0",
          "0",
          "82161280",
          "1",
          "1823520",
          "1009200",
          "934087680",
          "1141440",
          "1141440"
        ],
        "innerInstructions": [],
        "logMessages": [
          "Program ComputeBudget111111111111111111111111111111 invoke [1]",
          "Program ComputeBudget111111111111111111111111111111 success",
          "Program ComputeBudget111111111111111111111111111111 invoke [1]",
          "Program ComputeBudget111111111111111111111111111111 success",
          "Program ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD invoke [1]",
          "Program log: Instruction: PlacePerpOrderV4",
          "Program data: f8oPt8jABAypi/XQuNRGcs8yQKUJ6BqMNDL6817sBo22yKT16O1S3oPWDrdXeIID9+1QgheOqRyLW/Xxl4PJ9YtLXQl4KineCl3U////////xUXjdRAAAACH/////////17IBAAAAAAA8MnD//////8=",
          "Program ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD consumed 49949 of 299700 compute units",
          "Program ZETAxsqBRek56DhiGXrn75yj2NHU3aYUnxvHXpkf3aD success"
        ],
        "preTokenBalances": [
          {
            "accountIndex": 0,
            "mint": "",
            "uiTokenAmount": null,
            "owner": ""
          },
          {
            "accountIndex": 0,
            "mint": "",
            "uiTokenAmount": null,
            "owner": ""
          },
          {
            "accountIndex": 0,
            "mint": "",
            "uiTokenAmount": null,
            "owner": ""
          },
          {
            "accountIndex": 0,
            "mint": "",
            "uiTokenAmount": null,
            "owner": ""
          },
          {
            "accountIndex": 0,
            "mint": "",
            "uiTokenAmount": null,
            "owner": ""
          },
          {
            "accountIndex": 0,
            "mint": "",
            "uiTokenAmount": null,
            "owner": ""
          },
          {
            "accountIndex": 0,
            "mint": "",
            "uiTokenAmount": null,
            "owner": ""
          },
          {
            "accountIndex": 0,
            "mint": "",
            "uiTokenAmount": null,
            "owner": ""
          },
          {
            "accountIndex": 0,
            "mint": "11111111111111111111111111111111",
            "uiTokenAmount": null,
            "owner": ""
          },
          {
            "accountIndex": 0,
            "mint": "11111111111111111111111111111111",
            "uiTokenAmount": null,
            "owner": ""
          },
          {
            "accountIndex": 0,
            "mint": "11111111111111111111111111111111",
            "uiTokenAmount": null,
            "owner": ""
          },
          {
            "accountIndex": 0,
            "mint": "11111111111111111111111111111111",
            "uiTokenAmount": null,
            "owner": ""
          },
          {
            "accountIndex": 2,
            "mint": "EU9uvnDuqNgunfmnxNAjhYi8iEKV3m7gnr5vatg2tgPj",
            "uiTokenAmount": {
              "uiAmount": 0,
              "decimals": 0,
              "amount": "2448559000",
              "uiAmountString": "2448559000"
            },
            "owner": "9THgzK3cNrKqiigrxaC2iCtuWaxrymSqLsB2HLvqNeak"
          },
          {
            "accountIndex": 7,
            "mint": "9Lsei9qMonizuuusFgdh94djt7fpgktGmh9PRi2j2GUQ",
            "uiTokenAmount": {
              "uiAmount": 0,
              "decimals": 6,
              "amount": "627033346500000",
              "uiAmountString": "627033346.5"
            },
            "owner": "9THgzK3cNrKqiigrxaC2iCtuWaxrymSqLsB2HLvqNeak"
          },
          {
            "accountIndex": 10,
            "mint": "EU9uvnDuqNgunfmnxNAjhYi8iEKV3m7gnr5vatg2tgPj",
            "uiTokenAmount": {
              "uiAmount": 0,
              "decimals": 0,
              "amount": "394188000",
              "uiAmountString": "394188000"
            },
            "owner": "AVNMK6wiGfppdQNg9WKfMRBXefDPGZFh2f3o1fRbgN8n"
          },
          {
            "accountIndex": 13,
            "mint": "9Lsei9qMonizuuusFgdh94djt7fpgktGmh9PRi2j2GUQ",
            "uiTokenAmount": {
              "uiAmount": 0,
              "decimals": 6,
              "amount": "73341969500000",
              "uiAmountString": "73341969.5"
            },
            "owner": "AVNMK6wiGfppdQNg9WKfMRBXefDPGZFh2f3o1fRbgN8n"
          }
        ],
        "postTokenBalances": [
          {
            "accountIndex": 0,
            "mint": "",
            "uiTokenAmount": null,
            "owner": ""
          },
          {
            "accountIndex": 0,
            "mint": "",
            "uiTokenAmount": null,
            "owner": ""
          },
          {
            "accountIndex": 0,
            "mint": "",
            "uiTokenAmount": null,
            "owner": ""
          },
          {
            "accountIndex": 0,
            "mint": "",
            "uiTokenAmount": null,
            "owner": ""
          },
          {
            "accountIndex": 0,
            "mint": "",
            "uiTokenAmount": null,
            "owner": ""
          },
          {
            "accountIndex": 0,
            "mint": "",
            "uiTokenAmount": null,
            "owner": ""
          },
          {
            "accountIndex": 0,
            "mint": "",
            "uiTokenAmount": null,
            "owner": ""
          },
          {
            "accountIndex": 0,
            "mint": "",
            "uiTokenAmount": null,
            "owner": ""
          },
          {
            "accountIndex": 0,
            "mint": "11111111111111111111111111111111",
            "uiTokenAmount": null,
            "owner": ""
          },
          {
            "accountIndex": 0,
            "mint": "11111111111111111111111111111111",
            "uiTokenAmount": null,
            "owner": ""
          },
          {
            "accountIndex": 0,
            "mint": "11111111111111111111111111111111",
            "uiTokenAmount": null,
            "owner": ""
          },
          {
            "accountIndex": 0,
            "mint": "11111111111111111111111111111111",
            "uiTokenAmount": null,
            "owner": ""
          },
          {
            "accountIndex": 2,
            "mint": "EU9uvnDuqNgunfmnxNAjhYi8iEKV3m7gnr5vatg2tgPj",
            "uiTokenAmount": {
              "uiAmount": 0,
              "decimals": 0,
              "amount": "2448559000",
              "uiAmountString": "2448559000"
            },
            "owner": "9THgzK3cNrKqiigrxaC2iCtuWaxrymSqLsB2HLvqNeak"
          },
          {
            "accountIndex": 7,
            "mint": "9Lsei9qMonizuuusFgdh94djt7fpgktGmh9PRi2j2GUQ",
            "uiTokenAmount": {
              "uiAmount": 0,
              "decimals": 6,
              "amount": "627033346500000",
              "uiAmountString": "627033346.5"
            },
            "owner": "9THgzK3cNrKqiigrxaC2iCtuWaxrymSqLsB2HLvqNeak"
          },
          {
            "accountIndex": 10,
            "mint": "EU9uvnDuqNgunfmnxNAjhYi8iEKV3m7gnr5vatg2tgPj",
            "uiTokenAmount": {
              "uiAmount": 0,
              "decimals": 0,
              "amount": "394188000",
              "uiAmountString": "394188000"
            },
            "owner": "AVNMK6wiGfppdQNg9WKfMRBXefDPGZFh2f3o1fRbgN8n"
          },
          {
            "accountIndex": 13,
            "mint": "9Lsei9qMonizuuusFgdh94djt7fpgktGmh9PRi2j2GUQ",
            "uiTokenAmount": {
              "uiAmount": 0,
              "decimals": 6,
              "amount": "73341969500000",
              "uiAmountString": "73341969.5"
            },
            "owner": "AVNMK6wiGfppdQNg9WKfMRBXefDPGZFh2f3o1fRbgN8n"
          }
        ]
      }
    }
  }
}

For more information about Zeta Markets, visit their documentation: https://docs.zeta.markets/build-with-zeta/program-abi

Last updated