post
/v4/config/encode/reallocate
Beta feature (not production ready yet) - Builds the transaction payload used to reallocate an existing campaign's unclaimed rewards on-chain (EVM calldata / Stellar XDR). Requires campaignId and distributionChainId query parameters.
Query parameters
campaignIdstringrequired
distributionChainIdnumber | stringrequired
Request body
object
fromsstring[]required
Source addresses to reallocate from (the zero address alone reallocates every wallet).tostringrequired
Destination address that receives the reallocated rewards.callerstringAddress signing the reallocation (creator or authorized operator). Required on Stellar (transaction source), ignored on EVM.post
https://api.merkl.xyz/v4/config/encode/reallocatecurl -X POST "https://api.merkl.xyz/v4/config/encode/reallocate" \
-H "Content-Type: application/json" \
-d '{ "froms": [ "string" ], "to": "string", "caller": "string" }'Current params
{
"body": {
"froms": [
"string"
],
"to": "string",
"caller": "string"
}
}Live request — this will call https://api.merkl.xyz/ for real.