# eth\_getCode

Returns the compiled smart contract code, if any, at a given address.

**Parameters**[**​**](https://docs.constellationnetwork.io/stargazer/APIReference/ethereumRPCAPI/eth_getCode#parameters)

| Name    | Type      | Description              |
| ------- | --------- | ------------------------ |
| Address | `Address` | Address of the contract. |

**Return Type**[**​**](https://docs.constellationnetwork.io/stargazer/APIReference/ethereumRPCAPI/eth_getCode#return-type)

`HexString` - The compiled smart contract code, if any.

**Example**[**​**](https://docs.constellationnetwork.io/stargazer/APIReference/ethereumRPCAPI/eth_getCode#example)

```typescript
await provider.request({
  method: "eth_getCode",
  params: ["0x06012c8cf97bead5deae237070f9587f8e7a266d"],
});
// "0x60606040..."
```
