Skip to main content

ots_searchTransactionsAfter RPC Method

Returns a list of transactions that were sent after the specified block number.

Updated on
Nov 2, 2023

ots_searchTransactionsAfter RPC Method

Parameters

address
string
REQUIRED
The ETH address to be searched
blockNumber
integer
REQUIRED
It searches for occurrences of address before blockNumber. A value of 0 means the search is to be done from the most recent block
pageSize
integer
REQUIRED
The number of transaction it may return

Returns

result
object
It is true, if the address contains the bytecode, otherwise false
txs
object
An array of transaction objects with the following fields:
blockHash
The hash of the block where this log was in. Null when it's a pending log
blockNumber
The block number where this log was in. Null when it's a pending log
from
The address of the sender
gas
The gas provided by the sender, encoded as hexadecimal
gasPrice
The gas price provided by the sender in wei, encoded as hexadecimal
maxFeePerGas
The maximum fee per gas set in the transaction
maxPriorityFeePerGas
The maximum priority gas fee set in the transaction
hash
The hash of the transaction
input
The data sent along with the transaction
nonce
The number of transactions made by the sender before this one encoded as hexadecimal
to
The address of the receiver. Null when it's a contract creation transaction
transactionIndex
The integer of the transaction's index position that the log was created from. Null when it's a pending log
value
The value transferred in wei encoded as hexadecimal
type
The transaction type
accessList
A list of addresses and storage keys that the transaction plans to access
chainId
The chain id of the transaction, if any
v
The standardized V field of the signature
r
The R field of the signature
s
The S field of the signature
reciept
object
A transaction receipt object, or null when no receipt was found
blockHash
The hash of the block. null when pending
blockNumber
The block number
contractAddress
The contract address created if the transaction was a contract creation, otherwise null
cumulativeGasUsed
The total amount of gas used when this transaction was executed in the block
effectiveGasPrice
The actual value per gas deducted from the sender account
from
The address of the sender
gasUsed
The amount of gas used by this specific transaction alone
logs
An array of log objects that generated this transaction
address
The address from which this log was generated
topics
An array of zero to four 32 Bytes DATA of indexed log arguments. In Solidity, the first topic is the hash of the signature of the event (e.g. Deposit(address, bytes32, uint256)), except you declare the event with the anonymous specifier
data
The 32 byte non-indexed argument of the log
blockNumber
The block number where this log was in
transactionHash
The hash of the transaction from which this log was created from. null if the log is pending
transactionIndex
The transactions index position from which this log was created from. null if the log is pending
blockHash
The hash of the block where this log was in
logIndex
The integer of log index position in the block encoded as hexadecimal. null if the log is pending
removed
It is true if log was removed, due to a chain reorganization and false if it's a valid log
logsBloom
The bloom filter for light clients to quickly retrieve related logs
status
It is either 1 (success) or 0 (failure) encoded as a hexadecimal
to
The address of the receiver. null when it's a contract creation transaction
transactionHash
The hash of the transaction
transactionIndex
An index of the transaction in the block
type
The value type
firstpage
boolean
It is true if it is a first page
lastpage
boolean
It is true if it is a last page
Request
1
curl https://docs-demo.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method":"ots_searchTransactionsAfter","params":["0x690B9A9E9aa1C9dB991C7721a92d351Db4FaC990",0,25],"id":1,"jsonrpc":"2.0"}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free