You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
632 B
27 lines
632 B
"use strict";
|
|
const mymonero = require("../");
|
|
// const assert = require("assert");
|
|
|
|
var public_key =
|
|
"904e49462268d771cc1649084c35aa1296bfb214880fe2e7f373620a3e2ba597";
|
|
var private_key =
|
|
"52aa4c69b93b780885c9d7f51e6fd5795904962c61a2e07437e130784846f70d";
|
|
|
|
var nettype = mymonero.nettype_utils.network_type.MAINNET;
|
|
|
|
var monero_utils;
|
|
|
|
async function t1()
|
|
{
|
|
try {
|
|
var decoded = (await mymonero.monero_utils_promise).decode_address(
|
|
"49qwWM9y7j1fvaBK684Y5sMbN8MZ3XwDLcSaqcKwjh5W9kn9qFigPBNBwzdq6TCAm2gKxQWrdZuEZQBMjQodi9cNRHuCbTr",
|
|
nettype,
|
|
);
|
|
console.log("decoded", decoded)
|
|
} catch (e) {
|
|
console.log(e)
|
|
}
|
|
}
|
|
t1()
|