# `FireblocksSdk.Api.Tokenization`
[🔗](https://github.com/csokun/fireblocks_sdk/blob/v0.2.5/lib/fireblocks_sdk/api/tokenization.ex#L1)

# `balance`

Returns the latest token balance for the specified account address.

# `balance_history`

Returns paginated balance history for the specified account address with optional time-range filtering.

Options:
* `:id` (`t:String.t/0`) - Required. The token link id

* `:accountAddress` (`t:String.t/0`) - Required. The account address to get balance history for

* `:startDate` (`t:String.t/0`) - Start date of the time range in ISO 8601 format

* `:endDate` (`t:String.t/0`) - End date of the time range in ISO 8601 format

* `:interval` - Time interval for grouping data The default value is `:day`.

* `:pageCusor` (`t:String.t/0`) - Page cursor to get the next page

* `:pageSize` (`t:non_neg_integer/0`) - Number of items per page (max 100), requesting more than 100 will return 100 items The default value is `10`.

* `:sortBy` - Sorting only supported by 'blockTimestamp' The default value is `:blockTimestamp`.

* `:order` - ASC / DESC ordering (default DESC) The default value is `:desc`.

# `balances`

Returns the latest balance for each unique address holding this token.

```
FireblocksSdk.Api.Tokenization.balances([
  id: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb
])
```

Options:
* `:id` (`t:String.t/0`) - Required. The token link id

* `:pageCursor` (`t:String.t/0`) - Page cursor to get the next page

* `:pageSize` (`t:non_neg_integer/0`) - The default value is `10`.

* `:sortBy` - Sorting field for transfers The default value is `:blockTimestamp`.

* `:order` - The default value is `:desc`.

# `count`

Get the total count of linked tokens

# `create`

Facilitates the creation of a new token, supporting both EVM-based and Stellar/Ripple platforms.
For EVM, it deploys the corresponding contract template to the blockchain and links the token to the workspace.
For Stellar/Ripple, it links a newly created token directly to the workspace without deploying a contract.
Returns the token link with status "PENDING" until the token is deployed or "SUCCESS" if no deployment is needed.

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

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

* `:vaultAccountId` (`t:String.t/0`) - Required. The id of the vault account that initiated the request to issue the token

* `:createParams` (`t:term/0`) - Required.

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

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

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

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

# `get`

  Return a linked token, with its status and metadata.

# `get_deterministic_address`

Get a deterministic address for contract deployment. The address is derived from the contract's bytecode and provided salt. This endpoint is used to get the address of a contract that will be deployed in the future.

Options:
* `:chainDescriptor` (`t:String.t/0`) - Required. The base asset identifier of the blockchain (legacyId) to calculate deterministic address. Example: 'ETH'

* `:templateId` (`t:String.t/0`) - Required. The template identifier (UUID). Example: 'b70701f4-d7b1-4795-a8ee-b09cdb5b850d'

* `:initParams` (list of `t:map/0`) - Required. The deploy function parameters and values of the contract template. See ParameterWithValue schema.

* `:salt` (`t:String.t/0`) - Required. The salt to calculate the deterministic address. Must be a number between 0 and 2^256 -1, for it to fit in the bytes32 parameter. Example: '123456789'

# `get_link`

Return a linked token, with its status and metadata.

# `get_template`

# `link`

Link an existing token to the workspace.

Options:
* `:type` - Required. The type of token being link. Available values: `:fungible`, `:non_fungible_token`, `:token_utility`, `:token_extension`

* `:refId` (`t:String.t/0`) - The Fireblocks' token link reference id. For example, 'BQ5R_BDESC_ABC' if it's a fungible asset

* `:displayName` (`t:String.t/0`) - The token display name

* `:baseAssetId` (`t:String.t/0`) - The blockchain base assetId

* `:contractAddress` (`t:String.t/0`) - The contract's onchain address

# `list`

Return all linked tokens (paginated)

Options:
* `:pageCursor` (`t:String.t/0`)

* `:pageSize` (`t:non_neg_integer/0`) - The default value is `10`.

* `:status` (`t:String.t/0`) - The default value is `"COMPLETED"`.

# `rbac`

Returns a list of currently active roles for the token contract.

# `summary`

Returns the total number of unique holders and the total supply for the token contract.

# `templates`

# `transactions`

Returns a paginated list of onchain transactions for the token contract, optionally filtered by date range.

```
FireblocksSdk.Api.Tokenization.transactions([
  id: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb
])
```

Options:
* `:id` (`t:String.t/0`) - Required. The token link id

* `:startDate` (`t:String.t/0`) - Start date of the time range in ISO 8601 format

* `:endDate` (`t:String.t/0`) - End date of the time range in ISO 8601 format

* `:pageCursor` (`t:String.t/0`) - Page cursor to get the next page

* `:pageSize` (`t:non_neg_integer/0`) - The default value is `10`.

* `:sortBy` - Sorting field for transfers The default value is `:blockTimeStamp`.

* `:order` - The default value is `:desc`.

* `:sender` (`t:String.t/0`) - Filter transfers by sender address

* `:receiver` (`t:String.t/0`) - Filter transfers by receiver address

# `transfers`

Returns a paginated list of ERC20 transfer events for the token contract, optionally filtered by date range.

```
FireblocksSdk.Api.Tokenization.transfers([
  id: fbfbfbfb-fbfb-fbfb-fbfb-fbfbfbfbfbfb
])
```

Options:
* `:id` (`t:String.t/0`) - Required. The token link id

* `:startDate` (`t:String.t/0`) - Start date of the time range in ISO 8601 format

* `:endDate` (`t:String.t/0`) - End date of the time range in ISO 8601 format

* `:pageCursor` (`t:String.t/0`) - Page cursor to get the next page

* `:pageSize` (`t:non_neg_integer/0`) - The default value is `10`.

* `:sortBy` - Sorting field for transfers The default value is `:blockTimeStamp`.

* `:order` - The default value is `:desc`.

* `:sender` (`t:String.t/0`) - Filter transfers by sender address

* `:receiver` (`t:String.t/0`) - Filter transfers by receiver address

# `unlink`

Unlink a token. The token will be unlinked from the workspace. The token will not be deleted on chain nor the refId, only the link to the workspace will be removed.

---

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