Skip to content

Instantly share code, notes, and snippets.

{
"app": {
"activeBank": {
"account_number": "5e12967707909e62b2bb2036c209085a784fabbc3deccefee70052b6181c8ed8",
"ip_address": "167.99.173.247",
"node_identifier": "d5356888dc9303e44ce52b1e06c3165a7759b9df1e6a6dfbd33ee1c3df1ab4d1",
"port": null,
"protocol": "http",
"version": "v1.0",
"default_transaction_fee": "1.0000000000000000",
{
"0cdd4ba04456ca169baca3d66eace869520c62fe84421329086e03d91a68acdb": {
"balance": "281474976710656",
"balance_lock": "0cdd4ba04456ca169baca3d66eace869520c62fe84421329086e03d91a68acdb"
}
}
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8"/>
<title>WS Test</title>
</head>
<body>
<script>
const accountNumber = '0cdd4ba04456ca169baca3d66eace869520c62fe84421329086e03d91a68acdb';
{
"9bfa37627e2dba0ae48165b219e76ceaba036b3db8e84108af73a1cce01fad35": {
"balance": "281474976710656",
"balance_lock": "9bfa37627e2dba0ae48165b219e76ceaba036b3db8e84108af73a1cce01fad35"
}
}
{
"9bfa37627e2dba0ae48165b219e76ceaba036b3db8e84108af73a1cce01fad35": {
"balance": 281474976710656,
"balance_lock": "9bfa37627e2dba0ae48165b219e76ceaba036b3db8e84108af73a1cce01fad35"
}
}
import os
from playground.config import SIGNED_REQUESTS_DIR, SIGNING_KEY_DIR
from thenewboston.accounts.key_files import read_signing_key_file
from thenewboston.utils.files import write_json
from thenewboston.utils.format import format_address
from thenewboston.utils.network import post
from thenewboston.utils.signed_requests import generate_signed_request
"""
Validator Notes
before running sudo pip3 install -r requirements/production.txt
run this
sudo apt-get install libpq-dev -y
then run this -
sudo apt install postgresql postgresql-contrib -y
sudo -u postgres psql
from django.core.management.utils import get_random_secret_key
from nacl.encoding import HexEncoder
from thenewboston.accounts.manage import create_account
"""
Running this script will produce all keys necessary for deploying a new node.
Account Number Signing Key:
2ea2542cb0b1176bd773beb58051c8baba832df30fe1f853e62ec9628032e087
{
"7ac95e3083c35a8fe395b55a154cc61c89416d994a7109800b781b00aa1de2da": {
"balance": 281474976710656,
"balance_lock": "7ac95e3083c35a8fe395b55a154cc61c89416d994a7109800b781b00aa1de2da"
}
}
@buckyroberts
buckyroberts / alpha-local.json
Last active January 17, 2021 01:32
alpha-local.json
{
"0cdd4ba04456ca169baca3d66eace869520c62fe84421329086e03d91a68acdb": {
"balance": 281474976710656,
"balance_lock": "0cdd4ba04456ca169baca3d66eace869520c62fe84421329086e03d91a68acdb"
}
}