Fiber LogoFiber Docs
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 ID
  • funding_udt_type_script - Option<Script>, Funding UDT type script
  • local_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

Returns

  • None

Method update_revocation

Update revocation

Params

Returns

  • None

Method update_pending_remote_settlement

Update pending remote settlement

Params

Returns

  • None

Method update_local_settlement

Update settlement

Params

Returns

  • None

Method create_preimage

Create preimage

Params

Returns

  • None

Method remove_preimage

Remove preimage

Params

  • payment_hash - Hash256, Payment hash

Returns

  • None

Fiber AI Assistant

Ask me anything

I can answer questions about Fiber Network using our documentation.

AI answers are based on Fiber documentation