# `FireblocksSdk.Api.Asset`
[🔗](https://github.com/csokun/fireblocks_sdk/blob/v0.2.0/lib/fireblocks_sdk/api/asset.ex#L1)

# `get`
[🔗](https://github.com/csokun/fireblocks_sdk/blob/v0.2.0/lib/fireblocks_sdk/api/asset.ex#L103)

Returns an asset by ID or legacyID.

# `list`
[🔗](https://github.com/csokun/fireblocks_sdk/blob/v0.2.0/lib/fireblocks_sdk/api/asset.ex#L85)

Retrieves all assets supported by Fireblocks in your workspace, providing extended information and enhanced performance compared to the legacy supported_assets endpoint.

Options: 
* `:blockchainId` (`t:String.t/0`) - Blockchain id of the assets

* `:assetClass`

* `:symbol` (`t:String.t/0`)

* `:scope`

* `:deprecated` (`t:boolean/0`)

* `:ids` (list of `t:String.t/0`) - A list of blockchain IDs (max 100)

* `:pageCursor` (`t:String.t/0`) - Page cursor to fetch

* `:pageSize` (`t:non_neg_integer/0`) - Items per page (max 500)

# `register`
[🔗](https://github.com/csokun/fireblocks_sdk/blob/v0.2.0/lib/fireblocks_sdk/api/asset.ex#L49)

Register a new asset to a workspace and return the newly created asset's details. Currently supported chains are:

- EVM based chains
- Stellar
- Algorand
- TRON
- NEAR
- Solana

```
  FireblocksSdk.Api.Asset.register([
    blockchainId: "ETH_TEST3",
    address: "0xe7A9as1oa38bc4da0248s179E30aa94CcF453991",
    symbol: "TST3"
  ])
```

Options: 
* `:blockchainId` (`t:String.t/0`) - Required.

* `:address` (`t:String.t/0`) - Required.

* `:symbol` (`t:String.t/0`) - Required.

# `set_price`
[🔗](https://github.com/csokun/fireblocks_sdk/blob/v0.2.0/lib/fireblocks_sdk/api/asset.ex#L67)

Set asset price for the given asset id. Returns the asset price response.

```
  FireblocksSdk.Api.Asset.set_price([
    assetId: "USD1_B75VRLGX_TQL4",
    currency: "USD",
    price: 1000
  ])
```

Options: 
* `:assetId` (`t:String.t/0`) - Required.

* `:currency` (`t:String.t/0`) - Required.

* `:price` - Required.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
