msg cycles refunded 128
This section is a work in progress.
Examples:
import { Canister, ic, nat64, update } from 'azle/experimental';
import { otherCanister } from './other_canister';
export default Canister({
// Reports the number of cycles returned from the Cycles canister
sendCycles128: update([], nat64, async () => {
await ic.call128(otherCanister.receiveCycles128, {
cycles: 1_000_000n
});
return ic.msgCyclesRefunded128();
})
});