Skip to content

Latest commit

History

History
42 lines (36 loc) 路 1.32 KB

File metadata and controls

42 lines (36 loc) 路 1.32 KB

Task Creation Guide

This guide is for NGOs, sponsors, and community organizers who want to create climate-action tasks on EcoTask.

Prerequisites

  • A Stellar wallet with some XLM for transaction fees
  • Admin or sponsor access to the EcoTask platform

Creating a Task

Via API (Admin)

curl -X POST http://localhost:3000/tasks \
  -H "Authorization: Bearer <admin-jwt>" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Plant 10 Trees in Karura Forest",
    "description": "Help reforest Karura Forest by planting 10 indigenous tree seedlings.",
    "type": "TREE_PLANTING",
    "rewardAmount": 50,
    "lat": -1.2340,
    "lng": 36.8320,
    "radiusMeters": 500,
    "maxCompletions": 20
  }'

Task Types

Type Icon Example
TREE_PLANTING 馃尦 Plant trees in designated areas
TRASH_COLLECTION 鈾伙笍 Collect and sort recyclable waste
OCEAN_CLEANUP 馃寠 Remove trash from beaches and oceans
GARDENING 馃尡 Maintain community gardens
EDUCATION 馃摎 Teach environmental awareness
OTHER 馃搷 Other climate-positive actions

Best Practices

  • Set realistic reward amounts based on task difficulty
  • Include clear instructions and location details
  • Set appropriate expiration dates
  • Verify task locations are accessible to the community