mint_token
Mints a shielded token with a custom name on a token-factory deployment, handling proof, signing, sponsor payment, and settlement status while keeping the caller seed local.
Instructions
Mint a shielded token with a name of your own on a token-factory deployment. This process is the issuer: its issuer secret derives from the caller seed, the mint is built, proven and signed here, and a sponsor pays; the seed never leaves this process. The factory has to be on the sponsor's contract list and mint on its circuit list. The same name from another issuer is another token. The answer names the token ({ tokenType, domain, issuerKey }); a landed mint makes the type known to the sponsor (swaps, offer board). The recipient defaults to this wallet (get_attester_identity); another wallet takes both of its keys. The tool waits until the job settled (about 1 minute) and returns { status, txHash, transactionHash, result }. failed: next says what to do. If the call was cut off or came back pending, run it again with the same arguments: it picks up the job it started and submits nothing new (the answer says deduplicated). With an idempotencyKey that also holds after a restart of this server. A second, separate call with the same arguments needs a new idempotencyKey.
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": {
"contractAddress": "<contractAddress>",
"name": "<name>",
"amount": "<amount>"
},
"name": "mint_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Token name, at most 32 UTF-8 bytes; with the issuer it names the token type | |
| amount | Yes | Atoms to mint; a decimal string is exact | |
| idempotencyKey | No | Dedupes retries | |
| contractAddress | Yes | A token-factory deployment | |
| recipientCoinPublicKey | No | Zswap coin public key of the receiving wallet (64 hex); default this wallet's own | |
| recipientEncryptionPublicKey | No | The receiving wallet's encryption public key (64 hex); required with a recipient other than this wallet |