Comments (5)
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
from algosigner.
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.
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.
Also the https://developer.algorand.org/docs/reference/sdks/#security-token page is invalid.
from algosigner.
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)
- Encrypt & Decrypt messages similar to Metamask API
- Uncaught error leads to blocking call HOT 1
- Support the presence of the extraPages field HOT 7
- v2 Sign - converting circular structures error HOT 1
- Cannot connect to sandbox nodes HOT 2
- Wrong total displayed HOT 1
- Inject Algosigner also into Iframes HOT 6
- Firefox extension HOT 3
- Is it possible to sign single transactions belonging to a group? HOT 1
- Unable to sign transaction w/ 2nd Ledger Nano S account HOT 4
- How to call the `AlgoSigner` class with typscript ? HOT 1
- Algosigner not injected again after refreshing page in React HOT 2
- Pressing ctrl+shift+T reopens the algosigner window HOT 3
- Validation failed for transaction due to invalid properties HOT 1
- Add About section to Algosinger HOT 1
- No Pop Up to Submit vote for Governance HOT 3
- Inclusion of empty "signers" array in groups returns error "address appears to be malformed" HOT 5
- Internal server error HOT 1
- AlgoSigner is not added to `window` global in certain cases HOT 1
- Is this library actively maintained? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from algosigner.