---
title: "code"
description: "Get the source for a deployed contract"
source: https://docs.genlayer.com/api-references/genlayer-cli/contracts/code
last_updated: 2026-03-27
---

# code

Get the source for a deployed contract

### Usage

`$ genlayer code [options] <contractAddress>`

### Arguments

- `<contractAddress>`

### Options

| Short | Long | Description | Required | Default |
| --- | --- | --- | :---: | --- |
|  | --rpc &lt;rpcUrl&gt; | RPC URL for the network | No |  |
| -h | --help | display help for command | No |  |
