TokenAmount

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

Types

Link copied to clipboard
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
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 getDefaultInstance(): TokenAmount
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
Link copied to clipboard
open fun parseDelimitedFrom(input: InputStream): TokenAmount
open fun parseDelimitedFrom(input: InputStream, extensionRegistry: ExtensionRegistryLite): TokenAmount
Link copied to clipboard
open fun parseFrom(data: Array<Byte>): TokenAmount
open fun parseFrom(data: ByteString): TokenAmount
open fun parseFrom(input: CodedInputStream): TokenAmount
open fun parseFrom(input: InputStream): TokenAmount
open fun parseFrom(data: ByteBuffer): TokenAmount
open fun parseFrom(data: Array<Byte>, extensionRegistry: ExtensionRegistryLite): TokenAmount
open fun parseFrom(data: ByteString, extensionRegistry: ExtensionRegistryLite): TokenAmount
open fun parseFrom(input: CodedInputStream, extensionRegistry: ExtensionRegistryLite): TokenAmount
open fun parseFrom(input: InputStream, extensionRegistry: ExtensionRegistryLite): TokenAmount
open fun parseFrom(data: ByteBuffer, extensionRegistry: ExtensionRegistryLite): TokenAmount
Link copied to clipboard
open fun parser(): Parser<TokenAmount>

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard