# eth\_getCode (BSC)

**Parameters**

* `DATA`, 20 Bytes - address.
* `QUANTITY|TAG` - integer block number, or the string "latest", "earliest" or "pending", see the [default block parameter.](https://ethereum.org/en/developers/docs/apis/json-rpc/)

```javascript
params: [
    '0xe9ae3261a475a27bb1028f140bc2a7c843318afd',
    'latest'
]
```

**Returns**

* `DATA` - the code from the given address.

**Request example**

{% tabs %}
{% tab title="Curl" %}

```bash
curl https://bsc.api.watchdata.io/node/jsonrpc?api_key=your_api_key
-X POST \
-d '{"jsonrpc":"2.0","method":"eth_getCode","params":["0xe9ae3261a475a27bb1028f140bc2a7c843318afd", "latest"],"id":0}'
```

{% endtab %}

{% tab title="Postman" %}

```json
URL: https://bsc.api.watchdata.io/node/jsonrpc?api_key=your_api_key
RequestType: POST
Body: 
{
    "jsonrpc":"2.0",
    "method":"eth_getCode",
    "params":["0xe9ae3261a475a27bb1028f140bc2a7c843318afd", "latest"],
    "id":0
}
```

{% endtab %}
{% endtabs %}

**Result**

```javascript
{
    "jsonrpc": "2.0",
    "id": 0,
    "result": "0x"
}
```
