Giter VIP home page Giter VIP logo

Comments (5)

purestaketdb avatar purestaketdb commented on June 30, 2024

Thank you for bringing this to our attention, we initially required the header construct and then switched to requiring it OR just the Algod token value. Neither expected value would be clear unless you've worked with the APIs and the JS SDK. I'll set up a webpage to document what should be done.

In the meantime, the Algod API expects a key to be sent in with the request headers (X-Algo-API-Token), in the case of a Sandbox instance you can find the value by ./sandbox enter algod and then cat algod.token;and placing the value into the Network Headers field. More about this token here (https://developer.algorand.org/docs/reference/sdks/#security-token)

For the PureStake APIs, for example to add BetaNet to AlgoSigner you need to use a full header object in the Network Headers field like {"Algod":{"X-API-key":"<PS API KEY>"},"Indexer":{"X-API-Key":"<PS API KEY>"}} The Key here is one you are assigned when registering at https://developer.purestake.io

image

from algosigner.

rdrobinson3 avatar rdrobinson3 commented on June 30, 2024

Ahhh. Thanks for clearing that up. I was able to put just the token value in and successfully pull my transactions. I had tried all kinds of variations for the X-Algo-API-Token struct but never tried just putting in the key by itself. I appreciate the help.

from algosigner.

mkelly1495 avatar mkelly1495 commented on June 30, 2024

This does not work. I did the cat algod.token as suggested and it returned the aaa... long stream of a's key. I tried to to use this with the sandbox and it responded with a 500 ""message": "failed to retrieve information from the ledger"" message.

from algosigner.

mkelly1495 avatar mkelly1495 commented on June 30, 2024

Also the https://developer.algorand.org/docs/reference/sdks/#security-token page is invalid.

from algosigner.

janmarcano avatar janmarcano commented on June 30, 2024

Hello @mkelly1495, here's the updated link to the Algorand documentation: https://developer.algorand.org/docs/rest-apis/restendpoints/#security-token

I recreated the key using goal node generatetoken and was able to connect to it successfully using AlgoSigner.

from algosigner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.