Surveys: make a new survey 1
geode_surveys_make_a_new_survey_1Create a 1-question survey that pays each respondent payout. value must be at least payout × max_responses (the survey's budget). Writes to the chain: this prepares an unsigned transaction (an intent) for signer; nothing happens until you sign it with geode-local-signer and submit it with geode_submit_intent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | GEODE to send with this call (explicit; never inferred) | |
| payout | Yes | Amount in GEODE as a decimal string (e.g. "1.25"), or {"raw": "<planck>"} | |
| public | Yes | ||
| signer | Yes | Your account address (SS58). The transaction is prepared for this account; you sign it on your own machine with geode-local-signer. | |
| question_1 | Yes | UTF-8 text, at most 512 bytes; no control or invisible characters | |
| survey_name | Yes | UTF-8 text, at most 512 bytes; no control or invisible characters | |
| confirm_token | No | Token from the first call, to confirm this irreversible action | |
| max_responses | Yes | Non-negative integer as a string of digits |