cardano-sl icon indicating copy to clipboard operation
cardano-sl copied to clipboard

How to do i make web ui for cardano?

Open sneha6patel opened this issue 5 years ago • 10 comments

I have build the **Cardano SL ** from the source code.Also then i have run the command nix-build -A connectScripts.mainnetWallet -o connect-to-mainnet then ./connect-to-mainnet. After doing this my node is start connecting to mainnet. But how can i verify my node is connected, and also how can i perform transaction in testnet or create new account through my java application?

sneha6patel avatar Feb 26 '19 08:02 sneha6patel

Hello,

  • The wallet API is listening on port 8090 and the API docs are here: https://cardanodocs.com/technical/wallet/api/v1/
  • You will need to use TLS client authentication when accessing the API. Alternatively, disable client authentication when building the wallet connect script.
  • There is more information and FAQs here: https://github.com/input-output-hk/cardano-sl/blob/master/docs/exchange-onboarding.md
  • And you can also browse the IOHK support portal

rvl avatar Feb 27 '19 01:02 rvl

But when I tried to make wallet on command line.. It want new mnemonic words. screenshot from 2019-02-28 09-58-58

sneha6patel avatar Feb 28 '19 04:02 sneha6patel

Run ./scripts/generate-mnemonic.hs.

rvl avatar Feb 28 '19 05:02 rvl

Actually I have solved this issue by generating words on https://iancoleman.io/bip39/ but while run this above code it generates error. screenshot from 2019-02-28 11-41-37

sneha6patel avatar Feb 28 '19 06:02 sneha6patel

Hey My api is running on command line but when it I try to execute localhost link on browser it generates errors. screenshot from 2019-02-28 12-33-55

sneha6patel avatar Feb 28 '19 07:02 sneha6patel

Hello @sneha6patel,

  1. scripts/generate-mnemonic.hs - sorry I forgot to mention that this will need to download GHC and libraries just to run the script ... so it may take a while the first time. In the next version we provide a binary of this util.
  2. If using a web page for generating a mnemonic, it may not be private. Some scripts you might find are buggy and insecure also. The safest way is probably to run Daedalus and write down the backup phrase it generates for a new wallet.
  3. You cannot use access the API through the web browser, unless you disable TLS client auth. Curl is probably better anyway though. The exchange onboarding doc has more info on configuring the connect script.

rvl avatar Feb 28 '19 16:02 rvl

I've done what you said but still it couldn't connect

screenshot from 2019-03-01 09-38-25

Please answer me..It's urgent

sneha6patel avatar Mar 01 '19 04:03 sneha6patel

And tell me which programming lang would be best to make web service on cardano? and tell me honestly cardano-sl is best or cardano-cli to make web service on cardano?

sneha6patel avatar Mar 01 '19 04:03 sneha6patel

@sneha6patel The easiest way is to use https://soshen.io/ in combination with the Cardano-Wallet NPM package

SebastienGllmt avatar Jun 06 '19 04:06 SebastienGllmt