go-ethereum/eth/tracers/js
Daniel Liu 1597be6879
eth/tracers/js: add coinbase addr to ctx #30231 (#1484)
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.

Co-authored-by: Dylan Vassallo <dylan.vassallo@hotmail.com>
2025-09-13 10:49:17 +08:00
..
internal/tracers eth/tracers: fix typos in comments #28881 (#1346) 2025-09-09 16:16:26 +08:00
bigint.go eth/tracers: package restructuring #23857 (#1266) 2025-08-29 05:26:36 +08:00
goja.go eth/tracers/js: add coinbase addr to ctx #30231 (#1484) 2025-09-13 10:49:17 +08:00
tracer_test.go eth/tracers/js: add coinbase addr to ctx #30231 (#1484) 2025-09-13 10:49:17 +08:00