• new Spv(tbtcContracts
, bitcoinClient
): Spv
Name | Type |
---|---|
tbtcContracts |
TBTCContracts |
bitcoinClient |
BitcoinClient |
src/services/maintenance/spv.ts:21
• Private
Readonly
bitcoinClient: BitcoinClient
Bitcoin client handle.
src/services/maintenance/spv.ts:19
• Private
Readonly
tbtcContracts: TBTCContracts
Handle to tBTC contracts.
src/services/maintenance/spv.ts:15
▸ submitDepositSweepProof(transactionHash
, mainUtxo
, vault?
): Promise
<void
>
Prepares the proof of a deposit sweep transaction and submits it to the Bridge on-chain contract.
Name | Type | Description |
---|---|---|
transactionHash |
BitcoinTxHash |
Hash of the transaction being proven. |
mainUtxo |
BitcoinUtxo |
Recent main UTXO of the wallet as currently known on-chain. |
vault? |
ChainIdentifier |
(Optional) The vault pointed by swept deposits. |
Promise
<void
>
Empty promise.
src/services/maintenance/spv.ts:34
▸ submitRedemptionProof(transactionHash
, mainUtxo
, walletPublicKey
): Promise
<void
>
Prepares the proof of a redemption transaction and submits it to the Bridge on-chain contract.
Name | Type | Description |
---|---|---|
transactionHash |
BitcoinTxHash |
Hash of the transaction being proven. |
mainUtxo |
BitcoinUtxo |
Recent main UTXO of the wallet as currently known on-chain. |
walletPublicKey |
Hex |
Bitcoin public key of the wallet. Must be in the compressed form (33 bytes long with 02 or 03 prefix). |
Promise
<void
>
Empty promise.