pub async fn int_update_supply_expiry_date(
supply_id: SupplyId,
valid_until: u64
) -> Response
Expand description
Updates the lifetime of the supply.
The provided value replaces the current one.
Is available also when the contract is paused.
§Parameters
supply_id
: Unique identifier for the supply.valid_until
: New maximum lifetime of the supply in nanoseconds.
§Result
tx_id
: Id of the transaction.
§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_745
SUP_VALID_UNTIL_NEW=1732962467000000000
dfx canister call coreledger_backend int_update_supply_expiry_date "($SUPPLY_ID, $SUP_VALID_UNTIL_NEW)"
§Sample response
( record {
tx_id = 64_902_045_878_680_215_161_103_406_576_570_366_475_824_533_393_005_533_149_888_825_789_042_550_227_580 : nat
})