This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import algosdk from 'algosdk'; | |
const BLOCKRANGE = 100; | |
const blocks = []; | |
const algod = new algosdk.Algodv2( | |
'', | |
'https://mainnet-api.algonode.cloud', | |
443 | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import algosdk from 'algosdk'; | |
const token = 'a'.repeat(64); | |
const address = 'http://192.168.1.100'; | |
const port = 8080; | |
const client = new algosdk.Algodv2(token, address, port); | |
// Recursively remove all null values | |
function removeNulls(obj) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from algosdk.v2client import algod | |
from algosdk import encoding | |
from algosdk import transaction | |
from typing import List, Dict, Union | |
import msgpack | |
import base64 | |
token = "" | |
host = "https://mainnet-api.algonode.cloud" | |
client = algod.AlgodClient(token, host) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CoinFabrik CTF | |
UTC | |
15:00:00 - Scheduled Launch | |
15:23:04 - CoinFabrik deploy Beginner CTF | |
15:29:14 - CoinFabrik deploy Advanced CTF | |
15:44:10 - CoinFabrik set-admin of Advanced CTF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"accounts": [ | |
{ | |
"address": "2NIT4HHERNQ33CRO6NSD72U2EKK32NALF4IBO5XC6QWDRTJW726235XY5Y", | |
"amount": 1096000, | |
"amount-without-pending-rewards": 1096000, | |
"auth-addr": "ABS635VYWVL3CKPFMBCQFA5VXZ2AKXLY6M636KCRJ4ZP4VA2NUXMNWELQ4", | |
"min-balance": 100000, | |
"pending-rewards": 0, | |
"reward-base": 27521, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"accounts": [ | |
{ | |
"address": "NULLUNXT4G5YRQZMF7TOH774FDWLZLU3RE7IZ7TRMIAKWBVJBI7JMYWBFY", | |
"amount": 14998000, | |
"amount-without-pending-rewards": 14998000, | |
"min-balance": 100000, | |
"pending-rewards": 0, | |
"reward-base": 27521, | |
"rewards": 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const algosdk = require('algosdk'); | |
// Algod | |
algod_token = 'a'.repeat(64); | |
algod_server = 'http://127.0.0.1'; | |
algod_port = 4001; | |
algod_client = new algosdk.Algodv2(algod_token, algod_server, algod_port); | |
// KMD | |
kmd_token = 'a'.repeat(64); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e -u -x -o pipefail | |
SB=~/sandbox/sandbox | |
GOAL="${SB} goal" | |
# Use prefunded account | |
ACCT1=$(${GOAL} account list \ | |
| grep '\[online\]' \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from algosdk import * | |
from pyteal import * | |
# Account details (add your mnemonic here) | |
mn = '' | |
try: | |
pk = mnemonic.to_public_key(mn) # Public Key | |
sk = mnemonic.to_private_key(mn) # Secret Key |