Skip to content

secretcli for new comers... #855

Open

Description

@Subfortytwo

Hi, I would like to use secretcli/secretd instead of Keplr, so I don't need a browser.
I found this resource:
https://build.scrt.network/light-client-mainnet.html
but the node tcp://secret-2.node.enigma.co:26657 is dead.
Where can I connect to? Can you recommend a resource that is a bit more up to date, for total noobs that don't want to use the browser anymore?

Thank you very much.

Activity

  1. assafmo commented on Dec 12, 2021

    @assafmo
    Contributor
  2. Subfortytwo commented on Jan 14, 2022

    @Subfortytwo
    Author

    How do you use secretcli now? I am no more able to.

    $ ./secretcli  q account  secret15958gnfqayr3eunp6vljkgp3mdf55pnuwgjlhc 
    Error: error unmarshalling: invalid character '<' looking for beginning of value
    
    

    Ty

  3. dylanschultzie commented on Jan 14, 2022

    @dylanschultzie
    Contributor

    @Subfortytwo please do secretcli q bank balances {account}

  4. dylanschultzie commented on Jan 14, 2022

    @dylanschultzie
    Contributor

    Also please use: https://docs.scrt.network/, alongside api.scrt.network:26657

  5. Subfortytwo commented on Jan 14, 2022

    @Subfortytwo
    Author

    Thanks for your quick answer.

    $ ./secretcli  q bank balances  secret15958gnfqayr3eunp6vljkgp3mdf55pnuwgjlhc 
    Error: error unmarshalling: invalid character '<' looking for beginning of value
    
    

    Error is the same. Here is a HTTP dumpu:

    POST / HTTP/1.1
    Host: api.scrt.network:26657
    User-Agent: Go-http-client/1.1
    Content-Length: 244
    Content-Type: application/json
    
    {"jsonrpc":"2.0","id":0,"method":"abci_query","params":{"data":"0A2D7365637265743135393538676E66716179723365756E7036766C6A6B6770336D64663535706E7577676A6C686312021864","height":"0","path":"/cosmos.bank.v1beta1.Query/AllBalances","prove":false}}HTTP/1.1 404 Not Found
    Server: nginx
    Date: Fri, 14 Jan 2022 16:29:57 GMT
    Content-Type: text/html
    Content-Length: 162
    Connection: keep-alive
    
    <html>
    <head><title>404 Not Found</title></head>
    <body bgcolor="white">
    <center><h1>404 Not Found</h1></center>
    <hr><center>nginx</center>
    </body>
    </html>
    
    
    
  6. dylanschultzie commented on Jan 14, 2022

    @dylanschultzie
    Contributor

    Screen Shot 2022-01-14 at 8 35 35 AM

  7. dylanschultzie commented on Jan 14, 2022

    @dylanschultzie
    Contributor

    @Subfortytwo what version are you running?

  8. dylanschultzie commented on Jan 14, 2022

    @dylanschultzie
    Contributor

    Can you do secretcli config and show the output?

  9. Subfortytwo commented on Jan 14, 2022

    @Subfortytwo
    Author
    $ ./secretcli config
    {
    	"chain-id": "secret-4",
    	"keyring-backend": "os",
    	"output": "json",
    	"node": "http://api.scrt.network:26657",
    	"broadcast-mode": "sync"
    }
    
    $ ./secretcli version
    0.0.02
    
    
  10. dylanschultzie commented on Jan 14, 2022

    @dylanschultzie
    Contributor

    AH. Don't use 0.0.02. It's a test release - use 1.2.0. @Subfortytwo

    @assafmo can we have 0.0.02 and 0.0.01 removed/not marked as latest somehow?

  11. Subfortytwo commented on Jan 14, 2022

    @Subfortytwo
    Author

    I do have the same with version 1.2.0 and 1.2.2.
    With 1.2.0-12-g4bd4ebe3:

    POST / HTTP/1.1
    Host: api.scrt.network:26657
    User-Agent: Go-http-client/1.1
    Content-Length: 244
    Content-Type: application/json
    
    {"jsonrpc":"2.0","id":0,"method":"abci_query","params":{"data":"0A2D7365637265743135393538676E66716179723365756E7036766C6A6B6770336D64663535706E7577676A6C686312021864","height":"0","path":"/cosmos.bank.v1beta1.Query/AllBalances","prove":false}}
    

    I am guessing: /cosmos.bank.v1beta1.Query/AllBalances is wrong?

  12. Subfortytwo commented on Jan 14, 2022

    @Subfortytwo
    Author

    Btw it used to work.

  13. dylanschultzie commented on Jan 14, 2022

    @dylanschultzie
    Contributor

    @Subfortytwo ah. it appears the community api is down.

  14. Subfortytwo commented on Jan 14, 2022

    @Subfortytwo
    Author

    So which one are you using in the previous screenshot? Is it available for us?

  15. dylanschultzie commented on Jan 14, 2022

    @dylanschultzie
    Contributor

    @Subfortytwo that's my node, @assafmo is there one other than the community api that's available?

  16. PrivatePixels commented on Jan 14, 2022

    @PrivatePixels
    Contributor

    The community api works fine for me from cli

    api.scrt.network:26657

  17. Subfortytwo commented on Jan 14, 2022

    @Subfortytwo
    Author

    Do you mind pasting a HTTP trace?

    Connecting with the browser on http://api.scrt.network:26657/ is working on my side. I am just getting a 404 from the balance query.

  18. dylanschultzie commented on Jan 14, 2022

    @dylanschultzie
    Contributor

    Same behavior as @Subfortytwo here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions