/v1/addresses/
/v1/balance/
/v1/notifications/
/v1/sendmaxinfo/
/v1/txhistory/
/v1/txnotes/:txid/
/v1/txnotes/
/v1/utxos/
/v1/version/
/v2/feelevels/
/v2/txproposals/
/v3/wallets/
/v1/addresses/scan/
/v1/broadcast_raw/
/v1/txproposals/:id/broadcast/
/v1/txproposals/:id/signatures/
/v2/txproposals/:id/publish/
/v2/wallets/:id/copayers/
/v2/wallets/
/v3/txproposals/
/v4/addresses/
/v1/copayers/:id/
/v1/txnotes/:txid/
/v1/txproposals/:id/
Note: all currency amounts are in units of satoshis (1/100,000,000 of a bitcoin).
For a complete list of available APIs see below.
In order to access a wallet, clients are required to send the headers:
x-identity
x-signature
Identity is the Peer-ID, this will identify the peer and its wallet. Signature is the current request signature, using requestSigningKey
, the m/1/1
derivative of the Extended Private Key.
See Bitcore Wallet Client for implementation details.
Optional Arguments:
- ignoreMaxGap: [false] Ignore checking less that 20 unused addresses (BIP44 GAP)
Returns:
- List of Addresses object. This call is mainly provided so the client check this addresses for incoming transactions (using a service like Insight
- Returns cashaddr without prefix for BCH
Returns:
- totalAmount: Wallet's total balance
- lockedAmount: Current balance of outstanding transaction proposals, that cannot be used on new transactions.
- availableAmount: Funds available for new proposals.
- totalConfirmedAmount: Same as totalAmount for confirmed UTXOs only.
- lockedConfirmedAmount: Same as lockedAmount for confirmed UTXOs only.
- availableConfirmedAmount: Same as availableAmount for confirmed UTXOs only.
- byAddress array ['address', 'path', 'amount']: A list of addresses holding funds.
- totalKbToSendMax: An estimation of the number of KiB required to include all available UTXOs in a tx (including unconfirmed).
inbitcoin change: added workaround to pass txis as a string on limit param
Optional Arguments:
- skip: Records to skip from the result (defaults to 0)
- limit: Total number of records to return (return all available records if not specified).
Returns:
- History of incoming and outgoing transactions of the wallet. The list is paginated using the
skip
&limit
params. Each item has the following fields: - action ('sent', 'received', 'moved')
- amount
- fees
- time
- addressTo
- confirmations
- proposalId
- creatorName
- message
- actions array ['createdOn', 'type', 'copayerId', 'copayerName', 'comment']
Returns:
- The note associated to the
txid
as a string.
Returns:
-
List of pending TX Proposals. (see fields on the source code)
-
Uses cashaddr without prefix for BCH
Returns:
- Wallet object. (see fields on the source code).
Optional Arguments:
- provider: An identifier representing the source of the rates.
- ts: The timestamp for the fiat rate (defaults to now).
Returns:
- The fiat exchange rate.
Optional Arguments:
- includeCopayerBranches: Scan all copayer branches following BIP45 recommendation (defaults to false).
Returns:
- TX Proposal object. (see fields on the source code).
.status
is probably needed in this case.
Required Arguments:
- signatures: All Transaction's input signatures, in order of appearance.
Returns:
- TX Proposal object. (see fields on the source code).
.status
is probably needed in this case.
Returns:
- TX Proposal object. (see fields on the source code).
Required Arguments:
- walletId: Id of the wallet to join
- name: Copayer Name
- xPubKey - Extended Public Key for this copayer.
- requestPubKey - Public Key used to check requests from this copayer.
- copayerSignature - Signature used by other copayers to verify that the copayer joining knows the wallet secret.
Returns:
- copayerId: Assigned ID of the copayer (to be used on x-identity header)
- wallet: Object with wallet's information
Required Arguments:
- name: Name of the wallet
- m: Number of required peers to sign transactions
- n: Number of total peers on the wallet
- pubKey: Wallet Creation Public key to check joining copayer's signatures (the private key is unknown by BWS and must be communicated by the creator peer to other peers).
Returns:
- walletId: Id of the new created wallet
Required Arguments:
- toAddress: RCPT Bitcoin address.
- amount: amount (in satoshis) of the mount proposed to be transfered
- proposalsSignature: Signature of the proposal by the creator peer, using proposalSigningKey.
- (opt) message: Encrypted private message to peers.
- (opt) payProUrl: Paypro URL for peers to verify TX
- (opt) feePerKb: Use an alternative fee per KB for this TX.
- (opt) excludeUnconfirmedUtxos: Do not use UTXOs of unconfirmed transactions as inputs for this TX.
- BCH addresses need to be cashaddr without prefix.
Returns:
- TX Proposal object. (see fields on the source code).
.id
is probably needed in this case.
Returns:
- Address object: (/packages/bitcore-wallet-service/src/lib/model/address.ts). Note that
path
is returned so client can derive the address independently and check server's response.
Returns:
- TX Proposal object. (see fields on the source code).
.status
is probably needed in this case.
/v1/txconfirmations/
: Subscribe to receive push notifications when the specified transaction gets confirmed
Required Arguments:
- txid: The transaction to subscribe to.
/v1/txproposals/:id/
: Deletes a transaction proposal. Only the creator can delete a TX Proposal, and only if it has no other signatures or rejections
Returns:
- TX Proposal object. (see fields on the source code).
.id
is probably needed in this case.
/v1/txconfirmations/:txid
: Unsubscribe from transaction txid
and no longer listen to its confirmation
Recomended to complete config.js file: