π©βπ»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!
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:
Follow our documentation to learn all the steps to add a new network to Snapshot: