CLI Client not working

133
0
github

CLI Client not working

Running a WSL2 on Windows 10 I follow the instructions strictly carefully in the docs of the CosmWasm installation and setup. the wasmd is now correctly installed and is in the folder: Home-dir : \wsl$\Ubuntu-20.04\home\tomcatzy\go\bin Let's configure the wasmd executable, point it to the testnet, create a wallet and ask for tokens from faucet: First source the sandynet network configuration in the shell: source <(curl -sSL https://raw.githubusercontent.com/CosmWasm/testnets/master/sandynet-1/defaults.env) Setup the client:

add wallets for testing

wasmd keys add wallet Then i get this result: wasmd keys add wallet "name": "wallet", "type": "local", "address": "wasm1pze5wsf0dg0fa4ysnttugn0m22ssf3t4a9yz3h", "pubkey": "{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A09EWZLG2oI9mNLG9SbTHjMJEZvH+DGhshjLsUKP5Ijd"}", "mnemonic": "hobby bunker rotate piano satoshi planet network verify else market spring toward pledge turkey tip slim word jaguar congress thumb flag project chalk inspire" }

wasmd keys add wallet2Error: No such interface “org.freedesktop.DBus.Properties” on object at path / Usage: wasmd keys add [flags]

Flags: --account uint32 Account number for HD derivation --algo string Key signing algorithm to generate keys for (default "secp256k1") --coin-type uint32 coin type number for HD derivation (default 118) --dry-run Perform action, but don't add key to local keystore --hd-path string Manual HD Path derivation (overrides BIP44 config) -h, --help help for add --index uint32 Address index number for HD derivation -i, --interactive Interactively prompt user for BIP39 passphrase and mnemonic --ledger Store a local reference to a private key on a Ledger device --multisig strings Construct and store a multisig public key (implies --pubkey) --multisig-threshold int K out of N required signatures. For use in conjunction with --multisig (default 1) --no-backup Don't print out seed phrase (if others are watching the terminal) --nosort Keys passed to --multisig are taken in the order they're supplied --pubkey string Parse a public key in bech32 format and save it to disk --recover Provide seed phrase to recover existing key instead of creating

Global Flags: --home string The application home directory (default "/home/tomcatzy/.wasmd") --keyring-backend string Select keyring's backend (os|file|test) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --log_format string The logging format (json|plain) (default "plain") --log_level string The logging level (trace|debug|info|warn|error|fatal|panic) (default "info") --output string Output format (text|json) (default "text") --trace print out full stack trace on errors

[email protected]:~/go/wasmd$ > -bash: syntax error near unexpected token `newline' [email protected]:~/go/wasmd$ {

"name": "wallet", "type": "local", "address": "wasm1pze5wsf0dg0fa4ysnttugn0m22ssf3t4a9yz3h", "pubkey": "{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A09EWZLG2oI9mNLG9SbTHjMJEZvH+DGhshjLsUKP5Ijd"}", "mnemonic": "hobby bunker rotate piano satoshi planet network verify else market spring toward pledge turkey tip slim word jaguar congress thumb flag project chalk inspire" }

Command 'name:' not found, did you mean:

command 'named' from deb bind9 (1:9.16.1-0ubuntu2.9) command 'namei' from deb util-linux (2.34-0.1ubuntu9.1)

Try: sudo apt install

type:: command not found address:: command not found pubkey:: command not found mnemonic:: command not found

Why can't the wasmd not connect to the testnet: wasmd keys add wallet "name": "wallet", "type": "local", "address": "wasm1pze5wsf0dg0fa4ysnttugn0m22ssf3t4a9yz3h", "pubkey": "{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A09EWZLG2oI9mNLG9SbTHjMJEZvH+DGhshjLsUKP5Ijd"}", "mnemonic": "hobby bunker rotate piano satoshi planet network verify else market spring toward pledge turkey tip slim word jaguar congress thumb flag project chalk inspire" }

wasmd keys add wallet2Error: No such interface “org.freedesktop.DBus.Properties” on object at path / Usage: wasmd keys add [flags]

Flags: --account uint32 Account number for HD derivation --algo string Key signing algorithm to generate keys for (default "secp256k1") --coin-type uint32 coin type number for HD derivation (default 118) --dry-run Perform action, but don't add key to local keystore --hd-path string Manual HD Path derivation (overrides BIP44 config) -h, --help help for add --index uint32 Address index number for HD derivation -i, --interactive Interactively prompt user for BIP39 passphrase and mnemonic --ledger Store a local reference to a private key on a Ledger device --multisig strings Construct and store a multisig public key (implies --pubkey) --multisig-threshold int K out of N required signatures. For use in conjunction with --multisig (default 1) --no-backup Don't print out seed phrase (if others are watching the terminal) --nosort Keys passed to --multisig are taken in the order they're supplied --pubkey string Parse a public key in bech32 format and save it to disk --recover Provide seed phrase to recover existing key instead of creating

Global Flags: --home string The application home directory (default "/home/tomcatzy/.wasmd") --keyring-backend string Select keyring's backend (os|file|test) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --log_format string The logging format (json|plain) (default "plain") --log_level string The logging level (trace|debug|info|warn|error|fatal|panic) (default "info") --output string Output format (text|json) (default "text") --trace print out full stack trace on errors

[email protected]:~/go/wasmd$ > -bash: syntax error near unexpected token `newline' [email protected]:~/go/wasmd$ {

"name": "wallet", "type": "local", "address": "wasm1pze5wsf0dg0fa4ysnttugn0m22ssf3t4a9yz3h", "pubkey": "{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A09EWZLG2oI9mNLG9SbTHjMJEZvH+DGhshjLsUKP5Ijd"}", "mnemonic": "hobby bunker rotate piano satoshi planet network verify else market spring toward pledge turkey tip slim word jaguar congress thumb flag project chalk inspire" }

Command 'name:' not found, did you mean:

command 'named' from deb bind9 (1:9.16.1-0ubuntu2.9) command 'namei' from deb util-linux (2.34-0.1ubuntu9.1)

Try: sudo apt install

type:: command not found address:: command not found pubkey:: command not found mnemonic:: command not found

Why can't the wasmd connect to the testent: Sandynet-1 wasmd keys add wallet "name": "wallet", "type": "local", "address": "wasm1pze5wsf0dg0fa4ysnttugn0m22ssf3t4a9yz3h", "pubkey": "{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A09EWZLG2oI9mNLG9SbTHjMJEZvH+DGhshjLsUKP5Ijd"}", "mnemonic": "hobby bunker rotate piano satoshi planet network verify else market spring toward pledge turkey tip slim word jaguar congress thumb flag project chalk inspire" }

wasmd keys add wallet2Error: No such interface “org.freedesktop.DBus.Properties” on object at path / Usage: wasmd keys add [flags]

Flags: --account uint32 Account number for HD derivation --algo string Key signing algorithm to generate keys for (default "secp256k1") --coin-type uint32 coin type number for HD derivation (default 118) --dry-run Perform action, but don't add key to local keystore --hd-path string Manual HD Path derivation (overrides BIP44 config) -h, --help help for add --index uint32 Address index number for HD derivation -i, --interactive Interactively prompt user for BIP39 passphrase and mnemonic --ledger Store a local reference to a private key on a Ledger device --multisig strings Construct and store a multisig public key (implies --pubkey) --multisig-threshold int K out of N required signatures. For use in conjunction with --multisig (default 1) --no-backup Don't print out seed phrase (if others are watching the terminal) --nosort Keys passed to --multisig are taken in the order they're supplied --pubkey string Parse a public key in bech32 format and save it to disk --recover Provide seed phrase to recover existing key instead of creating

Global Flags: --home string The application home directory (default "/home/tomcatzy/.wasmd") --keyring-backend string Select keyring's backend (os|file|test) (default "os") --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used --log_format string The logging format (json|plain) (default "plain") --log_level string The logging level (trace|debug|info|warn|error|fatal|panic) (default "info") --output string Output format (text|json) (default "text") --trace print out full stack trace on errors

[email protected]:~/go/wasmd$ > -bash: syntax error near unexpected token `newline' [email protected]:~/go/wasmd$ {

"name": "wallet", "type": "local", "address": "wasm1pze5wsf0dg0fa4ysnttugn0m22ssf3t4a9yz3h", "pubkey": "{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A09EWZLG2oI9mNLG9SbTHjMJEZvH+DGhshjLsUKP5Ijd"}", "mnemonic": "hobby bunker rotate piano satoshi planet network verify else market spring toward pledge turkey tip slim word jaguar congress thumb flag project chalk inspire" }

Command 'name:' not found, did you mean:

command 'named' from deb bind9 (1:9.16.1-0ubuntu2.9) command 'namei' from deb util-linux (2.34-0.1ubuntu9.1)

Try: sudo apt install

type:: command not found address:: command not found pubkey:: command not found mnemonic:: command not found

The wasmd won't obviously connect to the testnet - Sandynet https://rpc.sandynet.cosmwasm.com

I don't get there to point to the testnet wasmd and creat to the wallet...

Anybody with the same problems -and any suggestions ? Please much appreciated.