Step 2: Submit a signed claim-reward transaction
Submits the signed claim-reward transaction with the original proof.
POST
/
transactions
/
claim-reward
/
submit
Step 2: Submit a signed claim-reward transaction
curl --request POST \
--url https://api.trepa.app/transactions/claim-reward/submit \
--header 'Content-Type: application/json' \
--data '
{
"reward_id": "<string>",
"signed_transaction": "<string>",
"proof": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({reward_id: '<string>', signed_transaction: '<string>', proof: '<string>'})
};
fetch('https://api.trepa.app/transactions/claim-reward/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({reward_id: '<string>', signed_transaction: '<string>', proof: '<string>'})
};
fetch('https://api.trepa.app/transactions/claim-reward/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trepa.app/transactions/claim-reward/submit"
payload = {
"reward_id": "<string>",
"signed_transaction": "<string>",
"proof": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.trepa.app/transactions/claim-reward/submit"
payload := strings.NewReader("{\n \"reward_id\": \"<string>\",\n \"signed_transaction\": \"<string>\",\n \"proof\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"signature": "<string>",
"reward": {
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"prediction_id": "<string>",
"amount": 123,
"precision_score": 123,
"is_claimed": true,
"type": "REWARD"
}
}Last modified on August 12, 2026
⌘I
Step 2: Submit a signed claim-reward transaction
curl --request POST \
--url https://api.trepa.app/transactions/claim-reward/submit \
--header 'Content-Type: application/json' \
--data '
{
"reward_id": "<string>",
"signed_transaction": "<string>",
"proof": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({reward_id: '<string>', signed_transaction: '<string>', proof: '<string>'})
};
fetch('https://api.trepa.app/transactions/claim-reward/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({reward_id: '<string>', signed_transaction: '<string>', proof: '<string>'})
};
fetch('https://api.trepa.app/transactions/claim-reward/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trepa.app/transactions/claim-reward/submit"
payload = {
"reward_id": "<string>",
"signed_transaction": "<string>",
"proof": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.trepa.app/transactions/claim-reward/submit"
payload := strings.NewReader("{\n \"reward_id\": \"<string>\",\n \"signed_transaction\": \"<string>\",\n \"proof\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"signature": "<string>",
"reward": {
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"prediction_id": "<string>",
"amount": 123,
"precision_score": 123,
"is_claimed": true,
"type": "REWARD"
}
}