chain_merkle_build
Merkle tree builder for airdrops and allowlists (OpenZeppelin format) — Build an OpenZeppelin StandardMerkleTree from up to 2000 rows (e.g. address,amount) and get the root, every row's leaf and proof, and (for up to 500 rows) the full ozDump that StandardMerkleTree.load() accepts. Leaves are keccak256(bytes.concat(keccak256(abi.encode(values)))) with sorted-pair hashing, exactly what OpenZeppelin MerkleProof.verify expects on-chain; output matches @openzeppelin/merkle-tree byte for byte. entries= rows separated by ; and values by , (uint values in base units, e.g. wei). Optional: types= (default address,uint256; supports address, bool, bytes32, uint8..uint256), for= (return only the proof for rows whose first value matches, e.g. one wallet). Offline and deterministic; 400 on malformed or duplicate rows. Price: $0.004 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entries": "<entries>"
},
"name": "chain_merkle_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entries | Yes | 0x1111111111111111111111111111111111111111,5000000000000000000;0x2222222222222222222222222222222222222222,2500000000000000000 |