👩💻I'm a developer
Last updated
Last updated
You can find the networks’ IDs here: https://github.com/snapshot-labs/snapshot-relayer/blob/master/src/check.ts#L9
No, it’s not needed.
Yes, we do. Please create report on the respective repository as showed below:
Yes. You can use https://testnet.snapshot.org with an ENS domain on Goerli Testnet.
We use IPFS to pin the receipts of the votes. You can have a more detailed look at the IPFS article.
Have a look at our documentation: Webhooks
Yes you can, however we encourage everyone to apply for a key to ensure a continuous access to the service as the limits for the keyless access are much lower than with an API Key.
Learn more here: API Keys
Head to API Keys to apply for a key and generate it for your own usage.
If you have filled in the API Request Key Form please have some patience and wait for our direct response to the contact you provided in it.
If you haven't filled in the form yet then please do so and we will reach out to you shortly.
You can find more details about the process here: API Keys
Yes. Currently you can send 120 requests per every 20 seconds.
After September 12th the limits will be updated:
🔓 No API Key: 100 requests per minute.
🔑 With the API Key: 2 million requests per month.\
Learn how to apply and generate your API Key here: API Keys
snapshot.js
, but I get a “Wrong proposal format” error. What should I do?There is a high chance that something is missing in the proposal’s payload. Make sure you are following the proposal schema defined here → https://github.com/snapshot-labs/snapshot.js/blob/master/src/schemas/proposal.json
snapshot.js
, but I get the “Wrong vote format” error. What should I do?Make sure that you’re following the vote schema defined here → https://github.com/snapshot-labs/snapshot.js/blob/master/src/schemas/vote.json.
A common mistake is using a wrong type (string instead of object) or extending a limit of a value (i.e. reason
).
snapshot.js
in python?No. If you are interested in building it, reach out to the team on the #developer channel!
Follow our documentation to learn all the steps to add a new network to Snapshot: #add-a-new-network
You can send a request to the node and try to fetch the genesis block:
$ curl -H "content-type: application/json" -X POST --data '{"id":0,"jsonrpc":"2.0","method":"eth_getBalance","params":["<CONTRACT_HASH>","0x1"]}' <RPC_URL>
If you get a correct response without any errors, the Node is a Full Archive.
You can browse through the existing staking strategies →https://snapshot.org/#/?type=strategies&q=stake.
If none of them work for you, have a look at the options below.
In order to use the staking contract it has to have a balanceOf
method which allows reading the balance of the staked tokens. You can use thehttps://snapshot.org/#/strategy/erc20-balance-of strategy with it.
If your contract has a method getting the balance named differently, you can also use thehttps://snapshot.org/#/strategy/contract-call strategy.
It usually takes around 72 hours so please have some patience. Once the PR is merged, you will also have to wait for a new release of the repository which can take another couple of days.
Yes. If it’s not supported yet you can create a custom voting strategy to enable delegation on your network. You can see an example here →https://snapshot.org/#/strategy/orbs-network-delegation
To learn more have a look at our documentation: Create a voting strategy
0
voting power in the delegation strategy playground but I can vote on real proposals.Most probably you are missing the delegationSpace
parameter. Make sure to provide the ENS domain of the space you are testing.
If it doesn’t exist yet, you can create a new voting strategy. Have a look at our documentation to learn more: Create a voting strategy
Yes, same as for Hub API. When it comes to snapshot.js, refer to in Snapshot.js documentation. Make sure to generate your API Key to get higher usage limits. One key can be used for all API services and limits are counted individually per service.
Have a look at our documentation here: