- BTC_Base
Bitcoin Base
- BTC_Inbound ⇐
BTC_Base Bitcoin Inbound
- BTC_Outbound ⇐
BTC_Base Bitcoin Outbound
Bitcoin Base
Kind: global class
- BTC_Base
- .storemanQuota(opts, skipValidation) ⇒
Promise - .storemanInfo(opts, skipValidation) ⇒
Promise - .buildStoremanQuotaTx(opts, skipValidation) ⇒
Object - .buildStoremanInfoTx(opts, skipValidation) ⇒
Object - .buildStoremanQuotaData(opts, skipValidation) ⇒
string - .buildStoremanInfoData(opts, skipValidation) ⇒
string
- .storemanQuota(opts, skipValidation) ⇒
Make storeman quota call on Wanchain
Kind: instance method of BTC_Base
Returns: Promise - Promise returning object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| skipValidation | boolean |
Make storeman quota info on Wanchain
Kind: instance method of BTC_Base
Returns: Promise - Promise returning object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| skipValidation | boolean |
Build storeman quota call
Kind: instance method of BTC_Base
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| skipValidation | boolean |
Build storeman info call
Kind: instance method of BTC_Base
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| skipValidation | boolean |
Get data hex string for storeman quota call
Kind: instance method of BTC_Base
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Data options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| skipValidation | boolean |
Get data hex string for storeman info call
Kind: instance method of BTC_Base
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Data options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| skipValidation | boolean |
BTC_Inbound ⇐ BTC_Base
Bitcoin Inbound
Kind: global class
Extends: BTC_Base
- BTC_Inbound ⇐
BTC_Base- .send(opts, skipValidation) ⇒
Promise - .lock(opts, skipValidation) ⇒
Promise - .redeem(opts, skipValidation) ⇒
Promise - .sendLock(opts, skipValidation) ⇒
Promise - .sendRedeem(opts, skipValidation) ⇒
Promise - .listenLock(opts, skipValidation) ⇒
Promise - .listenRedeem(opts, skipValidation) ⇒
Promise - .buildLockTx(opts, skipValidation) ⇒
Object - .buildRedeemTx(opts, skipValidation) ⇒
Object - .buildLockScanOpts(opts, skipValidation) ⇒
Object - .buildRedeemScanOpts(opts, skipValidation) ⇒
Object - .buildLockData(opts, skipValidation) ⇒
string - .buildRedeemData(opts, skipValidation) ⇒
string - .buildHashTimeLockContract(opts) ⇒
Object - .hashForRevokeSig(opts) ⇒
string - .buildRevokeTx(opts) ⇒
string - .buildRevokeTxFromWif(opts) ⇒
string - .storemanQuota(opts, skipValidation) ⇒
Promise - .storemanInfo(opts, skipValidation) ⇒
Promise - .buildStoremanQuotaTx(opts, skipValidation) ⇒
Object - .buildStoremanInfoTx(opts, skipValidation) ⇒
Object - .buildStoremanQuotaData(opts, skipValidation) ⇒
string - .buildStoremanInfoData(opts, skipValidation) ⇒
string
- .send(opts, skipValidation) ⇒
Complete crosschain transaction (lock + redeem); Assumes you have already
generated a new HTLC lock address with buildHashTimeLockContract and
have funded the address
Kind: instance method of BTC_Inbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Revoker btc address |
| opts.to | string |
Destination wan address |
| opts.value | string |
Tx value |
| opts.txid | string |
Id of funding btc tx |
| opts.lockTime | string |
LockTime used to generate lock address |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.storeman.btc | string |
Storeman Bitcoin address |
| skipValidation | boolean |
Lock transaction and confirmation; Assumes you have already generated a
new HTLC lock address with buildHashTimeLockContract and have funded the
address
Kind: instance method of BTC_Inbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Revoker btc address |
| opts.to | string |
Destination wan address |
| opts.value | string |
Tx value |
| opts.txid | string |
Id of funding btc tx |
| opts.lockTime | string |
LockTime used to generate lock address |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.storeman.btc | string |
Storeman Bitcoin address |
| skipValidation | boolean |
Redeem transaction and confirmation
Kind: instance method of BTC_Inbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.to | string |
Destination wan address |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| skipValidation | boolean |
Send lock tx on Wanchain
Kind: instance method of BTC_Inbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Revoker btc address |
| opts.to | string |
Destination wan address |
| opts.value | string |
Tx value |
| opts.txid | string |
Id of funding btc tx |
| opts.lockTime | string |
LockTime used to generate lock address |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.storeman.btc | string |
Storeman Bitcoin address |
| skipValidation | boolean |
Send redeem tx on Wanchain
Kind: instance method of BTC_Inbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.to | string |
Destination wan address |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| skipValidation | boolean |
Listen for storeman lock confirmation on Wanchain
Kind: instance method of BTC_Inbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| skipValidation | boolean |
Listen for storeman redeem confirmation on Wanchain
Kind: instance method of BTC_Inbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| skipValidation | boolean |
Build lock tx
Kind: instance method of BTC_Inbound
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Revoker btc address |
| opts.to | string |
Destination wan address |
| opts.value | string |
Tx value |
| opts.txid | string |
Id of funding btc tx |
| opts.lockTime | string |
LockTime used to generate lock address |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.storeman.btc | string |
Storeman Bitcoin address |
| skipValidation | boolean |
Build redeem tx
Kind: instance method of BTC_Inbound
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.to | string |
Destination wan address |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| skipValidation | boolean |
Build lock scan opts
Kind: instance method of BTC_Inbound
Returns: Object - Call opts object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| skipValidation | boolean |
Build redeem scan opts
Kind: instance method of BTC_Inbound
Returns: Object - Call opts object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| skipValidation | boolean |
Get data hex string for lock call
Kind: instance method of BTC_Inbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman wan address |
| opts.from | string |
Address that funded the P2SH address |
| opts.txid | string |
ID of tx that funded the P2SH address |
| opts.lockTime | number |
Locktime used to generate P2SH address |
| skipValidation | boolean |
Get data hex string for redeem call
Kind: instance method of BTC_Inbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| skipValidation | boolean |
Build new P2SH lock contract address
Kind: instance method of BTC_Inbound
Returns: Object - Contract object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Revoker btc address |
| opts.lockTime | number |
LockTime for lock address |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.btc | string |
Storeman Bitcoin address |
Build the hash for signature for revoke tx
Kind: instance method of BTC_Inbound
Returns: string - Hash string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Revoker btc address |
| opts.payTo | string |
Address to revoke funds to (optional, defaults to revoker) |
| opts.value | string |
Tx value (minus miner fee) |
| opts.txid | string |
Id of funding btc tx |
| opts.lockTime | number |
LockTime for lock address |
| opts.redeemScript | string |
Lock address redeemScript |
Build revoke tx from sigHash
Kind: instance method of BTC_Inbound
Returns: string - Signed tx as hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.value | string |
Tx value (minus miner fee) |
| opts.txid | string |
Id of funding btc tx |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| opts.lockTime | number |
LockTime for lock address |
| opts.redeemScript | string |
Lock address redeemScript |
| opts.publicKey | string |
Public key of the revoker |
| opts.sigHash | string |
Signed hash for signature |
| opts.payTo | string |
Address to revoke funds to (optional, defaults to revoker) |
Build revoke tx from WIF
Kind: instance method of BTC_Inbound
Returns: string - Signed tx as hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.value | string |
Tx value (minus miner fee) |
| opts.txid | string |
Id of funding btc tx |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| opts.lockTime | number |
LockTime for lock address |
| opts.redeemScript | string |
Lock address redeemScript |
| opts.wif | string |
Private key of the revoker |
| opts.payTo | string |
Address to revoke funds to (optional, defaults to revoker) |
Make storeman quota call on Wanchain
Kind: instance method of BTC_Inbound
Returns: Promise - Promise returning object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| skipValidation | boolean |
Make storeman quota info on Wanchain
Kind: instance method of BTC_Inbound
Returns: Promise - Promise returning object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| skipValidation | boolean |
Build storeman quota call
Kind: instance method of BTC_Inbound
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| skipValidation | boolean |
Build storeman info call
Kind: instance method of BTC_Inbound
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| skipValidation | boolean |
Get data hex string for storeman quota call
Kind: instance method of BTC_Inbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Data options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| skipValidation | boolean |
Get data hex string for storeman info call
Kind: instance method of BTC_Inbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Data options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| skipValidation | boolean |
BTC_Outbound ⇐ BTC_Base
Bitcoin Outbound
Kind: global class
Extends: BTC_Base
- BTC_Outbound ⇐
BTC_Base- .send(opts, skipValidation) ⇒
Promise - .lock(opts, skipValidation) ⇒
Promise - .getOutboundFee(opts, skipValidation) ⇒
Promise - .sendLock(opts, skipValidation) ⇒
Promise - .sendRevoke(opts, skipValidation) ⇒
Promise - .listenLock(opts, skipValidation) ⇒
Promise - .listenRedeem(opts, skipValidation) ⇒
Promise - .buildOutboundFeeTx(opts, skipValidation) ⇒
Object - .buildLockTx(opts, skipValidation) ⇒
Object - .buildRevokeTx(opts, skipValidation) ⇒
Object - .buildLockScanOpts(opts, skipValidation) ⇒
Object - .buildRedeemScanOpts(opts, skipValidation) ⇒
Object - .buildLockData(opts, skipValidation) ⇒
string - .buildRevokeData(opts, skipValidation) ⇒
string - .buildOutboundFeeData(opts, skipValidation) ⇒
string - .buildHashTimeLockContract(opts) ⇒
Object - .hashForRedeemSig(opts) ⇒
string - .buildRedeemTx(opts) ⇒
string - .buildRedeemTxFromWif(opts) ⇒
string - .storemanQuota(opts, skipValidation) ⇒
Promise - .storemanInfo(opts, skipValidation) ⇒
Promise - .buildStoremanQuotaTx(opts, skipValidation) ⇒
Object - .buildStoremanInfoTx(opts, skipValidation) ⇒
Object - .buildStoremanQuotaData(opts, skipValidation) ⇒
string - .buildStoremanInfoData(opts, skipValidation) ⇒
string
- .send(opts, skipValidation) ⇒
Complete crosschain transaction (lock + redeem)
Kind: instance method of BTC_Outbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Sender wan address |
| opts.to | string |
Redeemer btc address |
| opts.value | string |
Tx value |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.storeman.btc | string |
Storeman Bitcoin address |
| skipValidation | boolean |
Lock transaction and confirmation
Kind: instance method of BTC_Outbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Sender wan address |
| opts.to | string |
Redeemer btc address |
| opts.value | string |
Tx value |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.storeman.btc | string |
Storeman Bitcoin address |
| skipValidation | boolean |
Get outbound fee amount
Kind: instance method of BTC_Outbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Sender wan address |
| opts.value | string |
Tx value |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| skipValidation | boolean |
Send lock tx
Kind: instance method of BTC_Outbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Sender wan address |
| opts.to | string |
Redeemer btc address |
| opts.value | string |
Tx value |
| opts.outboundFee | string |
Tx outbound fee |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.storeman.btc | string |
Storeman Bitcoin address |
| skipValidation | boolean |
Send revoke tx
Kind: instance method of BTC_Outbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Sender wan address |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| skipValidation | boolean |
Listen for storeman lock confirmation on Wanchain
Kind: instance method of BTC_Outbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| skipValidation | boolean |
Listen for storeman redeem confirmation on Wanchain
Kind: instance method of BTC_Outbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| skipValidation | boolean |
Build outboundFee tx
Kind: instance method of BTC_Outbound
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Sender wan address |
| opts.value | string |
Tx value |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| skipValidation | boolean |
Build lock tx
Kind: instance method of BTC_Outbound
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Sender wan address |
| opts.to | string |
Redeemer btc address |
| opts.value | string |
Tx value |
| opts.outboundFee | string |
Tx outbound fee |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.storeman.btc | string |
Storeman Bitcoin address |
| skipValidation | boolean |
Build revoke tx
Kind: instance method of BTC_Outbound
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Sender wan address |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| skipValidation | boolean |
Build lock scan opts
Kind: instance method of BTC_Outbound
Returns: Object - Call opts object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| skipValidation | boolean |
Build redeem scan opts
Kind: instance method of BTC_Outbound
Returns: Object - Call opts object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| skipValidation | boolean |
Get data hex string for lock call
Kind: instance method of BTC_Outbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| opts.storeman | Object |
Storeman addr pair |
| opts.storeman.wan | string |
Storeman wan addr |
| opts.to | string |
Redeemer btc addr |
| opts.value | string |
Tx value |
| skipValidation | boolean |
Get data hex string for revoke call
Kind: instance method of BTC_Outbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| skipValidation | boolean |
Get data hex string for outboundFee call
Kind: instance method of BTC_Outbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.storeman | Object |
Storeman addr pair |
| opts.storeman.wan | string |
Storeman wan addr |
| opts.value | string |
Tx value |
| skipValidation | boolean |
Build P2SH lock contract address
Kind: instance method of BTC_Outbound
Returns: Object - Contract object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.to | string |
Redeemer btc address |
| opts.lockTime | number |
LockTime for lock address |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.btc | string |
Storeman Bitcoin address |
Build the hash for signature for redeem tx
Kind: instance method of BTC_Outbound
Returns: string - Hash string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.to | string |
Redeemer btc address |
| opts.value | string |
Tx value (minus miner fee) |
| opts.txid | string |
Id of funding btc tx |
| opts.redeemScript | string |
Lock address redeemScript |
Build redeem tx from sigHash
Kind: instance method of BTC_Outbound
Returns: string - Signed tx as hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.value | string |
Tx value (minus miner fee) |
| opts.txid | string |
Id of funding btc tx |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| opts.redeemScript | string |
Lock address redeemScript |
| opts.publicKey | string |
Public key of the redeemer |
| opts.sigHash | string |
Signed hash for signature |
| opts.payTo | string |
Address to redeem funds to (optional, defaults to redeemer) |
Build redeem tx from WIF
Kind: instance method of BTC_Outbound
Returns: string - Signed tx as hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.value | string |
Tx value (minus miner fee) |
| opts.txid | string |
Id of funding btc tx |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| opts.redeemScript | string |
Lock address redeemScript |
| opts.wif | string |
Private key of the redeemer |
| opts.payTo | string |
Address to redeem funds to (optional, defaults to redeemer) |
Make storeman quota call on Wanchain
Kind: instance method of BTC_Outbound
Returns: Promise - Promise returning object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| skipValidation | boolean |
Make storeman quota info on Wanchain
Kind: instance method of BTC_Outbound
Returns: Promise - Promise returning object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| skipValidation | boolean |
Build storeman quota call
Kind: instance method of BTC_Outbound
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| skipValidation | boolean |
Build storeman info call
Kind: instance method of BTC_Outbound
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| skipValidation | boolean |
Get data hex string for storeman quota call
Kind: instance method of BTC_Outbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Data options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| skipValidation | boolean |
Get data hex string for storeman info call
Kind: instance method of BTC_Outbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Data options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| skipValidation | boolean |