Constructor
new Swap(settingsopt)
Atomically execute a set of transactions across two Chain components.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
settings |
Object |
<optional> |
{} | Configuration for the swap. |
- Source:
Methods
extractSecret(tx, address) → {Mixed}
Find an input from the provided transaction which spends from the target
P2SH address.
Parameters:
Name | Type | Description |
---|---|---|
tx |
Transaction | Transaction to iterate over. |
address |
String | P2SH address to search for. |
- Source:
Returns:
False on failure, secret value on success.
- Type
- Mixed