solknife_ct_withdraw_build
Build the 5-tx Withdraw saga. Agent supplies equality (320 B) + range U64 (936 B) proofs + new AES decryptable (36 B), plus the two ephemeral ctx-state pubkeys.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mint | Yes | A Solana address in base58, 32-44 chars. | |
| owner | Yes | A Solana address in base58, 32-44 chars. | |
| amount | Yes | Amount in base units as a decimal string (not a float). For a 6-decimal mint, "1000000" is 1 token. | |
| decimals | Yes | The mint's decimals. Must match the mint exactly. | |
| rangeProof | Yes | Base64 of the range proof from your ZK worker. | |
| equalityProof | Yes | Base64 of the ciphertext-commitment equality proof from your ZK worker. | |
| rangeContextAccount | Yes | A Solana address in base58, 32-44 chars. | |
| equalityContextAccount | Yes | A Solana address in base58, 32-44 chars. | |
| newDecryptableAvailable | Yes | Base64 of the 36-byte AES-encrypted new available balance your worker computed. |