Skip to content

Commit 483a893

Browse files
committed
WIP: add assetLock broadcast
1 parent 69d5305 commit 483a893

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

demo.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ let KeyUtils = require("./key-utils.js");
1111
// let DapiGrpc = require("@dashevo/dapi-grpc");
1212
let Dpp = require("@dashevo/wasm-dpp");
1313

14+
let rpcAuthUrl = "https://api:[email protected]";
15+
1416
const DIP13_ECDSA = 0;
1517

1618
let identityEcdsaPath = "";
@@ -64,7 +66,6 @@ async function main() {
6466
pubKeyHash: pkh,
6567
});
6668

67-
let rpcAuthUrl = "https://api:[email protected]";
6869
let utxos = await DashTx.utils.rpc(rpcAuthUrl, "getaddressutxos", {
6970
addresses: [addr],
7071
});
@@ -101,6 +102,12 @@ async function main() {
101102
console.log(`txSigned:`);
102103
console.log(txSigned);
103104

105+
// let txid = await DashTx.utils.rpc(
106+
// rpcAuthUrl,
107+
// "sendrawtransaction",
108+
// txSigned.transaction,
109+
// );
110+
104111
// let assetLockProof = await YoureAWizardHarry.doMagic();
105112

106113
// let idIndex = 0; // increment to first unused

0 commit comments

Comments
 (0)