From 68015bfb5804259ba93fb8e00a47e7158105c8c9 Mon Sep 17 00:00:00 2001 From: Esteban Ordano Date: Wed, 4 Feb 2015 10:44:14 -0300 Subject: [PATCH] Suggest that users use `.toObject()` for tx serialization --- docs/transaction.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/transaction.md b/docs/transaction.md index ed3ba50..22920ac 100644 --- a/docs/transaction.md +++ b/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());