curl --request POST \
--url https://api.allium.so/api/v1/developer/solana/raw/transaction_and_instructions \
--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": {},
"instructions": [
{
"txn_id": "<string>",
"txn_index": 123,
"instruction_index": 123,
"program_id": "<string>",
"parsed": "<string>",
"program_name": "<string>",
"accounts": [
"<string>"
],
"data": "<string>",
"data_hex": "<string>",
"is_voting": true,
"parent_tx_signer": "<string>",
"parent_tx_success": true,
"parsed_type": "<string>",
"inner_instruction_count": 123
}
],
"inner_instructions": [
{
"txn_id": "<string>",
"txn_index": 123,
"instruction_index": 123,
"inner_instruction_index": 123,
"program_id": "<string>",
"parsed": "<string>",
"program_name": "<string>",
"accounts": [
"<string>"
],
"data": "<string>",
"data_hex": "<string>",
"is_voting": true,
"parent_tx_signer": "<string>",
"parent_tx_success": true,
"parsed_type": "<string>",
"parent_instruction_program_id": "<string>"
}
]
}
]
A block contains multiple transactions which in term contain multiple instructions.
Learn more in the official Solana documentation here.
The body is of type TransactionBasedRequest · object[]
.
Successful Response
The response is of type TransactionAndInstructions · object[]
.
curl --request POST \
--url https://api.allium.so/api/v1/developer/solana/raw/transaction_and_instructions \
--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": {},
"instructions": [
{
"txn_id": "<string>",
"txn_index": 123,
"instruction_index": 123,
"program_id": "<string>",
"parsed": "<string>",
"program_name": "<string>",
"accounts": [
"<string>"
],
"data": "<string>",
"data_hex": "<string>",
"is_voting": true,
"parent_tx_signer": "<string>",
"parent_tx_success": true,
"parsed_type": "<string>",
"inner_instruction_count": 123
}
],
"inner_instructions": [
{
"txn_id": "<string>",
"txn_index": 123,
"instruction_index": 123,
"inner_instruction_index": 123,
"program_id": "<string>",
"parsed": "<string>",
"program_name": "<string>",
"accounts": [
"<string>"
],
"data": "<string>",
"data_hex": "<string>",
"is_voting": true,
"parent_tx_signer": "<string>",
"parent_tx_success": true,
"parsed_type": "<string>",
"parent_instruction_program_id": "<string>"
}
]
}
]
curl --request POST \
--url https://api.allium.so/api/v1/developer/solana/raw/transaction_and_instructions \
--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": {},
"instructions": [
{
"txn_id": "<string>",
"txn_index": 123,
"instruction_index": 123,
"program_id": "<string>",
"parsed": "<string>",
"program_name": "<string>",
"accounts": [
"<string>"
],
"data": "<string>",
"data_hex": "<string>",
"is_voting": true,
"parent_tx_signer": "<string>",
"parent_tx_success": true,
"parsed_type": "<string>",
"inner_instruction_count": 123
}
],
"inner_instructions": [
{
"txn_id": "<string>",
"txn_index": 123,
"instruction_index": 123,
"inner_instruction_index": 123,
"program_id": "<string>",
"parsed": "<string>",
"program_name": "<string>",
"accounts": [
"<string>"
],
"data": "<string>",
"data_hex": "<string>",
"is_voting": true,
"parent_tx_signer": "<string>",
"parent_tx_success": true,
"parsed_type": "<string>",
"parent_instruction_program_id": "<string>"
}
]
}
]
A block contains multiple transactions which in term contain multiple instructions.
Learn more in the official Solana documentation here.
The body is of type TransactionBasedRequest · object[]
.
Successful Response
The response is of type TransactionAndInstructions · object[]
.
curl --request POST \
--url https://api.allium.so/api/v1/developer/solana/raw/transaction_and_instructions \
--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": {},
"instructions": [
{
"txn_id": "<string>",
"txn_index": 123,
"instruction_index": 123,
"program_id": "<string>",
"parsed": "<string>",
"program_name": "<string>",
"accounts": [
"<string>"
],
"data": "<string>",
"data_hex": "<string>",
"is_voting": true,
"parent_tx_signer": "<string>",
"parent_tx_success": true,
"parsed_type": "<string>",
"inner_instruction_count": 123
}
],
"inner_instructions": [
{
"txn_id": "<string>",
"txn_index": 123,
"instruction_index": 123,
"inner_instruction_index": 123,
"program_id": "<string>",
"parsed": "<string>",
"program_name": "<string>",
"accounts": [
"<string>"
],
"data": "<string>",
"data_hex": "<string>",
"is_voting": true,
"parent_tx_signer": "<string>",
"parent_tx_success": true,
"parsed_type": "<string>",
"parent_instruction_program_id": "<string>"
}
]
}
]