# gtv.to_bytes · Rell standard library · Chromia Docs (concept)

> pure function to_ bytes(): byte_array Encode this GTV as byte array. Inverse of gtv.from_bytes(byte_array) . Returns a byte array containing an encoding of

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/gtv/to_bytes/

FUNCTION

# gtv.to\_bytes

```signature
pure function to_bytes(): byte_array
```

Encode this GTV as byte array.

Inverse of `gtv.from_bytes(byte_array)`.

**Returns**

a byte array containing an encoding of this GTV

Since 0.9.0

[View this page on docs.chromia.com](https://docs.chromia.com/pages/rell-stdlib/-rell%20-system%20-library/%5Broot%5D/gtv/to_bytes.html)Generated API reference, mirrored from the live docs
