Types
Internal.Types.Address
Internal.Types.TxHash
Internal.Types.BlockHash
Internal.Types.Hex
{ to : Maybe Address
, from : Maybe Address
, gas : Maybe Basics.Int
, gasPrice : Maybe BigInt
, value : Maybe BigInt
, data : Maybe Hex
, nonce : Maybe Basics.Int
, decoder : Json.Decode.Decoder a
}
{ to : Maybe Address
, from : Maybe Address
, gas : Maybe Basics.Int
, gasPrice : Maybe BigInt
, value : Maybe BigInt
, data : Maybe Hex
, nonce : Maybe Basics.Int
}
{ hash : TxHash
, nonce : Basics.Int
, blockHash : Maybe BlockHash
, blockNumber : Maybe Basics.Int
, transactionIndex : Basics.Int
, from : Address
, to : Maybe Address
, value : BigInt
, gasPrice : BigInt
, gas : Basics.Int
, input : String
}
{ hash : TxHash
, index : Basics.Int
, blockHash : BlockHash
, blockNumber : Basics.Int
, gasUsed : BigInt
, cumulativeGasUsed : BigInt
, contractAddress : Maybe Address
, logs : List Log
, logsBloom : String
, root : Maybe String
, status : Maybe Basics.Bool
}
{ number : Basics.Int
, hash : BlockHash
, parentHash : BlockHash
, nonce : String
, sha3Uncles : String
, logsBloom : String
, transactionsRoot : String
, stateRoot : String
, receiptsRoot : String
, miner : Address
, difficulty : BigInt
, totalDifficulty : BigInt
, extraData : String
, size : Basics.Int
, gasLimit : Basics.Int
, gasUsed : Basics.Int
, timestamp : Time.Posix
, transactions : List a
, uncles : List String
}
Block ()
{ number : Basics.Int
, hash : BlockHash
, parentHash : BlockHash
, nonce : String
, sha3Uncles : String
, logsBloom : String
, transactionsRoot : String
, stateRoot : String
, receiptsRoot : String
, miner : Address
, difficulty : BigInt
, extraData : String
, gasLimit : Basics.Int
, gasUsed : Basics.Int
, mixHash : String
, timestamp : Time.Posix
}
{ address : Address
, data : String
, topics : List Hex
, removed : Basics.Bool
, logIndex : Basics.Int
, transactionIndex : Basics.Int
, transactionHash : TxHash
, blockHash : BlockHash
, blockNumber : Basics.Int
}
{ address : Address
, data : String
, topics : List Hex
, removed : Basics.Bool
, logIndex : Basics.Int
, transactionIndex : Basics.Int
, transactionHash : TxHash
, blockHash : BlockHash
, blockNumber : Basics.Int
, returnData : a
}
{ fromBlock : BlockId
, toBlock : BlockId
, address : Address
, topics : List (Maybe Hex)
}
NOTE: Different from JSON RPC API, removed some optionality to reduce complexity (array with array)
{ startingBlock : Basics.Int
, currentBlock : Basics.Int
, highestBlock : Basics.Int
, knownStates : Basics.Int
, pulledStates : Basics.Int
}
String
String
String