Transaction

@Serializable
sealed class Transaction

Represents a blockchain transaction.

A transaction describes an operation to be performed on a blockchain, such as transferring assets from one address to another.

This sealed class hierarchy allows for type-safe handling of different transaction types while maintaining a common interface.

Important: For all subclasses, amount is the authoritative value that will be used when building, signing, and broadcasting a transaction. Flags like isMax are informational only and do not cause the SDK to recompute or override the numeric amount.

Inheritors

Properties

Link copied to clipboard
@Serializable(with = BigIntegerSerializer::class)
abstract val amount: BigInteger

The amount in the asset's smallest unit (e.g., wei for ETH)

Link copied to clipboard
abstract val asset: Asset

The asset being transacted