Skip to content

Files

Latest commit

7657697 · Dec 7, 2020

History

History
52 lines (46 loc) · 2.66 KB

type_currency_info.md

File metadata and controls

52 lines (46 loc) · 2.66 KB

Type CurrencyInfo

Name Type Description
code string Currency Code
fractional_part unsigned int64 Max fractional part of single unit of currency allowed in a transaction
scaling_factor unsigned int64 Factor by which the amount is scaled before it is stored in the blockchain
to_xdx_exchange_rate float32 Exchange rate of the currency to XDX currency
mint_events_key string Unique key for the mint events stream of this currency
burn_events_key string Unique key for the burn events stream of this currency
preburn_events_key string Unique key for the preburn events stream of this currency
cancel_burn_events_key string Unique key for the cancel burn events stream of this currency
exchange_rate_update_events_key string Unique key for the exchange rate update events stream of this currency

Example

{
  "id": 1,
  "jsonrpc": "2.0",
  "diem_chain_id": 2,
  "diem_ledger_timestampusec": 1596680410015647,
  "diem_ledger_version": 3252698,
  "result": [
    {
      "burn_events_key": "02000000000000000000000000000000000000000a550c18",
      "cancel_burn_events_key": "04000000000000000000000000000000000000000a550c18",
      "code": "XUS",
      "exchange_rate_update_events_key": "05000000000000000000000000000000000000000a550c18",
      "fractional_part": 100,
      "mint_events_key": "01000000000000000000000000000000000000000a550c18",
      "preburn_events_key": "03000000000000000000000000000000000000000a550c18",
      "scaling_factor": 1000000,
      "to_xdx_exchange_rate": 0.5
    },
    {
      "burn_events_key": "0c000000000000000000000000000000000000000a550c18",
      "cancel_burn_events_key": "0e000000000000000000000000000000000000000a550c18",
      "code": "XDX",
      "exchange_rate_update_events_key": "0f000000000000000000000000000000000000000a550c18",
      "fractional_part": 1000,
      "mint_events_key": "0b000000000000000000000000000000000000000a550c18",
      "preburn_events_key": "0d000000000000000000000000000000000000000a550c18",
      "scaling_factor": 1000000,
      "to_xdx_exchange_rate": 1
    }
  ]
}