Builder

class Builder
Represents a token and an amount. Token is identified by PolicyID and name.
Protobuf type TW.Cardano.Proto.TokenAmount

Functions

Link copied to clipboard
The amount (uint256, serialized little endian)
bytes amount = 3;
Link copied to clipboard
The name of the asset (within the policy)
string asset_name = 2;
Link copied to clipboard
Policy ID of the token, as hex string (28x2 digits)
string policy_id = 1;
Link copied to clipboard
open fun getAmount(): ByteString
The amount (uint256, serialized little endian)
bytes amount = 3;
Link copied to clipboard
open fun getAssetName(): String
The name of the asset (within the policy)
string asset_name = 2;
Link copied to clipboard
open fun getAssetNameBytes(): ByteString
The name of the asset (within the policy)
string asset_name = 2;
Link copied to clipboard
open fun getPolicyId(): String
Policy ID of the token, as hex string (28x2 digits)
string policy_id = 1;
Link copied to clipboard
open fun getPolicyIdBytes(): ByteString
Policy ID of the token, as hex string (28x2 digits)
string policy_id = 1;
Link copied to clipboard
open fun setAmount(value: ByteString): Cardano.TokenAmount.Builder
The amount (uint256, serialized little endian)
bytes amount = 3;
Link copied to clipboard
The name of the asset (within the policy)
string asset_name = 2;
Link copied to clipboard
open fun setAssetNameBytes(value: ByteString): Cardano.TokenAmount.Builder
The name of the asset (within the policy)
string asset_name = 2;
Link copied to clipboard
Policy ID of the token, as hex string (28x2 digits)
string policy_id = 1;
Link copied to clipboard
open fun setPolicyIdBytes(value: ByteString): Cardano.TokenAmount.Builder
Policy ID of the token, as hex string (28x2 digits)
string policy_id = 1;