Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ots_* namespace to anvil reference #973

Merged
merged 2 commits into from
Aug 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions src/reference/anvil/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,42 @@ Returns a summary of all the transactions currently pending for inclusion in the
`txpool_content`
Returns the details of all transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only

##### Otterscan Methods
The `ots_*` namespace implements the [Otterscan specification](https://github.com/otterscan/otterscan/blob/develop/docs/custom-jsonrpc.md)

`ots_getApiLevel`
Used by Otterscan to check if it\'s connecting to a compatible node and display a friendly message if it is not.

`ots_getInternalOperations`
Returns the internal ETH transfers inside a transaction.

`ots_hasCode`
Check if a certain address contains a deployed code.

`ots_getTransactionError`
Extract the transaction raw error output.

`ots_traceTransaction`
Extract all variations of calls, contract creation and self-destructs and returns a call tree.

`ots_getBlockDetails`
Tailor-made and expanded version of eth_getBlock* for block details page in Otterscan.

`ots_getBlockTransactions`
Get paginated transactions for a certain block, And removes some verbose fields such logs.

`ots_searchTransactionsBefore`
Gets paginated inbound/outbound transaction calls for a certain address, and before a given target block

`ots_searchTransactionsAfter`
Gets paginated inbound/outbound transaction calls for a certain address, and after a given target block

`ots_getTransactionBySenderAndNonce`
Gets the transaction hash for a certain sender address, given its nonce.

`ots_getContractCreator`
Gets the transaction hash and the address which created a contract.


### OPTIONS
#### General Options
Expand Down