make_keyreg_txn
Create a key registration transaction for Algorand blockchain participation, specifying voting parameters and network settings.
Instructions
Create a key registration transaction
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": {
"from": "<from>",
"voteKey": "<voteKey>",
"selectionKey": "<selectionKey>",
"stateProofKey": "<stateProofKey>",
"voteFirst": "<voteFirst>",
"voteLast": "<voteLast>",
"voteKeyDilution": "<voteKeyDilution>"
},
"name": "make_keyreg_txn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Sender address in standard Algorand format (58 characters) | |
| voteKey | Yes | The root participation public key (58 bytes base64 encoded) | |
| selectionKey | Yes | VRF public key (32 bytes base64 encoded) | |
| stateProofKey | Yes | State proof public key (64 bytes base64 encoded) | |
| voteFirst | Yes | First round this participation key is valid | |
| voteLast | Yes | Last round this participation key is valid | |
| voteKeyDilution | Yes | Dilution for the 2-level participation key | |
| nonParticipation | No | Mark account as nonparticipating for rewards | |
| note | No | Transaction note field (up to 1000 bytes) | |
| rekeyTo | No | Address to rekey the sender account to | |
| fee | No | Transaction fee in microAlgos. If not set, uses suggested fee from the network | |
| flatFee | No | If true, fee is used as-is (flat fee). If false (default), fee is per-byte | |
| network | No | Algorand network to use (default: mainnet) | |
| itemsPerPage | No | Number of items per page for paginated responses (default: 10) |