Skip to content

Instantly share code, notes, and snippets.

{
"amount": 0,
"id": "27cf0962-712b-46fe-b5d8-d698b1d657ed",
"payload": {
"fn": "setQueuedBlocks",
"params": [
{
"payload": {
"artworkId": "46c357decf745da9056afa8b0946c2feb0e5175f930d858e63c0693b307376c6a81f09e715da7c051d91485c746634355d294778847e4534b6f6ea7236ca8700",
"blockId": "7303a4c5ce24e1b2bd1d200717a57d691eb53f90f25e584df6c66b2cb8f8e82d76e255815a759ef1cc98f58b43ad6872eb934eb65a6a571b2dfc34998c50fb00",
{
"amount": 0,
"id": "b8010179-d519-4118-b28b-0cd641cdd80e",
"payload": {
"fn": "setQueuedBlocks",
"params": [
{
"artworkIdPayload": {
"currentTime": 1671661507346
},
{
"initial_block_identifier": "cc9390cc579dc8a99a1f34c1bea5d54a0f45b27ecee7e38662f0cd853f76744d",
"block_chain": {
"0": {
"message": {
"block": {
"account_number": "9bfa37627e2dba0ae48165b219e76ceaba036b3db8e84108af73a1cce01fad35",
"message": {
"balance_key": "9bfa37627e2dba0ae48165b219e76ceaba036b3db8e84108af73a1cce01fad35",
"txs": [
@buckyroberts
buckyroberts / alpha-local.json
Last active January 17, 2021 01:32
alpha-local.json
{
"0cdd4ba04456ca169baca3d66eace869520c62fe84421329086e03d91a68acdb": {
"balance": 281474976710656,
"balance_lock": "0cdd4ba04456ca169baca3d66eace869520c62fe84421329086e03d91a68acdb"
}
}
{
"7ac95e3083c35a8fe395b55a154cc61c89416d994a7109800b781b00aa1de2da": {
"balance": 281474976710656,
"balance_lock": "7ac95e3083c35a8fe395b55a154cc61c89416d994a7109800b781b00aa1de2da"
}
}
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
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
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
"""
{
"9bfa37627e2dba0ae48165b219e76ceaba036b3db8e84108af73a1cce01fad35": {
"balance": 281474976710656,
"balance_lock": "9bfa37627e2dba0ae48165b219e76ceaba036b3db8e84108af73a1cce01fad35"
}
}
{
"9bfa37627e2dba0ae48165b219e76ceaba036b3db8e84108af73a1cce01fad35": {
"balance": "281474976710656",
"balance_lock": "9bfa37627e2dba0ae48165b219e76ceaba036b3db8e84108af73a1cce01fad35"
}
}