TraceBlock returns the structured logs created during the execution of EVM and returns them as a JSON object.
(ctx context.Context, blob []byte, config *TraceConfig)
| 381 | // TraceBlock returns the structured logs created during the execution of EVM |
| 382 | // and returns them as a JSON object. |
| 383 | func (api *PrivateDebugAPI) TraceBlock(ctx context.Context, blob []byte, config *TraceConfig) ([]*txTraceResult, error) { |
| 384 | block := new(types.Block) |
| 385 | if err := rlp.Decode(bytes.NewReader(blob), block); err != nil { |
| 386 | return nil, fmt.Errorf("could not decode block: %v", err) |
| 387 | } |
| 388 | return api.traceBlock(ctx, block, config) |
| 389 | } |
| 390 | |
| 391 | // TraceBlockFromFile returns the structured logs created during the execution of |
| 392 | // EVM and returns them as a JSON object. |
no test coverage detected