Basic structure

This commit is contained in:
2020-12-23 17:30:18 +01:00
parent a9aa5c5249
commit 1492a15178
5 changed files with 654 additions and 0 deletions

15
src/app.ts Normal file
View File

@@ -0,0 +1,15 @@
import * as rpc from 'jayson';
async function run() {
const client = rpc.Client.http({
port: 18332,
auth: 'admin:admin'
});
client.request('getnewaddress', ['TestRPC', 'bech32'], (err, response) => {
if (err) throw err;
console.log(response.result);
})
}
run();