I have been following the Exploring cardano-wallet doc and have run into a bit of a snag when creating a wallet.
The cardano-wallet recovery-phrase generate
command returns a newly created seed phrase. This seed phrase can then be used to create a wallet by sending a post request to the wallet server:
curl --request POST \ --url http://localhost:1337/v2/wallets
Trouble is, that in this request you need to provide the seed phrase in a list with double quotes around each word and a comma between each word.
Is there a way to easily go from this:
bottle hat generate happy...
to this
"bottle", "hat", "generate", "happy",...
Thanks!
cardano-wallet recovery-phrase generate | sed 's@\([^ ]*\)@"\1",@g' | head -c -2