Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 45d1b31

Browse files
committed
add package json and sample get-utxos test (manual, no jets yet, not mocked yet)
1 parent d1c97e2 commit 45d1b31

3 files changed

Lines changed: 53 additions & 0 deletions

File tree

blockchain-api/get-utxos.test.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const getUTXOs = require('./get-utxos')
2+
3+
// test address
4+
const address = "1F9TTRQsk1yz9QHN8EuSVLqS5TYkvzjhR5"
5+
6+
;(async () => {
7+
try {
8+
const utxos = await getUTXOs({ address })
9+
console.log("UTXOs:", utxos)
10+
} catch (err) {
11+
console.error(err)
12+
}
13+
})()

blockchain-api/package-lock.json

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

blockchain-api/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"dependencies": {
3+
"axios": "^0.19.2"
4+
}
5+
}

0 commit comments

Comments
 (0)