I need to implement a simple Cardano wallet. It should be able to create basic transactions (send ADA from account A to account B) , sign it with locally stored key, publish it to blockchain and then verify it has been completed. This wallet would be then integrated into a bigger application, serving as integration point between its app logic and Cardano blockchain.
I have few questions around that:
- Is it necessary to set up a local Cardano node to interact with Cardano blockchain?
According to my research, in order to send a transaction to Cardano blockchain I need to set up a node locally and then interact with it using REST API, as per https://cardanodocs.com/technical/wallet/api/v1/?v=1.6.0 . I find it odd. In other public blockchains there is usually some lib that acts as an integration point between DApp and a blockchain. An example would be https://github.com/ethereum/web3.js/ for Ethereum or https://github.com/ripple/ripple-lib for Ripple. Is there no such lib for Cardano? I found this https://github.com/input-output-hk/js-chain-libs but it seems that it does need a local Cardano node and is just proxy for REST.
- How to set up a local Cadano node that connects to a test net?
I need it to work on Linux, optimally (but not necessary) within a Docker container. The closest thing I could find is this: https://github.com/cipherzzz/cardano-node . This node is however configured to connect to main net - and I also need a test net one in order to test my DApp without having to spend real ADA for transactions. It is not obvious to me how to configure it to connect test net, though I’m trying to do that since yesterday, with no success so far. Is there any working and tested method of setting up a Cardano node that connects to test net that you can recommend?
- Which test net should I use to test a wallet described above?
I’m just after simplicity - sending ADA from account A to B. Which testnet is best suited for something like that?I’d say Byron since AFAIK in order to have ADA on Shelley I need to hold some real ADA (which I don’t) .
- Are there any tutorials/resources that you know of and that could be helpful to me?
If so, please do go ahead and share them. Obviously I did my research but as a Cardano beginner it’s possible that there are some important resources I missed.
Thanks,
Kris