Does not create a wallet as it is supposed to, does not return an error, does nothing.
Is v1 ready or should we use v0?
ubuntu@ip-172-31-21-95:~/cardano-sl$ curl -k -X POST https://localhost:8090/api/v1/wallets \
-H "Content-Type: application/json; charset=utf-8" \
-H "Accept: application/json; charset=utf-8" \
--cacert ./state-wallet-mainnet/tls/server.cert \
-d '{ \
“operation”: “create”,
“backupPhrase”: [“squirrel”, “material”, “silly”, “twice”, “direct”,
“slush”, “pistol”, “razor”, “become”, “junk”, “kingdom”, “flee”],
“assuranceLevel”: “normal”,
“name”: “MyFirstWallet”
}’
ubuntu@ip-172-31-21-95:~/cardano-sl$
I think V1 is not available yet. It’s gonna be in next versions.
1 Like
This seems to have done something (amazingly):
ubuntu@ip-172-31-21-95:~/cardano-sl$ curl -X POST https://localhost:8090/api/wallets/new -H "Content-Type: application/json; charset=utf-8" -H "Accept: application/json; charset=utf-8" --cacert ./state-wallet-mainnet/tls/server.cert -d '{ "cwInitMeta": { "cwName": "TEST", "cwAssurance": "CWANormal", "cwUnit": 0 }, "cwBackupPhrase": { "bpToList": ["squirrel", "material", "silly", "twice", "direct", "slush", "pistol", "razor", "become", "junk", "kingdom", "flee"] } }'
Returns:
{"Right":{"cwId":"Ae2tdPwUPEZMeiDfNHZ45V7RoaSqd4oSMuG4jo7asvmNHS193EEad1tUkeT","cwMeta":{"cwName":"TEST","cwAssurance":"CWANormal","cwUnit":0},"cwAccountsNumber":1,"cwAmount":{"getCCoin":"0"},"cwHasPassphrase":false,"cwPassphraseLU":1.526580237176042424e9}}