Skip to main content
POST
/
api
/
v1
/
developer
/
solana
/
raw
/
transactions
Get Transactions
curl --request POST \
  --url https://api.allium.so/api/v1/developer/solana/raw/transactions \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '[
  {
    "txn_id": "<string>",
    "block_timestamp": "2023-11-07T05:31:56Z"
  }
]'
[
  {
    "block_slot": 123,
    "block_height": 123,
    "block_timestamp": "2023-11-07T05:31:56Z",
    "block_hash": "<string>",
    "txn_id": "<string>",
    "txn_index": 123,
    "signatures": [
      "<string>"
    ],
    "fee": 123,
    "recent_block_hash": "<string>",
    "signer": "<string>",
    "log_messages": [
      "<string>"
    ],
    "success": true,
    "is_voting": true,
    "instruction_count": 123,
    "account_keys": [
      {
        "pubkey": "<string>",
        "signer": true,
        "source": "<string>",
        "writable": true
      }
    ],
    "pubkeys": [
      "<string>"
    ],
    "pre_token_balances": [
      {
        "account_index": 123,
        "account": "<string>",
        "amount": "<string>",
        "mint": "<string>",
        "owner": "<string>",
        "decimals": 123
      }
    ],
    "post_token_balances": [
      {
        "account_index": 123,
        "account": "<string>",
        "amount": "<string>",
        "mint": "<string>",
        "owner": "<string>",
        "decimals": 123
      }
    ],
    "pre_balances": [
      123
    ],
    "post_balances": [
      123
    ],
    "mint_to_decimals": {},
    "token_accounts": {},
    "sol_amounts": {}
  }
]
A block contains multiple transactions which in term contain multiple instructions. Learn more in the official Solana documentation here.

Authorizations

X-API-KEY
string
header
required

Body

application/json · TransactionBasedRequest · object[]
txn_id
string
required
block_timestamp
string<date-time>
required

Response

Successful Response

block_slot
integer
required
block_height
integer
required
block_timestamp
string<date-time>
required
block_hash
string
required
txn_id
string
required
txn_index
integer
required
signatures
string[]
required
fee
integer
required
recent_block_hash
string
required
signer
string
required
log_messages
string[]
required
success
boolean
required
is_voting
boolean
required
instruction_count
integer
required
account_keys
AccountKey · object[]
required
pubkeys
string[]
required
pre_token_balances
TokenBalance · object[]
required
post_token_balances
TokenBalance · object[]
required
pre_balances
integer[]
required
post_balances
integer[]
required
mint_to_decimals
object
required
token_accounts
object
required
sol_amounts
object
required