Is it possible to get the XDR/ICP exchange rate from the cycle’s minting canister?
I can’t find any docs on how to do it.
I would assume something like:
let cycles_minting_canister = actor (CanisterIds.CYCLES_MINTING_CANISTER) : actor {
get_icp_xdr_conversion_rate : () → async Nat64;
};
let converstionRate: Nat64 = await cycles_minting_canister.get_icp_xdr_conversion_rate();
If someone could point me in the right direction that would be great.