# How to get a canister's address to send ICRC tokens to, and generate further subaccounts(?) to do the same?

**URL:** https://forum.dfinity.org/t/how-to-get-a-canisters-address-to-send-icrc-tokens-to-and-generate-further-subaccounts-to-do-the-same/17840
**Category:** Developers
**Created:** [January 7, 2023, 12:47pm UTC](https://forum.dfinity.org/t/how-to-get-a-canisters-address-to-send-icrc-tokens-to-and-generate-further-subaccounts-to-do-the-same/17840 "2023-01-07T12:47:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![blabagastered](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/blabagastered/32/8592_2.png) [@blabagastered](https://forum.dfinity.org/u/blabagastered)
#### Post date: [January 7, 2023, 12:47pm UTC](https://forum.dfinity.org/t/how-to-get-a-canisters-address-to-send-icrc-tokens-to-and-generate-further-subaccounts-to-do-the-same/17840/1 "2023-01-07T12:47:28Z")

</div>

I have a canister I need to send an ICRC token to. (The aim is for the canister to receive and hold an ICRC token balance).

How do I, as owner of the canister,

(a) get the canister’s default address to send ICRC tokens to, and

(b) generate additional addresses (not sure if they’re called subaccounts, whatever they are) controlled by the same canister to send ICRC tokens to?

Actually, does the ICRC-1 standard distinguish between such subaccounts (I don’t know if that’s the term), or does it only recognise one account per canister?

---

<div class="post-metadata">

### Author: ![bytesun](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/bytesun/32/2682_2.png) [@bytesun](https://forum.dfinity.org/u/bytesun)
#### Post date: [January 7, 2023, 2:46pm UTC](https://forum.dfinity.org/t/how-to-get-a-canisters-address-to-send-icrc-tokens-to-and-generate-further-subaccounts-to-do-the-same/17840/2 "2023-01-07T14:46:13Z")

</div>

you can get address by referring to [examples/Account.mo at master · dfinity/examples · GitHub](https://github.com/dfinity/examples/blob/master/motoko/ledger-transfer/src/ledger_transfer/Account.mo)

a. default address is the subaccount with 0(blob) index  
b. to get other addresses, just pass the subaccount index 1, 2, 3…

note: to get canister principal : Principal.fromActor(this);

---

<div class="post-metadata">

### Author: ![skilesare](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/skilesare/32/5609_2.png) [@skilesare](https://forum.dfinity.org/u/skilesare)
#### Post date: [January 7, 2023, 3:11pm UTC](https://forum.dfinity.org/t/how-to-get-a-canisters-address-to-send-icrc-tokens-to-and-generate-further-subaccounts-to-do-the-same/17840/3 "2023-01-07T15:11:54Z")

</div>

See: [Completed: ICDevs.org - Bounty #26 - ICRC-1 Motoko - up to $10k - #34 by skilesare](https://forum.dfinity.org/t/completed-icdevs-org-bounty-26-icrc-1-motoko-up-to-10k/14868/34)
