input-output-hk / cardano-sl

Cryptographic currency implementing Ouroboros PoS protocol
Apache License 2.0
3.77k stars 630 forks source link

Need support regarding Cardano API and SDK #4263

Open kristieguo opened 4 years ago

kristieguo commented 4 years ago

Hi there.

This is the team of Jadepool Custody, a leading cryptocurrency custody product based in Shanghai. So far we have supported 26 blockchains. Right now we are in the process of supporting Cardano. We have some questions listed below regarding Cardano API and SDK. We'd really appreciate it if we could get help as soon as possible. Thank you.

  1. Is V0 API suitable for production? We found a V1 API but not sure if it was ready to use: https://cardanodocs.com/technical/wallet/api/v1/?v=1.6.0

  2. We tried to use /api/v0/block/{block_id} to get block details but no valid JSON returned. How to get block details by block index?

  3. For the incentivized testnet, we used the documentation here: https://input-output-hk.github.io/jormungandr/quickstart/04_explorer.html." However GraphQL didn't work. Do you have detailed documentation for query parameters?

http://127.0.0.1:8443/explorer/graphql curl -X POST -H "Content-Type: application/json" --data '{' '"query": "{' ' status {' ' latestBlock {' ' chainLength' ' id' ' previousBlock {' ' id' ' }' ' }' ' }' '}"' '}' \

  1. According to a Cardano contributor, the SDK https://github.com/input-output-hk/cardano-js-sdk is not ready for production use and there are currently no SDK available for the MainNet. We want to put Cardano on production . What SDK should we use then?

  2. According to a Cardano contributor, the address format for the MainNet is still going under some design changes. Are addresses backward compatible after the design changes? How does exchanges that already supported Cardano generate mainnet addresses? We hope we can put Cardano on production soon.

erikd commented 4 years ago
  1. I am not sure what that V1 API is all about. The implementation of the V0 API is about to be replaced but the endpoints and should be mostly compatible.

  2. The correct endpoint is /api/block/{block_hash}

  3. If you want the developers of the cardano-graphql component to see this, you should log a ticket in the correct repo which is: https://github.com/input-output-hk/cardano-graphql/

kristieguo commented 4 years ago

@erikd Thank you. Can you also help answer the other two questions?

  1. According to a Cardano contributor, the SDK https://github.com/input-output-hk/cardano-js-sdk is not ready for production use and there are currently no SDK available for the MainNet. We want to put Cardano on production . What SDK should we use then?

  2. According to a Cardano contributor, the address format for the MainNet is still going under some design changes. Are addresses backward compatible after the design changes? How does exchanges that already supported Cardano generate mainnet addresses? We hope we can put Cardano on production soon.