Merkl Developer Portal logo
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

campaignIdstring
required

The identifier of the campaign whose rewards are reallocated.

distributionChainIdnumber | string
required

The chain the campaign is distributed on.

Request body

object
fromsstring[]
required
Source addresses to reallocate from (the zero address alone reallocates every wallet).
tostring
required
Destination address that receives the reallocated rewards.
callerstringAddress signing the reallocation (creator or authorized operator). Required on Stellar (transaction source), ignored on EVM.