# Using Plug wallet for local development and local ledger canister?

**URL:** <https://forum.dfinity.org/t/using-plug-wallet-for-local-development-and-local-ledger-canister/11822>\
**Category:** Getting Started\
**Created:** [March 31, 2022, 12:49pm UTC](https://forum.dfinity.org/t/using-plug-wallet-for-local-development-and-local-ledger-canister/11822 "2022-03-31T12:49:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnonymousCoder](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/anonymouscoder/32/4747_2.png) [@AnonymousCoder](https://forum.dfinity.org/u/AnonymousCoder)\
**Post date:** [March 31, 2022, 12:49pm UTC](https://forum.dfinity.org/t/using-plug-wallet-for-local-development-and-local-ledger-canister/11822/1 "2022-03-31T12:49:43Z")

</div>

Hi all

I’m considering using Plug wallet in my project and would like to know if it’s actually possible to have some kind of a testing setup with the Plug wallet locally so that it uses locally deployed ledger canister (which would allow me to send ICP to my plug ID and populate funds that way and then “spend” them with the local ledger canister, since from what I’ve seen so far, it seems Plug uses the regular ledger whenever you send transactions ?

Is it possible to do and how? If not, how do you guys go around this when doing local dev for things that require transactions using locally deployed ledger canister?

---

<div class="post-metadata">

**Author:** ![AnonymousCoder](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/anonymouscoder/32/4747_2.png) [@AnonymousCoder](https://forum.dfinity.org/u/AnonymousCoder)\
**Post date:** [March 31, 2022, 6:21pm UTC](https://forum.dfinity.org/t/using-plug-wallet-for-local-development-and-local-ledger-canister/11822/2 "2022-03-31T18:21:19Z")

</div>

Looks like they will be implementing that feature (to be able to use PLUG locally with ledger canister) in the near future and next releases. In the meantime, what do you think is the way to go, since it’s impossible to use PLUG or similar wallet(s) locally while using locally deployed ledger canister?

---

<div class="post-metadata">

**Author:** ![Zane](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/zane/32/6541_2.png) [@Zane](https://forum.dfinity.org/u/Zane)\
**Post date:** [July 6, 2022, 2:18pm UTC](https://forum.dfinity.org/t/using-plug-wallet-for-local-development-and-local-ledger-canister/11822/3 "2022-07-06T14:18:41Z")

</div>

Have you found a solution to the problem?

---

<div class="post-metadata">

**Author:** ![noobie\_doobie\_doo](https://avatars.discourse-cdn.com/v4/letter/n/58f4c7/32.png) [@noobie\_doobie\_doo](https://forum.dfinity.org/u/noobie_doobie_doo)\
**Post date:** [January 29, 2024, 10:20am UTC](https://forum.dfinity.org/t/using-plug-wallet-for-local-development-and-local-ledger-canister/11822/4 "2024-01-29T10:20:13Z")

</div>

For local testing you have to follow two steps :

- [Setup ICP ledger locally](https://internetcomputer.org/docs/current/developer-docs/integrations/ledger/ledger-local-setup)

- [Setup custom Test Network in Plug](https://medium.com/plugwallet/plug-0-5-3-network-selection-49e105334d83)

---

<div class="post-metadata">

**Author:** ![jyotirmaygithub](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jyotirmaygithub/32/23999_2.png) [@jyotirmaygithub](https://forum.dfinity.org/u/jyotirmaygithub)\
**Post date:** [June 10, 2025, 1:13pm UTC](https://forum.dfinity.org/t/using-plug-wallet-for-local-development-and-local-ledger-canister/11822/5 "2025-06-10T13:13:41Z")

</div>

i dont think it’s that much usefull, How can I view and transfer my ICRC-1 dTokens locally using Plug Wallet to verify that everything is working correctly during development? (on the plug ui)

---

<div class="post-metadata">

**Author:** ![mzibara](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/mzibara/32/12850_2.png) [@mzibara](https://forum.dfinity.org/u/mzibara)\
**Post date:** [June 10, 2025, 2:54pm UTC](https://forum.dfinity.org/t/using-plug-wallet-for-local-development-and-local-ledger-canister/11822/6 "2025-06-10T14:54:34Z")

</div>

Hey!  
To enable dev mode, please go to Settings → Developer Zone.

Here you need to enable Test mode and configure your network.

You can then use `window.ic.plug.createAgent({ host })`, where **host** would be your localhost:[port].

Please make sure that both host definititions in plug app settings and in your code match - otherwise you will get invalid certificate error.

To test ICRC token balances locally deployed - you will need to:

- go to Developer Zone settings again
- click edit on previosly created network
- you will see button “create test token”

Here you will be able to define canister IDs of your local tokens. Balances should appear on homescreen.

---

<div class="post-metadata">

**Author:** ![jyotirmaygithub](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jyotirmaygithub/32/23999_2.png) [@jyotirmaygithub](https://forum.dfinity.org/u/jyotirmaygithub)\
**Post date:** [June 10, 2025, 4:44pm UTC](https://forum.dfinity.org/t/using-plug-wallet-for-local-development-and-local-ledger-canister/11822/7 "2025-06-10T16:44:16Z")

</div>

i did all this even then i was not able to see the dtoken balance on the plug screen. (for info dtokens are tokens made by us to give it to users as they gonna supply icp and other token onto the platform).

---

<div class="post-metadata">

**Author:** ![jyotirmaygithub](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jyotirmaygithub/32/23999_2.png) [@jyotirmaygithub](https://forum.dfinity.org/u/jyotirmaygithub)\
**Post date:** [June 10, 2025, 4:48pm UTC](https://forum.dfinity.org/t/using-plug-wallet-for-local-development-and-local-ledger-canister/11822/8 "2025-06-10T16:48:24Z")

</div>

![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/4/7/47ed356a11dd124be28b48535ef96bcc13852676.png)  
 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/a/3/a3b18aa255e9cd8df1715a17d6b52330a8f2659b.png)

---

<div class="post-metadata">

**Author:** ![jyotirmaygithub](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/jyotirmaygithub/32/23999_2.png) [@jyotirmaygithub](https://forum.dfinity.org/u/jyotirmaygithub)\
**Post date:** [June 10, 2025, 4:50pm UTC](https://forum.dfinity.org/t/using-plug-wallet-for-local-development-and-local-ledger-canister/11822/9 "2025-06-10T16:50:01Z")

</div>

see this is how its, without the balance on the ui
