Help Needed: Generating Unique Subaccounts for Order Payments in Motoko

Hello Jennifer,

Thank you for your response.

Yes, we are considering creating a separate sub-account for each order. @sea-snake

We would like to create a sub-account using the canister’s principal address, rather than the caller’s principal.

The sub-account must be formatted in a way that is accepted by NNS for sending ICP, ckBTC, and other currencies.

Thanks

1 Like