PrivateDAO Payment Preparation
privatepay_preparePrepare an unsigned MagicBlock deposit, private transfer, or withdrawal for a local wallet to inspect and sign. Call this after privatepay_checkout and before wallet authorization; PrivateDAO never receives a private key and this tool never broadcasts.
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": {
"request_id": "<request_id>",
"amount_base_units": "<amount_base_units>"
},
"name": "privatepay_prepare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | No | Optional destination or balance owner public key. | |
| payer | No | Wallet public key that will inspect and authorize the transaction. | |
| phase | No | Unsigned wallet operation to prepare after the challenge: deposit into the private rail, private transfer, or withdrawal. | transfer |
| split | No | Optional private transfer split count, from one to fifteen. | |
| gasless | No | Request the configured sponsored route when supported; the wallet still signs the returned transaction. | |
| request_id | Yes | PrivatePAY request identifier returned by the challenge or checkout. | |
| amount_base_units | Yes | Token amount in base units. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phase | No | Prepared private-rail operation. | |
| request_id | No | PrivatePAY request identifier bound to the unsigned operation. | |
| transaction | No | Serialized unsigned transaction when the provider returns one. | |
| required_signers | No | Wallet public keys that must sign locally. |