# getAssetOriginById · FT4 TypeScript client · Chromia Docs (concept)

> getAssetOriginById(
    connection: Connection ,
    id: BufferId,
): Promise<Buffer<ArrayBufferLike> | null> Retrieves the brid of the origin chain for th

Source: https://docs.chromia.com/pages/ft4-ts-client/functions/crosschain.getAssetOriginById/

Function

# getAssetOriginById

* ```signature
  getAssetOriginById(
      connection: Connection,
      id: BufferId,
  ): Promise<Buffer<ArrayBufferLike> | null>
  ```

  Retrieves the brid of the origin chain for the specified asset

  #### Parameters

  + connection: [Connection](https://docs.chromia.com/pages/ft4-ts-client/interfaces/ft-session.Connection/)

    the connection to use to query the blockchain
  + id: BufferId

    the id of the asset to fetch the origin for

  #### Returns Promise<Buffer<ArrayBufferLike> | null>

  brid of the origin chain, or null if it was not found

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-ts-client/functions/crosschain.getAssetOriginById.html)Generated API reference, mirrored from the live docs
