go-ethereum/eth/tracers/js
Dylan Vassallo 7a149a159a
eth/tracers/js: add coinbase addr to ctx (#30231)
Add coinbase address to javascript tracer context.

This PR adds the `coinbase` address to `jsTracer.ctx`, allowing access
to the coinbase address (fee receipient) in custom JavaScript tracers.

Example usage:

```javascript
result: function(ctx) {
  return toAddress(ctx.coinbase);
}
```

This change enables custom tracers to access coinbase address,
previously unavailable, enhancing their capabilities to match built-in
tracers.
2024-08-15 16:36:35 +02:00
..
internal/tracers all: fix typos in comments (#28881) 2024-02-05 22:16:32 +01:00
bigint.go eth/tracers: package restructuring (#23857) 2021-11-09 12:09:35 +01:00
goja.go eth/tracers/js: add coinbase addr to ctx (#30231) 2024-08-15 16:36:35 +02:00
tracer_test.go eth/tracers/js: add coinbase addr to ctx (#30231) 2024-08-15 16:36:35 +02:00