post
https://api.stake.fish/api/v1/chains/babylon-btc/transactions/prepare/delegate
Assemble a MsgCreateBTCDelegation Babylon transaction from signed BTC items.
This is step 3 of the BTC staking flow:
POST transactions/prepare/pre-delegate— Server creates staking TX, slashing PSBTs, unbonding PSBTs, and a POP message- Client signs the PSBTs and POP message with their BTC key
POST transactions/prepare/delegate— Server assembles the MsgCreateBTCDelegation (you are here)POST transactions/broadcast/babylon— Client signs and broadcasts the Babylon transactionGET stakes/:txId/status— Client polls until delegation reachesVERIFIEDorACTIVEstatePOST transactions/broadcast/bitcoin— Client broadcasts the signed Bitcoin staking transaction
Inputs Required:
- Session state from step 1
- Signed slashing PSBT, signed unbonding slashing PSBT
- POP signature (base64)
- Signed staking PSBT
- Original staking parameters (address, public key, amount, timelock)
Returns:
- Unsigned Babylon (Cosmos) transaction in base64 (to be signed with Babylon key in step 4)
- Signed Bitcoin staking transaction in hex (to be broadcast in step 6, after delegation is verified in step 5)
