---
title: "Convert an address to hex-encoded Sigma byte array constant which contains script bytes"
method: GET
path: "/script/addressToBytes/{address}"
tags: ["script"]
---

# Convert an address to hex-encoded Sigma byte array constant which contains script bytes

`GET /script/addressToBytes/{address}`

## Path parameters

- `address` string, required — Encoded Ergo Address

## Response `200`

Base16-encoded Sigma byte array constant which contains script bytes

- ScriptBytes
  - `bytes` string, base16, required — Base16-encoded bytes

## Other responses

- `default` — Error

---

[API](https://skmtc.dev/ergoplatform/apis/ergo-node-api.md) · [All operations](https://skmtc.dev/ergoplatform/apis/ergo-node-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ergoplatform/ergo-node-api/revisions/a731602272c6/schema)
