Skip to content

Instantly share code, notes, and snippets.

@XertroV
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save XertroV/12a6b80b5210fe9b9d91 to your computer and use it in GitHub Desktop.
Save XertroV/12a6b80b5210fe9b9d91 to your computer and use it in GitHub Desktop.
First transactions with cryptonet (min_coin example)

A record of the first few transactions on min_coin

Usage

┌──────────────────────────────( linux )─( X-LittleLap )─( 23:14:29 )─┐
└─( ~/src )─> mctx -h
usage: mctx [-h] secret_exponent to_x amount fee donation

positional arguments:
  secret_exponent  secret exponent to use
  to_x             pubkey_x of user to send to
  amount           amount to send
  fee              fee (default 0)
  donation         donation (default 0)

optional arguments:
  -h, --help       show this help message and exit

RPC Documentation for the curious.

┌──────────────────────────────( linux )─( X-LittleLap )─( 23:11:50 )─┐
└─( ~/src )─> mincoin get_ledger
{
    "89565891926547004231252920425935692360644145829622209833684329913297188986597": 500000,
    "188899839028173": 164971,
    "55066263022277343669578718895168534326250603453777594175500187360389116729240": 4585029
}
┌──────────────────────────────( linux )─( X-LittleLap )─( 23:12:08 )─┐
└─( ~/src )─> mincoin get_info
{
    "top_block hash": 425112938449539424347623269291825877822949755071351672271373344567852836,
    "top_block_height": 105,
    "difficulty": 245505
}
┌──────────────────────────────( linux )─( X-LittleLap )─( 23:12:46 )─┐
└─( ~/src )─> mctx 2 112711660439710606056748659173929673102114977341539408544630613555209775888121 450000 444 777
013301310101010306ddd00201bc02030923012101f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f98801210085bedeb60e4806002640d3c6d62547fc0f15fde8b084c6761e4dce16203c646021008a9aa71d4301827f21143525cd6996abdb2fe5741bfb264ae8654776ee392c462100c6047f9441ed7d6d3045406e95c07cd85c778e4b8cef3ca7abac09b95c709ee5201ae168fea63dc339a3c58419466ceaeef7f632653266d0e1236431a950cfe52a
┌──────────────────────────────( linux )─( X-LittleLap )─( 23:13:24 )─┐
└─( ~/src )─> mincoin push_tx 013301310101010306ddd00201bc02030923012101f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f98801210085bedeb60e4806002640d3c6d62547fc0f15fde8b084c6761e4dce16203c646021008a9aa71d4301827f21143525cd6996abdb2fe5741bfb264ae8654776ee392c462100c6047f9441ed7d6d3045406e95c07cd85c778e4b8cef3ca7abac09b95c709ee5201ae168fea63dc339a3c58419466ceaeef7f632653266d0e1236431a950cfe52a
{
    "success": true,
    "relayed": true
}
┌──────────────────────────────( linux )─( X-LittleLap )─( 23:13:32 )─┐
└─( ~/src )─> mincoin get_ledger
{
    "55066263022277343669578718895168534326250603453777594175500187360389116729240": 4685473,
    "89565891926547004231252920425935692360644145829622209833684329913297188986597": 48779,
    "112711660439710606056748659173929673102114977341539408544630613555209775888121": 450000,
    "188899839028173": 165748
}
┌──────────────────────────────( linux )─( X-LittleLap )─( 23:13:57 )─┐
└─( ~/src )─> mincoin get_info
{
    "top_block_height": 107,
    "top_block hash": 144481857439047874615713094006030020621979227104245293004035671165800095,
    "difficulty": 245505
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment