Cardanoex.Asset (cardanoex v0.6.3)

The asset module let's you work with native assets for a wallet.

Link to this section Summary

Functions

Get information about a specific asset.

List all native assets for a wallet.

Link to this section Types

@type asset() :: %{
  policy_id: String.t(),
  asset_name: String.t(),
  fingerprint: String.t(),
  metadata: metadata(),
  metadata_error: String.t()
}
@type metadata() :: %{
  name: String.t(),
  description: String.t(),
  ticker: String.t(),
  decimals: non_neg_integer(),
  url: String.t(),
  logo: String.t()
}

Link to this section Functions

Link to this function

get(wallet_id, policy_id)

@spec get(String.t(), String.t()) :: {:error, String.t()} | {:ok, asset()}

Get information about a specific asset.

options

Options

  • wallet_id - hex based string. 40 characters
  • policy_id - hex based string. 56 characters
Link to this function

list(wallet_id)

@spec list(String.t()) :: {:error, String.t()} | {:ok, [asset()]}

List all native assets for a wallet.

options

Options

  • wallet_id - hex based string. 40 characters