Skip to content

Instantly share code, notes, and snippets.

import NeucronSDK from "neucron-sdk";
const neucron = new NeucronSDK();
const authModule = neucron.authentication;
const walletModule = neucron.wallet;
// const signUpResponse = await authModule.signUp({ email: "rebecca@timechainlabs.io", password: "string" });
// console.log(signUpResponse);
import { PrivateKey, P2PKH, Transaction, ARC } from '@bsv/sdk'
const privKey = PrivateKey.fromRandom()
const WIF = privKey.toWif()
console.log("Private Key WIF format is ", WIF)
const address = privKey.toAddress()
console.log("Your bitcoin address is ", address)
// const privKey = PrivateKey.fromWif('L5EY1SbTvvPNSdCYQe1EJHfXCBBT4PmnF6CDbzCm9iifZptUvDGB')
// Docs for wallet javascript library:
// https://docs.relysia.com/
// Swagger API to test
// https://api.relysia.com/docs
// -------------------------------------------------------------
// STEP 0
// signup first using email and password by
// swagger UI at https://api.relysia.com/docs to make API call to
@enlightenedfish
enlightenedfish / relysia.js
Created April 2, 2022 10:21
relysia wallet setup script
// Docs for wallet javascript library:
// https://docs.relysia.com/
// Swagger API to test
// https://api.relysia.com/docs
// -------------------------------------------------------------
// STEP 0
// signup first using email and password by
// swagger UI at https://api.relysia.com/docs to make API call to