Pinax Logo/Datasets
SolanaInstruction Calls

Column Descriptions

for solana.instruction_calls

25 rows
NameTypeDescription
tx_idTEXT
stack_heightNUMBER
compute_units_consumedNUMBER
block_previous_block_hashTEXT
block_parent_slotNUMBER
block_dateDATE
executing_accountTEXT
log_messagesARRAY
program_idTEXT
block_slotNUMBER
block_timeTIMESTAMP_NTZ
is_innerBOOLEAN
account_argumentsARRAY
feeNUMBER
inner_instructionsTEXT
tx_successBOOLEAN
dataTEXT
block_heightNUMBER
outer_executing_accountTEXT
outer_instruction_indexNUMBER
inner_executing_accountTEXT
tx_signerTEXT
tx_indexNUMBER
block_hashTEXT
inner_instruction_indexNUMBER

Sample Queries

Most Frequent Executing Account
Identifies the account that most frequently executes instructions.
SELECT
  executing_account,
  COUNT(*) AS execution_count
FROM
  solana.instruction_calls
GROUP BY
  executing_account
ORDER BY
  execution_count DESC
LIMIT
  1;
Daily Count of Successful Transactions with Inner Instructions
Counts the number of successful transactions that contain inner instructions each day.
SELECT
  block_date,
  COUNT(DISTINCT tx_id) AS successful_tx_with_inner_instructions
FROM
  solana.instruction_calls
WHERE
  tx_success = TRUE
  AND is_inner = TRUE
GROUP BY
  block_date
ORDER BY
  block_date;
Average Number of Account Arguments Per Instruction
Calculates the average number of account arguments used per instruction.
SELECT
  AVG(ARRAY_SIZE (account_arguments)) AS avg_account_arguments
FROM
  solana.instruction_calls;