Skip to main content

GrpcCoinInfo

GrpcCoinInfo​

struct GrpcCoinInfo

Information about a coin type.

init(coinType:metadata:treasury:regulatedMetadata:)​

init(coinType: String?, metadata: GrpcCoinMetadata?, treasury: GrpcCoinTreasury?, regulatedMetadata: GrpcRegulatedCoinMetadata?)

coinType​

var coinType: String?

The coin type.

metadata​

var metadata: GrpcCoinMetadata?

Information about the coin type's 0x2::coin::CoinMetadata, if it exists and has not been wrapped.

regulatedMetadata​

var regulatedMetadata: GrpcRegulatedCoinMetadata?

Information about the coin type's regulated metadata, if the coin is regulated.

treasury​

var treasury: GrpcCoinTreasury?

Information about the coin type's 0x2::coin::TreasuryCap, if it exists and has not been wrapped.