RPC API Reference
Module `Watchtower`
Watchtower RPC methods
Module Watchtower
RPC module for watchtower related operations
Method create_watch_channel
Create a new watched channel
Params
channel_id- Hash256, Channel IDfunding_udt_type_script-Option<Script>, Funding UDT type scriptlocal_settlement_key- Privkey, The local party's private key used to settle the commitment transaction (hex without 0x prefix)remote_settlement_key- Pubkey, The remote party's public key used to settle the commitment transaction (hex without 0x prefix)local_funding_pubkey- Pubkey, The local party's funding public key (hex without 0x prefix)remote_funding_pubkey- Pubkey, The remote party's funding public key (hex without 0x prefix)settlement_data- SettlementData, Settlement data
Returns
- None
Method remove_watch_channel
Remove a watched channel
Params
channel_id- Hash256, Channel ID
Returns
- None
Method update_revocation
Update revocation
Params
channel_id- Hash256, Channel IDrevocation_data- RevocationData, Revocation datasettlement_data- SettlementData, Settlement data
Returns
- None
Method update_pending_remote_settlement
Update pending remote settlement
Params
channel_id- Hash256, Channel IDsettlement_data- SettlementData, Settlement data
Returns
- None
Method update_local_settlement
Update settlement
Params
channel_id- Hash256, Channel IDsettlement_data- SettlementData, Settlement data
Returns
- None
Method create_preimage
Create preimage
Params
Returns
- None
Method remove_preimage
Remove preimage
Params
payment_hash- Hash256, Payment hash
Returns
- None