Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ferranbt/foundry-send-txn-repro


https://github.com/ferranbt/foundry-send-txn-repro

Last synced: 10 days ago
JSON representation

Awesome Lists containing this project

README

        

Run the rust script:

```
$ cargo run
```

This script:

- Sends a transaction to the eth_sendTransaction endpoint of an Anvil node.
- Outputs the hash of the transaction.
- Returns the JSON for the transaction.

Take the JSON from the output and put it in the `main.go` script.

```
$ go run main.go
```

This script:

- Decodes the JSON file and outputs the transaction hash and the signing hash.

The transaction hash from Anvil does not match the transaction hash from Geth.