Asset

@Serializable
sealed class Asset

Represents an asset on a blockchain network.

An asset can be either:

  • A native coin (ETH, BTC, etc.) - represented by Coin

  • A token (ERC-20, etc.) - represented by Token

This sealed class hierarchy allows for type-safe handling of different asset types while maintaining a common interface for network-related operations.

Inheritors

Properties

Link copied to clipboard
abstract val contract: String?

The contract address (null for native coins, required for tokens)

Link copied to clipboard
abstract val network: Network

The blockchain network this asset belongs to