Skip to content

Instantly share code, notes, and snippets.

@JackyWYX
Last active May 13, 2020 19:43
Show Gist options
  • Save JackyWYX/58c6e3cbfe9b68ed62b3f4749392b2b2 to your computer and use it in GitHub Desktop.
Save JackyWYX/58c6e3cbfe9b68ed62b3f4749392b2b2 to your computer and use it in GitHub Desktop.
[dryrun] Manual test on Delegation and Undelegation

1. Step 1: New Delegation (Passed)

Use an existing validator in shard 0

$ ./hmy --node=https://api.s0.dry.hmny.io blockchain validator information one1sgcpjc405ueglhp5udsskjxcn8crrc2lmuf35c
{
  "id": "0",
  "jsonrpc": "2.0",
  "result": {
    "booted-status": null,
    "current-epoch-performance": {
      "current-epoch-signing-percent": {
        "current-epoch-signed": 296,
        "current-epoch-signing-percentage": "0.993288590604026846",
        "current-epoch-to-sign": 298
      }
    },
    "currently-in-committee": true,
    "epos-status": "currently elected",
    "epos-winning-stake": "13225000000000000000000.000000000000000000",
    "lifetime": {
      "apr": "63.934423750743344490",
      "blocks": {
        "signed": 744,
        "to-sign": 1646
      },
      "reward-accumulated": 4.889199242114925e+21
    },
    "metrics": {
      "by-bls-key": [
        {
          "earned-reward": 864107070508887300000,
          "key": {
            "bls-public-key": "dc9e4e6c9e4782012ccf628e3d3e7c1763ba2f78de99b98b89fac63b1f4375e288d5e155e9ee64fe126f78ce0088db10",
            "earning-account": "one1sgcpjc405ueglhp5udsskjxcn8crrc2lmuf35c",
            "effective-stake": "13225000000000000000000.000000000000000000",
            "group-percent": "0.243891194098662978",
            "overall-percent": "0.078045182111572153",
            "raw-stake": "32000000000000000000000.000000000000000000",
            "shard-id": 0
          }
        }
      ]
    },
    "total-delegation": 3.2e+22,
    "validator": {
      "address": "one1sgcpjc405ueglhp5udsskjxcn8crrc2lmuf35c",
      "bls-public-keys": [
        "dc9e4e6c9e4782012ccf628e3d3e7c1763ba2f78de99b98b89fac63b1f4375e288d5e155e9ee64fe126f78ce0088db10"
      ],
      "creation-height": 3222014,
      "delegations": [
        {
          "amount": 3e+22,
          "delegator-address": "one1sgcpjc405ueglhp5udsskjxcn8crrc2lmuf35c",
          "reward": 4.614181784745961e+21,
          "undelegations": []
        },
        {
          "amount": 1e+21,
          "delegator-address": "one1225lcm9m8vd8c28qxmsmjj79p86a4pnc795m2u",
          "reward": 137508728684482280000,
          "undelegations": []
        },
        {
          "amount": 1e+21,
          "delegator-address": "one1936qxy26se37nz7nzscxmze6yv4raaghc6k62k",
          "reward": 137508728684482280000,
          "undelegations": []
        }
      ],
      "details": "Visit our site and stake with us https://pops.one",
      "identity": "P-OPS Validator 2",
      "last-epoch-in-committee": 195,
      "max-change-rate": "0.050000000000000000",
      "max-rate": "0.800000000000000000",
      "max-total-delegation": 1e+33,
      "min-self-delegation": 2e+22,
      "name": "P-OPS Validator 2",
      "rate": "0.100000000000000000",
      "security-contact": "pops.one",
      "update-height": 3222014,
      "website": "pops.one"
    }
  }
}

Delegate

$ ./hmy --node=https://api.s0.dry.hmny.io staking delegate --amount 1000 --delegator-addr one14xg2cxw3nyll6laws2xc9zfql3cd3ww2yl5vut --validator-addr one1sgcpjc405ueglhp5udsskjxcn8crrc2lmuf35c --chain-id mainnet
{
  "id": "27",
  "jsonrpc": "2.0",
  "result": {
    "blockHash": "0x70864c8c03b087957d5aadc95682d40d6b9bd518c9b766eca36471c47782b97d",
    "blockNumber": "0x31493f",
    "contractAddress": null,
    "cumulativeGasUsed": "0x5f9c",
    "gasUsed": "0x5f9c",
    "logs": [],
    "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "sender": "one14xg2cxw3nyll6laws2xc9zfql3cd3ww2yl5vut",
    "status": "0x1",
    "transactionHash": "0x3c49e67d8ab98e0c74e859723dbdfc0f43160ff0ba3feb78f0e259f85673c349",
    "transactionIndex": "0x0",
    "type": 2
  }
}

Result check

1. Validator info (Passed)

Delegation info already in validator, amount is correct. Passed.

$./hmy --node=https://api.s0.dry.hmny.io blockchain validator information one1sgcpjc405ueglhp5udsskjxcn8crrc2lmuf35c
{
  "id": "0",
  "jsonrpc": "2.0",
  "result": {
    "booted-status": null,
    "current-epoch-performance": {
      "current-epoch-signing-percent": {
        "current-epoch-signed": 366,
        "current-epoch-signing-percentage": "0.994565217391304348",
        "current-epoch-to-sign": 368
      }
    },
    "currently-in-committee": true,
    "epos-status": "currently elected",
    "epos-winning-stake": "13225000000000000000000.000000000000000000",
    "lifetime": {
      "apr": "63.934423750743344490",
      "blocks": {
        "signed": 814,
        "to-sign": 1716
      },
      "reward-accumulated": 5.092326752455458e+21
    },
    "metrics": {
      "by-bls-key": [
        {
          "earned-reward": 1.0672345808494196e+21,
          "key": {
            "bls-public-key": "dc9e4e6c9e4782012ccf628e3d3e7c1763ba2f78de99b98b89fac63b1f4375e288d5e155e9ee64fe126f78ce0088db10",
            "earning-account": "one1sgcpjc405ueglhp5udsskjxcn8crrc2lmuf35c",
            "effective-stake": "13225000000000000000000.000000000000000000",
            "group-percent": "0.243891194098662978",
            "overall-percent": "0.078045182111572153",
            "raw-stake": "32000000000000000000000.000000000000000000",
            "shard-id": 0
          }
        }
      ]
    },
    "total-delegation": 3.3e+22,
    "validator": {
      "address": "one1sgcpjc405ueglhp5udsskjxcn8crrc2lmuf35c",
      "bls-public-keys": [
        "dc9e4e6c9e4782012ccf628e3d3e7c1763ba2f78de99b98b89fac63b1f4375e288d5e155e9ee64fe126f78ce0088db10"
      ],
      "creation-height": 3222014,
      "delegations": [
        {
          "amount": 3e+22,
          "delegator-address": "one1sgcpjc405ueglhp5udsskjxcn8crrc2lmuf35c",
          "reward": 4.805883372629838e+21,
          "undelegations": []
        },
        {
          "amount": 1e+21,
          "delegator-address": "one1225lcm9m8vd8c28qxmsmjj79p86a4pnc795m2u",
          "reward": 143221689912809750000,
          "undelegations": []
        },
        {
          "amount": 1e+21,
          "delegator-address": "one1936qxy26se37nz7nzscxmze6yv4raaghc6k62k",
          "reward": 143221689912809750000,
          "undelegations": []
        },
        {
          "amount": 1e+21,
          "delegator-address": "one14xg2cxw3nyll6laws2xc9zfql3cd3ww2yl5vut",
          "reward": 0,
          "undelegations": []
        }
      ],
      "details": "Visit our site and stake with us https://pops.one",
      "identity": "P-OPS Validator 2",
      "last-epoch-in-committee": 195,
      "max-change-rate": "0.050000000000000000",
      "max-rate": "0.800000000000000000",
      "max-total-delegation": 1e+33,
      "min-self-delegation": 2e+22,
      "name": "P-OPS Validator 2",
      "rate": "0.100000000000000000",
      "security-contact": "pops.one",
      "update-height": 3222014,
      "website": "pops.one"
    }
  }
}

2. Block info (Passed)

Check the staking transaction is already in the block. Passed.

$ ./hmy --node=https://api.s0.dry.hmny.io blockchain block-by-number 0x31493f
{
  "id": "0",
  "jsonrpc": "2.0",
  "result": {
    "difficulty": 0,
    "extraData": "0x",
    "gasLimit": "0x4c4b400",
    "gasUsed": "0x5f9c",
    "hash": "0x70864c8c03b087957d5aadc95682d40d6b9bd518c9b766eca36471c47782b97d",
    "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "miner": "0xe5dc9dbd0b93231e5d0bf998669463fe990a7211",
    "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "nonce": 0,
    "number": "0x31493f",
    "parentHash": "0x9ceb7c02c959de8e3e3a6fb64ab114c0941f2b45f84671a02060ead1254767cf",
    "receiptsRoot": "0x6fc91f49e20a7414ee78250e1780c2cf2cc47821482f5be99eeeb324145d2ac3",
    "size": "0x53b",
    "stakingTransactions": [
      {
        "blockHash": "0x70864c8c03b087957d5aadc95682d40d6b9bd518c9b766eca36471c47782b97d",
        "blockNumber": "0x31493f",
        "from": "one14xg2cxw3nyll6laws2xc9zfql3cd3ww2yl5vut",
        "gas": "0x5f9c",
        "gasPrice": "0x3b9aca00",
        "hash": "0x3c49e67d8ab98e0c74e859723dbdfc0f43160ff0ba3feb78f0e259f85673c349",
        "msg": {
          "amount": "0x3635c9adc5dea00000",
          "delegatorAddress": "one14xg2cxw3nyll6laws2xc9zfql3cd3ww2yl5vut",
          "validatorAddress": "one1sgcpjc405ueglhp5udsskjxcn8crrc2lmuf35c"
        },
        "nonce": "0x0",
        "r": "0x987a7beb90e7ac5d8e0cd6d36f6afb0a93dfb8e05b8c63ee49457416fbfff43",
        "s": "0x1fb5c6b27e16c0b8bc3b063227a3d7629772bdbf717545982c7b03f7ac642f74",
        "timestamp": "0x5ebc469c",
        "transactionIndex": "0x0",
        "type": "Delegate",
        "v": "0x25"
      }
    ],
    "stateRoot": "0xf559b3d1ec541aada270e61854f6d1de952477243cb0689ab7754c112e8e1ed1",
    "timestamp": "0x5ebc469c",
    "transactions": [],
    "transactionsRoot": "0x646b9df99251368d4b05d19bc0fab6fc3a99fbc86f70ca40a6105c0b8dfd5f20",
    "uncles": []
  }
}

3. Staking transaction by hash (Passed)

./hmy --node=https://api.s0.dry.hmny.io blockchain staking-transaction-by-hash 0x3c49e67d8ab98e0c74e859723dbdfc0f43160ff0ba3feb78f0e259f85673c349
{
  "id": "0",
  "jsonrpc": "2.0",
  "result": {
    "blockHash": "0x70864c8c03b087957d5aadc95682d40d6b9bd518c9b766eca36471c47782b97d",
    "blockNumber": "0x31493f",
    "from": "one14xg2cxw3nyll6laws2xc9zfql3cd3ww2yl5vut",
    "gas": "0x5f9c",
    "gasPrice": "0x3b9aca00",
    "hash": "0x3c49e67d8ab98e0c74e859723dbdfc0f43160ff0ba3feb78f0e259f85673c349",
    "msg": {
      "amount": "0x3635c9adc5dea00000",
      "delegatorAddress": "one14xg2cxw3nyll6laws2xc9zfql3cd3ww2yl5vut",
      "validatorAddress": "one1sgcpjc405ueglhp5udsskjxcn8crrc2lmuf35c"
    },
    "nonce": "0x0",
    "r": "0x987a7beb90e7ac5d8e0cd6d36f6afb0a93dfb8e05b8c63ee49457416fbfff43",
    "s": "0x1fb5c6b27e16c0b8bc3b063227a3d7629772bdbf717545982c7b03f7ac642f74",
    "timestamp": "0x5ebc469c",
    "transactionIndex": "0x0",
    "type": "Delegate",
    "v": "0x25"
  }
}

Step 2: Add delegation

Use the same validator and delegator, delegate again.

$ ./hmy --node=https://api.s0.dry.hmny.io staking delegate --amount 1000 --delegator-addr one14xg2cxw3nyll6laws2xc9zfql3cd3ww2yl5vut --validator-addr one1sgcpjc405ueglhp5udsskjxcn8crrc2lmuf35c --chain-id mainnet
{
  "id": "12",
  "jsonrpc": "2.0",
  "result": {
    "blockHash": "0x8bd99f970ee917525c96a3b7c18a27e6c939aea79a866e765eb56a9ea024cc6e",
    "blockNumber": "0x3149ad",
    "contractAddress": null,
    "cumulativeGasUsed": "0x5f9c",
    "gasUsed": "0x5f9c",
    "logs": [],
    "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "sender": "one14xg2cxw3nyll6laws2xc9zfql3cd3ww2yl5vut",
    "status": "0x1",
    "transactionHash": "0x6ff4212dd6e6f7edd8977d39a2c59dad9ac8ac6632cce6163bdf37cea0bf41c3",
    "transactionIndex": "0x0",
    "type": 2
  }
}

Check validator info

The amount in corresponding delegation field has increased as expected.

$ ./hmy --node=https://api.s0.dry.hmny.io blockchain validator information one1sgcpjc405ueglhp5udsskjxcn8crrc2lmuf35c
{
  "id": "0",
  "jsonrpc": "2.0",
  "result": {
    "booted-status": null,
    "current-epoch-performance": {
      "current-epoch-signing-percent": {
        "current-epoch-signed": 16,
        "current-epoch-signing-percentage": "1.000000000000000000",
        "current-epoch-to-sign": 16
      }
    },
    "currently-in-committee": true,
    "epos-status": "currently elected",
    "epos-winning-stake": "19550000000000000000000.000000000000000000",
    "lifetime": {
      "apr": "129.920297280286685725",
      "blocks": {
        "signed": 912,
        "to-sign": 1814
      },
      "reward-accumulated": 5.46212377954622e+21
    },
    "metrics": {
      "by-bls-key": [
        {
          "earned-reward": 131277495179599310000,
          "key": {
            "bls-public-key": "dc9e4e6c9e4782012ccf628e3d3e7c1763ba2f78de99b98b89fac63b1f4375e288d5e155e9ee64fe126f78ce0088db10",
            "earning-account": "one1sgcpjc405ueglhp5udsskjxcn8crrc2lmuf35c",
            "effective-stake": "19550000000000000000000.000000000000000000",
            "group-percent": "1.000000000000000000",
            "overall-percent": "0.320000000000000000",
            "raw-stake": "33000000000000000000000.000000000000000000",
            "shard-id": 0
          }
        }
      ]
    },
    "total-delegation": 3.4e+22,
    "validator": {
      "address": "one1sgcpjc405ueglhp5udsskjxcn8crrc2lmuf35c",
      "bls-public-keys": [
        "dc9e4e6c9e4782012ccf628e3d3e7c1763ba2f78de99b98b89fac63b1f4375e288d5e155e9ee64fe126f78ce0088db10"
      ],
      "creation-height": 3222014,
      "delegations": [
        {
          "amount": 3e+22,
          "delegator-address": "one1sgcpjc405ueglhp5udsskjxcn8crrc2lmuf35c",
          "reward": 5.15167020413185e+21,
          "undelegations": []
        },
        {
          "amount": 1e+21,
          "delegator-address": "one1225lcm9m8vd8c28qxmsmjj79p86a4pnc795m2u",
          "reward": 153515260872574240000,
          "undelegations": []
        },
        {
          "amount": 1e+21,
          "delegator-address": "one1936qxy26se37nz7nzscxmze6yv4raaghc6k62k",
          "reward": 153515260872574240000,
          "undelegations": []
        },
        {
          "amount": 2e+21,
          "delegator-address": "one14xg2cxw3nyll6laws2xc9zfql3cd3ww2yl5vut",
          "reward": 3423053669222343700,
          "undelegations": []
        }
      ],
      "details": "Visit our site and stake with us https://pops.one",
      "identity": "P-OPS Validator 2",
      "last-epoch-in-committee": 196,
      "max-change-rate": "0.050000000000000000",
      "max-rate": "0.800000000000000000",
      "max-total-delegation": 1e+33,
      "min-self-delegation": 2e+22,
      "name": "P-OPS Validator 2",
      "rate": "0.100000000000000000",
      "security-contact": "pops.one",
      "update-height": 3222014,
      "website": "pops.one"
    }
  }
}

Step 3: Undelegate

Send undelegate transaction

./hmy --node=https://api.s0.dry.hmny.io staking undelegate --amount 500 --delegator-addr one14xg2cxw3nyll6laws2xc9zfql3cd3ww2yl5vut --validator-addr one1sgcpjc405ueglhp5udsskjxcn8crrc2lmuf35c --chain-id mainnet
{
  "id": "15",
  "jsonrpc": "2.0",
  "result": {
    "blockHash": "0x81febb65c223fac3b6fe9b4fdfc300cdf81680911d6fc4d6fa43838d6f7a20b3",
    "blockNumber": "0x3149dd",
    "contractAddress": null,
    "cumulativeGasUsed": "0x5f9c",
    "gasUsed": "0x5f9c",
    "logs": [],
    "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "sender": "one14xg2cxw3nyll6laws2xc9zfql3cd3ww2yl5vut",
    "status": "0x1",
    "transactionHash": "0xf75e7e20df6e97432abad73d1f68a017403dc32f0cae3a96e57444ef7e568c13",
    "transactionIndex": "0x0",
    "type": 3
  }
}

Check validator (Passed)

$ ./hmy --node=https://api.s0.dry.hmny.io blockchain validator information one1sgcpjc405ueglhp5udsskjxcn8crrc2lmuf35c
{
  "id": "0",
  "jsonrpc": "2.0",
  "result": {
    "booted-status": null,
    "current-epoch-performance": {
      "current-epoch-signing-percent": {
        "current-epoch-signed": 63,
        "current-epoch-signing-percentage": "1.000000000000000000",
        "current-epoch-to-sign": 63
      }
    },
    "currently-in-committee": true,
    "epos-status": "currently elected",
    "epos-winning-stake": "19550000000000000000000.000000000000000000",
    "lifetime": {
      "apr": "129.920297280286685725",
      "blocks": {
        "signed": 959,
        "to-sign": 1861
      },
      "reward-accumulated": 5.883784699354485e+21
    },
    "metrics": {
      "by-bls-key": [
        {
          "earned-reward": 552938414987864640000,
          "key": {
            "bls-public-key": "dc9e4e6c9e4782012ccf628e3d3e7c1763ba2f78de99b98b89fac63b1f4375e288d5e155e9ee64fe126f78ce0088db10",
            "earning-account": "one1sgcpjc405ueglhp5udsskjxcn8crrc2lmuf35c",
            "effective-stake": "19550000000000000000000.000000000000000000",
            "group-percent": "1.000000000000000000",
            "overall-percent": "0.320000000000000000",
            "raw-stake": "33000000000000000000000.000000000000000000",
            "shard-id": 0
          }
        }
      ]
    },
    "total-delegation": 3.35e+22,
    "validator": {
      "address": "one1sgcpjc405ueglhp5udsskjxcn8crrc2lmuf35c",
      "bls-public-keys": [
        "dc9e4e6c9e4782012ccf628e3d3e7c1763ba2f78de99b98b89fac63b1f4375e288d5e155e9ee64fe126f78ce0088db10"
      ],
      "creation-height": 3222014,
      "delegations": [
        {
          "amount": 3e+22,
          "delegator-address": "one1sgcpjc405ueglhp5udsskjxcn8crrc2lmuf35c",
          "reward": 5.53883159413762e+21,
          "undelegations": []
        },
        {
          "amount": 1e+21,
          "delegator-address": "one1225lcm9m8vd8c28qxmsmjj79p86a4pnc795m2u",
          "reward": 165015104140072400000,
          "undelegations": []
        },
        {
          "amount": 1e+21,
          "delegator-address": "one1936qxy26se37nz7nzscxmze6yv4raaghc6k62k",
          "reward": 165015104140072400000,
          "undelegations": []
        },
        {
          "amount": 1.5e+21,
          "delegator-address": "one14xg2cxw3nyll6laws2xc9zfql3cd3ww2yl5vut",
          "reward": 14922896936720488000,
          "undelegations": [
            {
              "amount": 500000000000000000000,
              "epoch": 196
            }
          ]
        }
      ],
      "details": "Visit our site and stake with us https://pops.one",
      "identity": "P-OPS Validator 2",
      "last-epoch-in-committee": 196,
      "max-change-rate": "0.050000000000000000",
      "max-rate": "0.800000000000000000",
      "max-total-delegation": 1e+33,
      "min-self-delegation": 2e+22,
      "name": "P-OPS Validator 2",
      "rate": "0.100000000000000000",
      "security-contact": "pops.one",
      "update-height": 3222014,
      "website": "pops.one"
    }
  }
}

Check block (Passed)

$ ./hmy --node=https://api.s0.dry.hmny.io blockchain block-by-number 0x3149dd
{
  "id": "0",
  "jsonrpc": "2.0",
  "result": {
    "difficulty": 0,
    "extraData": "0x",
    "gasLimit": "0x4c4b400",
    "gasUsed": "0x5f9c",
    "hash": "0x81febb65c223fac3b6fe9b4fdfc300cdf81680911d6fc4d6fa43838d6f7a20b3",
    "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "miner": "0xe5dc9dbd0b93231e5d0bf998669463fe990a7211",
    "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "nonce": 0,
    "number": "0x3149dd",
    "parentHash": "0x6bcec7d187661a56f2f2200c5eddb253db6e577fd9ed1b385bb9ef543071cda7",
    "receiptsRoot": "0x6fc91f49e20a7414ee78250e1780c2cf2cc47821482f5be99eeeb324145d2ac3",
    "size": "0x53b",
    "stakingTransactions": [
      {
        "blockHash": "0x81febb65c223fac3b6fe9b4fdfc300cdf81680911d6fc4d6fa43838d6f7a20b3",
        "blockNumber": "0x3149dd",
        "from": "one14xg2cxw3nyll6laws2xc9zfql3cd3ww2yl5vut",
        "gas": "0x5f9c",
        "gasPrice": "0x3b9aca00",
        "hash": "0xf75e7e20df6e97432abad73d1f68a017403dc32f0cae3a96e57444ef7e568c13",
        "msg": {
          "amount": "0x1b1ae4d6e2ef500000",
          "delegatorAddress": "one14xg2cxw3nyll6laws2xc9zfql3cd3ww2yl5vut",
          "validatorAddress": "one1sgcpjc405ueglhp5udsskjxcn8crrc2lmuf35c"
        },
        "nonce": "0x2",
        "r": "0x2e9c3bc340433b656b6c7d105b0d12b733a64ef859768bce39d72dbf5adc9f07",
        "s": "0x4fd7aab0254229dd135cd3a26ebe3b4a927741e827cff6b55dac80595b6a9ba8",
        "timestamp": "0x5ebc4bf7",
        "transactionIndex": "0x0",
        "type": "Undelegate",
        "v": "0x26"
      }
    ],
    "stateRoot": "0xc3cf7516a31ad435dd393b8fc8789e2666ee029994424f58e2071a42fde8cfb7",
    "timestamp": "0x5ebc4bf7",
    "transactions": [],
    "transactionsRoot": "0xf2cb6ae03197948a12617bae71581945ccef0dadaefe7573174580ee911cb2f0",
    "uncles": []
  }
}

Check staking transaction

$ ./hmy --node=https://api.s0.dry.hmny.io blockchain staking-transaction-by-hash 0xf75e7e20df6e97432abad73d1f68a017403dc32f0cae3a96e57444ef7e568c13
{
  "id": "0",
  "jsonrpc": "2.0",
  "result": {
    "blockHash": "0x81febb65c223fac3b6fe9b4fdfc300cdf81680911d6fc4d6fa43838d6f7a20b3",
    "blockNumber": "0x3149dd",
    "from": "one14xg2cxw3nyll6laws2xc9zfql3cd3ww2yl5vut",
    "gas": "0x5f9c",
    "gasPrice": "0x3b9aca00",
    "hash": "0xf75e7e20df6e97432abad73d1f68a017403dc32f0cae3a96e57444ef7e568c13",
    "msg": {
      "amount": "0x1b1ae4d6e2ef500000",
      "delegatorAddress": "one14xg2cxw3nyll6laws2xc9zfql3cd3ww2yl5vut",
      "validatorAddress": "one1sgcpjc405ueglhp5udsskjxcn8crrc2lmuf35c"
    },
    "nonce": "0x2",
    "r": "0x2e9c3bc340433b656b6c7d105b0d12b733a64ef859768bce39d72dbf5adc9f07",
    "s": "0x4fd7aab0254229dd135cd3a26ebe3b4a927741e827cff6b55dac80595b6a9ba8",
    "timestamp": "0x5ebc4bf7",
    "transactionIndex": "0x0",
    "type": "Undelegate",
    "v": "0x26"
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment