Skip to content

Instantly share code, notes, and snippets.

Roman Storm rstormsf

View GitHub Profile
View example_core_node.toml
[parity]
chain = "./spec.json"
base_path = "parity_data"
[network]
port = 30303
discovery=true
reserved_peers = "./bootnodes.txt"
[rpc]
View debug_trace.json
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"type": "CALL",
"from": "0xa905556532f8353195f389824fa34ea8f9719519",
"to": "0x3e82a82f018a8ebf007c3805f467164dc11f47ac",
"value": "0x0",
"gas": "0x2b2e8",
"gasUsed": "0xde46",
View debug_trace.json
This file has been truncated, but you can view the full file.
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"gas": 65030,
"failed": false,
"returnValue": "",
"structLogs": [
{
View getTransactionByHash.json
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"blockHash": "0xf58802cc556fdbd7f0284879ce0e5172a1905d166814d744f71ec21240588676",
"blockNumber": "0x566ecb",
"from": "0xabe40a01fdb4a1f3d4a4425436a6e08aca71ebf7",
"gas": "0xc96f",
"gasPrice": "0x1dcd65000",
"hash": "0x12151c11366765936d7891d4dd67b0f518f22d985bcb826db40f034cf1913e31",
@rstormsf
rstormsf / gist:d34c84bf7a084ee26f27f82d41d78f30
Created May 10, 2018
How to use POA network bridge without metamask
View gist:d34c84bf7a084ee26f27f82d41d78f30
How to use the Bridge if you don't have metamask account?
From POA to POA20
1. Connect to POA.network public RPC node: https://core.poa.network
OR
Sync up your local parity node with POA.network
2. Send your POA native tokens to POA bridge address:
0xB87b6077D59B01Ab9fa8cd5A1A21D02a4d60D358
View BridgeValidators.json
[
{
"constant": true,
"inputs": [],
"name": "owner",
"outputs": [
{
"name": "",
"type": "address"
}
View r.json
curl --data '{"method":"trace_replayTransaction","params":["0x8d5e0073104f290be8802c59cb964d16630524f8dc1b24f071c094be5ebe4234", ["trace"]],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST https://sokol-trace.poa.network
View MyCryptoABI_Issue_ForeignBridge.json
[
{
"constant": true,
"inputs": [],
"name": "version",
"outputs": [
{
"name": "",
"type": "string"
}
@rstormsf
rstormsf / OutOfGas.sol
Created Feb 28, 2018
Test to check out of gas
View OutOfGas.sol
contract OutOfGas {
uint public count;
function() payable {
add();
}
function add() {
count++;
}
}
View pending_tx.json
{
"jsonrpc": "2.0",
"result": [
{
"blockHash": null,
"blockNumber": null,
"chainId": null,
"condition": null,
"creates": null,
"from": "0xec2b9e3f94929f6587a4c73cb9eda1a1da443baa",
You can’t perform that action at this time.