Transaction Info V2 - Arb

Returns transactions and DEX trades on Arbitrum, where transaction hash is 0x7e66…8f0d: transaction hash, from, to, data, transaction value, gas, gas price and 53 more fields.

By Pere · saved 18 October 2024 · run 4 times · Bitquery API v2

What it returns

Filters

The query

query ($dataset: dataset_arg_enum, $network: evm_network, $txHash: String) {
			  EVM(dataset: $dataset, network: $network) {
				Transactions(where: {Transaction: {Hash: {is: $txHash}}}) {
				  Transaction {
					Hash
					From
					To
					Data
					Value
					Gas
					GasPrice
					GasPriceInUSD
					CostInUSD
					Cost
				  }
				  Block {
					Hash
					Number
					Time
					Date
				  }
				  ChainId
				  TransactionStatus {
					Success
					EndError
					FaultError
				  }
				  Fee {
					SenderFeeInUSD
					SenderFee
					EffectiveGasPrice
				  }
				  Receipt {
					GasUsed
				  }
				}
				DEXTrades(where: {Transaction: {Hash: {is: $txHash}}}) {
				  Trade {
					Buy {
					  Amount
					  Currency {
						Decimals
						SmartContract
						Symbol
						Name
					  }
					  Seller
					  Buyer
					  AmountInUSD
					}
					Success
					Sell {
					  Amount
					  AmountInUSD
					  Currency {
						Decimals
						Name
						Symbol
						SmartContract
					  }
					  Buyer
					  Seller
					}
					Dex {
					  SmartContract
					  ProtocolName
					  ProtocolFamily
					  ProtocolVersion
					  Pair {
						Decimals
						Name
						SmartContract
						Symbol
					  }
					}
					Sender
				  }
				  Transaction {
					Hash
					To
					Gas
					GasPriceInUSD
				  }
				  Block {
					Number
					Time
				  }
				  Fee {
					SenderFee
					SenderFeeInUSD
				  }
				}
				Calls(where: {Transaction: {Hash: {is: $txHash}}}) {
				  Arguments {
					Name
					Type
					Value {
					  ... on EVM_ABI_Integer_Value_Arg {
						integer
					  }
					  ... on EVM_ABI_String_Value_Arg {
						string
					  }
					  ... on EVM_ABI_Address_Value_Arg {
						address
					  }
					  ... on EVM_ABI_BigInt_Value_Arg {
						bigInteger
					  }
					  ... on EVM_ABI_Bytes_Value_Arg {
						hex
					  }
					  ... on EVM_ABI_Boolean_Value_Arg {
						bool
					  }
					}
				  }
				  Call {
					Signature {
					  Name
					}
				  }
				}
				Events(where: {Transaction: {Hash: {is: $txHash}}}) {
				  Arguments {
					Name
					Value {
					  ... on EVM_ABI_Integer_Value_Arg {
						integer
					  }
					  ... on EVM_ABI_String_Value_Arg {
						string
					  }
					  ... on EVM_ABI_Address_Value_Arg {
						address
					  }
					  ... on EVM_ABI_BigInt_Value_Arg {
						bigInteger
					  }
					  ... on EVM_ABI_Bytes_Value_Arg {
						hex
					  }
					  ... on EVM_ABI_Boolean_Value_Arg {
						bool
					  }
					}
					Type
				  }
				  Log {
					Signature {
					  Name
					}
				  }
				}
				Transfers(where: {Transaction: {Hash: {is: $txHash}}}) {
				  Transfer {
					Amount
					Currency {
					  Decimals
					  Name
					  SmartContract
					  Symbol
					}
					Sender
					Receiver
					Success
					AmountInUSD
				  }
				  Transaction {
					Hash
					Gas
					GasPriceInUSD
				  }
				  Block {
					Number
					Time
				  }
				  ChainId
				  Fee {
					SenderFee
					SenderFeeInUSD
				  }
				}
			  }
			}

Variables

{
  "dataset" : "archive",
  "network" : "arbitrum",
  "txHash"  : "0x7e66495d60a625a7faa7651c84fc8cfb81fce531ee79bfef13ba0db343d08f0d"
 }

Similar queries