corrected response mapping from API requests

This commit is contained in:
Maxime Van Hees
2025-05-13 10:40:03 +02:00
parent 3417e2c1ff
commit 3225b3f029
2 changed files with 10 additions and 9 deletions

View File

@@ -7,8 +7,8 @@ let api_url = "http://localhost:8989";
print("Getting node information:");
try {
let node_info = mycelium_get_node_info(api_url);
print(`Node subnet: ${node_info.subnet}`);
print(`Node public key: ${node_info.publicKey}`);
print(`Node subnet: ${node_info.nodeSubnet}`);
print(`Node public key: ${node_info.nodePubkey}`);
} catch(err) {
print(`Error getting node info: ${err}`);
}