Unsigned stake and vote delegation transaction (nothing is signed or sent)
build_delegation_transactionBuild an unsigned Cardano transaction that delegates a wallet's stake to a pool and/or its voting power to a DRep (or to "abstain" / "no-confidence"), for a wallet that signs for itself. Give the wallet's base address (or $handle) and at least one of pool and drep. Returns the transaction as CBOR hex with its hash, the fee and deposit (the refundable stake-key deposit, currently 2 ADA, only when the stake key is not registered yet), the certificates in plain words, the inputs and the single output that returns everything to the wallet, a read-back of the transaction decoded independently of the builder, the cost worked out from the transaction itself (cost), warnings and how to sign and submit it. Both the payment key and the stake key must sign. Refuses when the pool is unknown or retiring, the DRep is unknown or retired, the wallet already delegates there, the address is an enterprise or script address, or there is not enough ADA. Realtap never signs, holds keys or submits: nothing happens until the owner of the address signs and submits it. Call it only when that owner asked to stake or delegate; check the pool or DRep first with get_stake_pool or get_drep. Limited to a few calls per minute.
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": {
"address": "<address>"
},
"name": "build_delegation_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| drep | No | DRep to delegate voting power to: a drep1… id (CIP-129 or legacy), "abstain" (always abstain) or "no-confidence" (always no confidence). Omit to leave the voting delegation as it is. | |
| pool | No | Stake pool to delegate the stake to: a pool1… id or the 56-character hex of its key hash. Omit to leave the stake delegation as it is. | |
| address | Yes | The signer's mainnet base address (addr1…, 103 characters: payment and stake part) or a $handle that resolves to one. Enterprise, script and stake1… addresses cannot delegate. |