FiyatlandırmaGitHubKontrol paneli

Sui

sui.rpc.v2.StateService/GetCoinInfo15 kredi

Return the metadata and supply of a coin type

Ağ: sui

Parametreler

AdTürAçıklama
coin_typestringFully qualified coin type, for example 0x2::sui::SUI.

Dönüş değeri

Tür

GetCoinInfoResponse

coin_type, metadata (CoinMetadata: id, decimals, name, symbol, description, icon_url), treasury (CoinTreasury: id, total_supply, supply_state) and regulated_metadata (RegulatedCoinMetadata, for regulated coins).

Kod örnekleri

# the key of the endpoint goes in the x-token header; add -proto <file> when the node has no gRPC reflection
grpcurl \
  -H 'x-token: 7c9e6679-7425-40de-944b-e07fc1f90ae7' \
  -d '{
  "coin_type": "0x2::sui::SUI"
}' \
  grpc-holy-burned-sky-sui-mainnet.rpcnode.dev:443 \
  sui.rpc.v2.StateService/GetCoinInfo