Skip to content

Commit

Permalink
WIP: add assetLock broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
coolaj86 committed Aug 23, 2024
1 parent 59c561e commit 8896732
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ let KeyUtils = require("./key-utils.js");
// let DapiGrpc = require("@dashevo/dapi-grpc");
let Dpp = require("@dashevo/wasm-dpp");

let rpcAuthUrl = "https://api:[email protected]";

const DIP13_ECDSA = 0;

let identityEcdsaPath = "";
Expand Down Expand Up @@ -64,7 +66,6 @@ async function main() {
pubKeyHash: pkh,
});

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

// let txid = await DashTx.utils.rpc(
// rpcAuthUrl,
// "sendrawtransaction",
// txSigned.transaction,
// );

// let assetLockProof = await YoureAWizardHarry.doMagic();

// let idIndex = 0; // increment to first unused
Expand Down

0 comments on commit 8896732

Please sign in to comment.