# Convert ICP Memo to ICRC

**URL:** <https://forum.dfinity.org/t/convert-icp-memo-to-icrc/42498>\
**Category:** Developers\
**Created:** [March 17, 2025, 3:34pm UTC](https://forum.dfinity.org/t/convert-icp-memo-to-icrc/42498 "2025-03-17T15:34:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rem.codes](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/rem.codes/32/40260_2.png) [@rem.codes](https://forum.dfinity.org/u/rem.codes)\
**Post date:** [March 17, 2025, 3:40pm UTC](https://forum.dfinity.org/t/convert-icp-memo-to-icrc/42498/2 "2025-03-17T15:40:01Z")

</div>

maybe this helps

> [@Extend cycles minting canister functionality](https://forum.dfinity.org/t/extend-cycles-minting-canister-functionality/37749/10):
>
> Hi, rem.codes. Sorry it’s not working for you. The magic memo you need is 84 = 0x54 = ‘T’ 80 = 0x50 = ‘P’ 85 = 0x55 = ‘U’ 80 = 0x50 = ‘P’ 0 0 0 0 Whereas, your transaction’s icrc1\_memo is “PUPT”. Therefore, IIUC, you need to reverse (“TPUP”), then pad with four 0’s (Rationale: CMC translates from a blob to an unsigned 64-bit integer, and uses little endian convention (like WASM).) Hope this works for you. LMK if you still have problems. Reference(s) [Here is precisely how CMC interprets …](https://sourcegraph.com/github.com/dfinity/ic@03cd1a68f056a6f33a821be77fc4f63f928e192f/-/blob/rs/nns/cmc/src/main.rs?L1702)

---

_[View the full topic](https://forum.dfinity.org/t/convert-icp-memo-to-icrc/42498)._
