pub fn int_get_supply(supply_id: SupplyId) -> Option<Supply>
Expand description

Returns the supply data.

§Parameters

  • supply_id: Id of the supply.

§Result

The supply data, null if not exist.

§Sample request

SUPPLY_ID=8_251_471_539_482_211_562_355_238_650_337_652_682_089_590_676_002_818_286_951_709_100_188_048_031_744

dfx canister call coreledger_backend int_get_supply "($SUPPLY_ID)"

§Sample response

( opt record {
  open_amount = 400 : nat;
  owner = principal "r63pu-qjqo3-yvyrr-xhymp-63lj4-oycfx-7r4yr-mspkh-guhdl-vrjkr-cae";
  parameters = opt record {
    controller = null;
    desired_address = opt principal "enelt-vu2ic-5z4vq-mt7jb-4lxpn-75hu7-2rm6l-akmq5-tlzog-st72l-cae";
    take_all = false;
  };
  valid_until = 1_722_463_200_000_000_000 : nat64;
  exchange_rate = 1 : nat;
})