> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openformat.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Welcome

> Integrate rewards and reputation into your community in minutes.

> [card] [Rewards Platform ->](https://rewards.openformat.tech/)
>
> The easiest way to get started is to use the rewards platform.

## Overview

Open format is an on-chain reward system. At it's core is a set of smart contracts that we call a `dApp` (decentralised app).

> [!NOTE]
>
> We are currently in the process of updating our documentation. If you need any assistance, please reach out to us on
> [Discord](https://discord.gg/Aays8HBkZ2) for support.

### Rewards

Reward tokens and badges based on members contributions.
Assets can be created before hand in the [platform](https://rewards.openformat.tech/) or dynamically using the
[SDK](https://docs.openformat.tech/sdks/typescript/create-badge).

To reward those assets set up triggers in your server-side code.

### Rewarding token example

```tsx Typescript theme={null}
import { RewardActionType, RewardType, toWei } from "@openformat/sdk";

const params = [
  {
    // The address of the user who is receiving the token
    receiver: "0x821EFACF307Add10fd9A812624955cbEF943265c",
    // A given ID for an action a user completes in your application
    id: "signed-up",
    // The smart contract address of your token
    address: "0x72092f038f94833f37cc197874ac8c9b02689ac1",
    // The amount of tokens the receiver address will receive
    amount: toWei("10"),
    // The type of transaction to trigger e.g mint or transfer
    actionType: RewardActionType.MINT,
    // The type of reward
    rewardType: RewardType.TOKEN,
    // The URI of the token metadata
    uri: "ipfs://",
  },
];

await sdk.Reward.trigger(params);
```

```curl API theme={null}
curl --request POST \
  --url https://api.openformat.tech/v1/reward/XP \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "chain": "arbitrum-sepolia",
  "action_id": "signed-up",
  "receiver": "0x821EFACF307Add10fd9A812624955cbEF943265c",
  "app_id": "0x9716fb655f2a72b1fc1b4db02b8ad20b6747442a",
  "amount": 123
}'
```

### Leaderboards

Create simple leaderboards using the [API leaderboard endpoint](https://docs.openformat.tech/api-reference/endpoint/leaderboard/get-leaderboard.md)
or with no-code [BuildShip leaderboard template](https://docs.openformat.tech/no-code/buildship/templates/leaderboard.mdx).

### Webhooks

Use [webhooks](https://docs.openformat.tech/api-reference/architecture/notifications.md) to notify users in real-time for channels like Discord and Slack.

> [card] [Get Started ->](https://docs.openformat.tech/get-started.md)
>
> Create your dApp and get an API key.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.