Browse Source

Suggest that users use `.toObject()` for tx serialization

patch-2
Esteban Ordano 10 years ago
parent
commit
68015bfb58
  1. 4
      docs/transaction.md

4
docs/transaction.md

@ -56,15 +56,13 @@ To send a transaction to a multisig address, the API is the same as in the above
.change(address)
.sign(myKeys);
var serialized = multiSigTx.serialize();
var serialized = multiSigTx.toObject();
```
This can be serialized and sent to another party, to complete with the needed signatures:
```javascript
var multiSigTx = new Transaction(serialized)
.from(utxo, publicKeys, threshold) // provide info about the multisig output
// (lost on serialization)
.sign(anotherSetOfKeys);
assert(multiSigTx.isFullySigned());

Loading…
Cancel
Save