From f664e6a4af1bed37ed0239b1e74efddb6d77d4b3 Mon Sep 17 00:00:00 2001 From: Manuel Araoz Date: Wed, 17 Dec 2014 17:28:29 -0300 Subject: [PATCH] shorten example --- docs/Script.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/docs/Script.md b/docs/Script.md index b9a0571..e26c978 100644 --- a/docs/Script.md +++ b/docs/Script.md @@ -132,18 +132,6 @@ Note that `verify` expects two scripts: one is the input script (scriptSig) and It also accepts some optional parameters, assuming defaults if not provided: ``` // first we create a transaction -var privateKey = new PrivateKey('cSBnVM4xvxarwGQuAfQFwqDg9k5tErHUHzgWsEfD4zdwUasvqRVY'); -var publicKey = privateKey.publicKey; -var fromAddress = publicKey.toAddress(); -var toAddress = 'mrU9pEmAx26HcbKVrABvgL7AwA5fjNFoDc'; -var scriptPubkey = Script.buildPublicKeyHashOut(fromAddress); -var utxo = { - address: fromAddress, - txId: 'a477af6b2667c29670467e4e0728b685ee07b240235771862318e29ddbe58458', - outputIndex: 0, - script: scriptPubkey, - satoshis: 100000 -}; var tx = new Transaction() .from(utxo) .to(toAddress, 100000)