Hello, I am trying to figure out how to transfer ICP from a plug wallet connection to the ledger canister signed with the principal ID that the user connects with.
For this I am using the Plug Connect from Connect apps to Plug - Documentation | Plug and followed the by me a coffee example.
But I am not sure how to send to the ledger canister specifically and sign the transaction so that another canister in my dapp that contains the smart contract logic for the transactions can call the ledger canister and retrieve this deposited ICP.
Does anyone know of some examples / docs I could look at to see how I could send from a plug wallet to the ledger canister? Or can anyone give me some pointers on how to approach this and what I need to do? ]
Many thanks