Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

api/v1/wallets #2719

Open
halilcosdu opened this issue Mar 28, 2018 · 12 comments
Open

api/v1/wallets #2719

halilcosdu opened this issue Mar 28, 2018 · 12 comments

Comments

@halilcosdu
Copy link

halilcosdu commented Mar 28, 2018

Greetings, i just build cardano-sl, its working and still syncing. when i tried to request v1 api endpoints. Not working, v0 is working by the way, is there any reason?
OS : Ubuntu 16.04

@i3bitcoin
Copy link

The same here, v1 api is not working when using connect-to-mainnet (https://github.com/input-output-hk/cardano-sl/blob/master/docs/how-to/connect-to-cluster.md), but v0 doing well.

curl https://127.0.0.1:8090/api/info -k
{"Right":{"cabalVersion":"1.1.0","apiVersion":"v0","gitRevision":"b632695b07270b27aba807afa96d81e3337f328e","softwareVersion":"cardano-sl:0"}}

@myself659
Copy link

create wallet failed
ubuntu@ip-172-31-19-183:~/ada/cardano-sl$ curl -X POST https://localhost:8090/api/v1/wallets \

 -H "Content-Type: application/json; charset=utf-8"                \
 -H "Accept: application/json; charset=utf-8"                      \
 --cacert ./scripts/tls-files/ca.crt                               \
 -d '{                                                             \

"operation": "create",
"backupPhrase": ["squirrel", "material", "silly", "twice", "direct",
"slush", "pistol", "razor", "become", "junk", "kingdom", "flee"],
"assuranceLevel": "normal",
"name": "MyFirstWallet"
}'
{
"status": "error",
"diagnostic": {
"validationError": "Error in $: Failed reading: satisfy"
},
"message": "JSONValidationFailed"
}ubuntu@ip-172-31-19-183:~/ada/cardano-sl$

@vsubhuman
Copy link
Contributor

create wallet failed

@myself659, response is here: https://forum.cardano.org/t/create-wallet-failed/11061/2

@lhfly5201314
Copy link

Just return nothing even without slash!
This way doesn't work!
Any guys give some useful advices???

@lhfly5201314
Copy link

lhfly5201314 commented Apr 27, 2018

Why it returns version 0 API when we curl https://127.0.0.1:8090/api/info -k,it's strange.
Do any guys know how to create new wallet and address,could u give som example here?
I know the docs about the v0 API:https://cardanodocs.com/technical/wallet/api/v0/#tag/V0-(Deprecated)%2Fpaths%2F~1api~1wallets~1new%2Fpost
But I don't know how to write the curl commands!!
Really need some help!Thanks!

@lhfly5201314
Copy link

@i3bitcoin Hi,friend!How should I write my curl command if I wanna create new wallet and generate new addresses with v0 API?
Could u give me some examples???
Really thanks!!!

@shunfan
Copy link

shunfan commented Apr 27, 2018

@lhfly5201314

Links that may help you to learn how to use curl:

@nbrown1337
Copy link

Is V1 API not complete? Why does it seem like only V0 is working for people?

@shunfan
Copy link

shunfan commented May 5, 2018

From my understanding, V1 is still in beta testing, but I heard someone said that you could use V1 API if you build the script from develop branch.

@webzorg
Copy link

webzorg commented May 18, 2018

yea, nice. I was getting 404 on v1 namespace for being on master branch. When are they merging?

@shunfan
Copy link

shunfan commented May 18, 2018

cardano-sl 1.2 will be shipped along with API V1.

@cryptophonic
Copy link

source release for cardano-sl 1.2 appears to build by default without API v1. i can see it in the source, but not sure how to enable it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants