> For the complete documentation index, see [llms.txt](https://docs.seismic.systems/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.seismic.systems/clients/python/abis/make-withdrawal-credentials.md).

# make\_withdrawal\_credentials

Build 32-byte ETH1 withdrawal credentials from an Ethereum address. The returned value is passed as `withdrawal_credentials` when calling [`compute_deposit_data_root`](/clients/python/abis/compute-deposit-data-root.md) and the deposit contract's `deposit()` function.

## Signature

```python
def make_withdrawal_credentials(address: str) -> bytes
```

## Parameters

| Parameter | Type  | Description                                                |
| --------- | ----- | ---------------------------------------------------------- |
| `address` | `str` | Hex-encoded Ethereum address (with or without `0x` prefix) |

## Returns

`bytes` — 32-byte withdrawal credentials.

Raises `ValueError` if the decoded address is not exactly 20 bytes.

## Output Format

```
┌──────┬──────────────┬──────────────────────┐
│ 0x01 │ 11 zero bytes│ 20-byte address      │
└──────┴──────────────┴──────────────────────┘
 1 byte  11 bytes       20 bytes = 32 total
```

* **`0x01`** — ETH1-style withdrawal credential type byte
* **11 zero bytes** — reserved padding
* **20-byte address** — the Ethereum address that can withdraw funds

## Example

```python
from seismic_web3 import make_withdrawal_credentials

credentials = make_withdrawal_credentials(
    "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
)

assert len(credentials) == 32
assert credentials[0] == 0x01
assert credentials[1:12] == b"\x00" * 11
print(credentials.hex())
```

## Notes

* Accepts addresses with or without `0x`/`0X` prefix
* Case-insensitive — both checksummed and lowercase addresses produce the same result
* This function only creates ETH1 credentials (type `0x01`), not BLS credentials (type `0x00`)

## See Also

* [compute\_deposit\_data\_root](/clients/python/abis/compute-deposit-data-root.md) — Uses `withdrawal_credentials` as input
* [Deposit Contract](/clients/python/abis/deposit-contract.md) — ABI, address, and deposit requirements


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.seismic.systems/clients/python/abis/make-withdrawal-credentials.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
