> ## Documentation Index
> Fetch the complete documentation index at: https://docs.goldsky.com/llms.txt
> Use this file to discover all available pages before exploring further.

# trace_block

> Call trace_block on Goldsky Edge RPC to return Parity-style traces for every transaction in an EVM block, with curl, JavaScript, and Python examples.

## Parameters

**blockNumber** `string` *required*

Block number (hex), or `latest`

## Returns

**traces** `array`

Array of trace objects

## Example

```bash cURL theme={"dark"}
curl -X POST "https://edge.goldsky.com/standard/evm/1?key=demo" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "method": "trace_block", "params": ["latest"], "id": 1}'
```

```javascript JavaScript theme={"dark"}
const response = await fetch('https://edge.goldsky.com/standard/evm/1?key=demo', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
  "jsonrpc": "2.0",
  "method": "trace_block",
  "params": [
    "latest"
  ],
  "id": 1
})
});
const { result } = await response.json();
console.log(result);
```

```python Python theme={"dark"}
import requests

response = requests.post(
    'https://edge.goldsky.com/standard/evm/1?key=demo',
    json={
  "jsonrpc": "2.0",
  "method": "trace_block",
  "params": [
    "latest"
  ],
  "id": 1
}
)
print(response.json()['result'])
```


## Related topics

- [debug_traceBlockByHash](https://docs.goldsky.com/edge-rpc/evm/methods/debug_traceBlockByHash.md)
- [debug_traceBlockByNumber](https://docs.goldsky.com/edge-rpc/evm/methods/debug_traceBlockByNumber.md)
- [Edge EVM Sources](https://docs.goldsky.com/turbo-pipelines/sources/edge-evm.md)
- [trace_replayBlockTransactions](https://docs.goldsky.com/edge-rpc/evm/methods/trace_replayBlockTransactions.md)
- [EVM dataset schemas: blocks, transactions, logs, traces](https://docs.goldsky.com/turbo-pipelines/reference/schema/EVM-schemas.md)
