ckBTC can be transferred only to principals?

Hi there,

Can we transfer ckBTC to accounts or only to Principals ?

Thanks
Regards
Waheed

The ckBTC canister follows the ICRC-1 standard, so it allows transfers to accounts.

Hope this helps

Can’t transfer ckBTC to account id using plug-wallet as well as ICPSwap
Buttons are disabled meaning not possible?


Screenshot from 2023-06-20 18-37-45

It can be only transferred to Principals yes or a Principal with a sub-account attached to it. The account type of ckBTC (and other ICRC-1) tokens is an object:

type Account = record { owner : principal; subaccount : opt Subaccount; };

and if there is a subaccount it looks something like this:

k2t6j-2nvnp-4zjm3-25dtz-6xhaa-c7boj-5gayf-oj3xs-i43lp-teztq-6ae-dfxgiyy.102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20

This is different to ICP account IDs which is a Hex encoded Account type (like the one you showed). ICRC-1 accounts are encoded differently.

1 Like

Thanks for the reply.

Is there any example in the repository ?