Skip to main content
POST
/
rewards
/
{address}
/
claim-payload
Build a claim transaction payload
curl --request POST \
  --url https://app.elata.bio/api/rewards/{address}/claim-payload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "programIds": [
    "<string>"
  ]
}
'
{
  "to": "<string>",
  "data": "<string>",
  "value": "<string>",
  "chainId": 123,
  "merkleProofs": [
    {
      "programId": "<string>",
      "proof": [
        "<string>"
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

SIWE-issued JWT, scoped to a wallet address. Obtain via Sign-In With Ethereum (EIP-4361) against app.elata.bio. Required for personalized Portfolio and Rewards endpoints. The sub claim is the wallet address; a request whose path {address} does not match the sub is rejected.

Path Parameters

address
string
required

Wallet address.

Pattern: ^0x[a-fA-F0-9]{40}$

Body

application/json
programIds
string[]
required

Response

Claim payload.

to
string

Contract address the user must call.

data
string

ABI-encoded calldata.

value
string

ETH value to send (wei). Usually "0".

chainId
integer
merkleProofs
object[]