Wallet compatible ICRC address

The dapp I am building is supposed to generate an address out of the backend canister’s principal as the owner and the user’s principal as subaccount.

The address it generates allows the user to copy it and paste it on the plug wallet to send some ICP to it.

But when I attempt to send ICRC tokens to the generated address, the wallet complains because of some invalid characters such as “8” and “9”.

How can I generate a text address that can be copied and pasted as the recipient on any wallet such as plug to send some ICRC tokens to it ?

Please, can someone provide information about this topic?

Hey @ItsJackAnton currently plug wallet supports only principal or ICP account ID, we are planning to extend address field feature to support addresses with subaccounts.

In the meanwhile if you are triggering payment from your dApp you can use plug’s agent and create actor agains token canister and request transfer

1 Like