Check a send to Canton (Before-you-send checklist)
gateway_preflightValidate a Zenith EVM-to-Canton transfer against every pre-send rule, dry-run the exact transaction, and return pass/fail checks, fixes, arrival amount, and unsigned tx without sending.
Instructions
Runs every rule in Zenith's "Before you send" checklist for a transfer from Zenith EVM to a Canton party, then dry-runs the exact transaction against the network (eth_estimateGas) to surface its own refusal reason. Returns pass/fail per check with fixes, the amount that arrives on Canton, and the unsigned transaction. Never sends anything. ALWAYS call this before sending to a Canton party.
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": {
"partyId": "<partyId>",
"token": "<token>",
"amount": "<amount>"
},
"name": "gateway_preflight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Sender address; enables the balance check and the live dry run | |
| token | Yes | Token: "ZTH", a symbol (e.g. DevUSD, DORIG), a Canton instrument ID or an ERC-20 address | |
| amount | Yes | Amount, e.g. "0.5" | |
| partyId | Yes | Full Canton party ID: hint::1220 followed by 64 hex digits | |
| amountUnit | No | token = whole tokens (default); base = EVM base units / wei | token |