Skip to content

Instantly share code, notes, and snippets.

const Dash = require('dash')
const clientOpts = {
network: 'testnet',
mnemonic: 'a Dash wallet mnemonic with evonet funds goes here'
}
const client = new Dash.Client(clientOpts)
const registerContract = async function() {
try {
@dashameter
dashameter / dash-platform.md
Created June 6, 2020 13:15
Dash Platform Documentation
@dashameter
dashameter / jembe.json
Last active June 11, 2020 03:30
jembe contract [wip]
{
"jams": {
"indices": [
{
"properties": [
{
"userId": "asc"
}
]
},
{
"Signup": {
"indices": [
{
"unique": false,
"properties": [
{
"accountDocId": "asc"
}
]
{
"Users": { "contractId": "3bhAjxGB5rZ8sTB1nEj1fC6SCZV6c3XEbX8Lm2arVbjA" },
"primitives": {
"contractId": "FtNpnUh4tdUmH6gpusHEToczNMwmf37h79pWkdwXgh6h"
},
"jembe": { "contractId": "4gzbZindZD91ehrTRRYVrXJAKq5wLPVtJiSLP71JAgeG" }
}
const Dash = require('dash');
const clientOpts = {
network: 'testnet',
wallet: {
mnemonic: 'mnemonic with funds',
}
};
const client = new Dash.Client(clientOpts);
const functions = require('firebase-functions');
const express = require('express');
const Dash = require('dash');
const cors = require('cors');
const app = express();

Keybase proof

I hereby claim:

  • I am dashameter on github.
  • I am dashameter (https://keybase.io/dashameter) on keybase.
  • I have a public key whose fingerprint is FDCE 9848 575C 61DE 6A12 0988 E2AF 6D99 C6FE 5FD7

To claim this, I am signing this object:

async synchronizeIdentities() {
const transactionsMap = await this.account.getTransactions();
const transactions = Object.keys(transactionsMap).map((txid) => {
return transactionsMap[txid];
});
const outputs = transactions.reduce((outputs, transaction) => {
const preparedOutputs = transaction.outputs.map((output, index) => {
let isBurnOutput;
clientOpts :>> {
unsafeOptions: { skipSynchronizationBeforeHeight: 495209 },
dapiAddresses: [ '34.220.41.134', '18.236.216.191', '54.191.227.118' ],
wallet: {
mnemonic: 'fever empty hotel donor chase funny photo honey economy near filter confirm'
}
}
warn: Running on a NodeJS env without any specified adapter. Data will not persist.
mnemonic: fever empty hotel donor chase funny photo honey economy near filter confirm