# get_asset_origin_by_id · FT4 Rell API · Chromia Docs (concept)

> @mount("ft4.crosschain.get_ asset_ origin_ by_ id")
query get_ asset_ origin_ by_ id(asset_ id: byte_ array): byte_ array? Retrieves the origin chain RID f

Source: https://docs.chromia.com/pages/ft4-rell/-f-t4-library/lib.ft4.external.crosschain/get_asset_origin_by_id/

QUERY

# get\_asset\_origin\_by\_id

```signature
@mount("ft4.crosschain.get_asset_origin_by_id")
query get_asset_origin_by_id(asset_id: byte_array): byte_array?
```

[Source](https://gitlab.com/chromaway/ft4-lib/-/blob/development/rell/src/lib/ft4/external/crosschain/queries.rell#lines-10)

Retrieves the origin chain RID for the specified asset. If this asset does not
have an origin, which is the case if this asset is not a crosschain
asset, this query will return `null`.

**Parameters**

* **asset\_id** — id of the asset to get the origin for

**See Also**

* `core.crosschain.asset_origin` — for more information on asset origin chain

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-rell/-f-t4%20-library/lib.ft4.external.crosschain/get_asset_origin_by_id.html)Generated API reference, mirrored from the live docs
