eth

package
v1.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {

	/**
	 * Difficulty for this block.
	 * @type {string}
	 * @memberof EthBlock
	 */
	Difficulty string
	/**
	 * The 'extra data' field of this block.
	 * @type {string}
	 * @memberof EthBlock
	 */
	ExtraData string
	/**
	 * The maximum gas allowed in this block.
	 * @type {number}
	 * @memberof EthBlock
	 */
	GasLimit uint64
	/**
	 * The total used gas by all transactions in this block.
	 * @type {number}
	 * @memberof EthBlock
	 */
	GasUsed uint64
	/**
	 * Hash of the block. 'null' when its pending block.
	 * @type {string}
	 * @memberof EthBlock
	 */
	Hash string
	/**
	 * The bloom filter for the logs of the block. 'null' when its pending block.
	 * @type {string}
	 * @memberof EthBlock
	 */
	LogsBloom string
	/**
	 * The address of the beneficiary to whom the mining rewards were given.
	 * @type {string}
	 * @memberof EthBlock
	 */
	Miner string
	/**
	 *
	 * @type {string}
	 * @memberof EthBlock
	 */
	MixHash string
	/**
	 * Hash of the generated proof-of-work. 'null' when its pending block.
	 * @type {string}
	 * @memberof EthBlock
	 */
	Nonce string
	/**
	 * The block number. 'null' when its pending block.
	 * @type {number}
	 * @memberof EthBlock
	 */
	Number uint32
	/**
	 * Hash of the parent block.
	 * @type {string}
	 * @memberof EthBlock
	 */
	ParentHash string
	/**
	 *
	 * @type {string}
	 * @memberof EthBlock
	 */
	ReceiptsRoot string
	/**
	 * SHA3 of the uncles data in the block.
	 * @type {string}
	 * @memberof EthBlock
	 */
	Sha3Uncles string
	/**
	 * The size of this block in bytes.
	 * @type {number}
	 * @memberof EthBlock
	 */
	Size uint32
	/**
	 * The root of the final state trie of the block.
	 * @type {string}
	 * @memberof EthBlock
	 */
	StateRoot string
	/**
	 * The unix timestamp for when the block was collated.
	 * @type {number}
	 * @memberof EthBlock
	 */
	Timestamp uint32
	/**
	 * Total difficulty of the chain until this block.
	 * @type {string}
	 * @memberof EthBlock
	 */
	TotalDifficulty string
	/**
	 * Array of transactions.
	 * @type {Array<Eth_tx>}
	 * @memberof EthBlock
	 */
	Transactions []Tx
	/**
	 * The root of the transaction trie of the block.
	 * @type {string}
	 * @memberof EthBlock
	 */
	TransactionsRoot string
}

*

*
* @export
* @interface EthBlock

type EthTxLogs

type EthTxLogs struct {
	// contains filtered or unexported fields
}

*

*
* @export
* @interface EthTxLogs

type Tx

type Tx struct {

	/**
	 * Hash of the block where this transaction was in.
	 * @type {string}
	 * @memberof EthTx
	 */
	BlockHash string
	/**
	 * TRUE if the transaction was successful, FALSE, if the EVM reverted the transaction.
	 * @type {boolean}
	 * @memberof EthTx
	 */
	Status bool
	/**
	 * Block number where this transaction was in.
	 * @type {number}
	 * @memberof EthTx
	 */
	BlockNumber uint32
	/**
	 * Address of the sender.
	 * @type {string}
	 * @memberof EthTx
	 */
	From string
	/**
	 * Gas provided by the sender.
	 * @type {number}
	 * @memberof EthTx
	 */
	Gas uint64
	/**
	 * Gas price provided by the sender in wei.
	 * @type {string}
	 * @memberof EthTx
	 */
	GasPrice string
	/**
	 * Hash of the transaction.
	 * @type {string}
	 * @memberof EthTx
	 */
	TransactionHash string
	/**
	 * The data sent along with the transaction.
	 * @type {string}
	 * @memberof EthTx
	 */
	Input string
	/**
	 * The number of transactions made by the sender prior to this one.
	 * @type {number}
	 * @memberof EthTx
	 */
	Nonce uint64
	/**
	 * Address of the receiver. 'null' when its a contract creation transaction.
	 * @type {string}
	 * @memberof EthTx
	 */
	To string
	/**
	 * Integer of the transactions index position in the block.
	 * @type {number}
	 * @memberof EthTx
	 */
	TransactionIndex uint64
	/**
	 * Value transferred in wei.
	 * @type {string}
	 * @memberof EthTx
	 */
	Value string
	/**
	 * The amount of gas used by this specific transaction alone.
	 * @type {number}
	 * @memberof EthTx
	 */
	GasUsed uint64
	/**
	 * The total amount of gas used when this transaction was executed in the block.
	 * @type {number}
	 * @memberof EthTx
	 */
	CumulativeGasUsed uint64
	/**
	 * The contract address created, if the transaction was a contract creation, otherwise null.
	 * @type {string}
	 * @memberof EthTx
	 */
	ContractAddress string
	/**
	 * Log events, that happened in this transaction.
	 * @type {Array<EthTxLogs>}
	 * @memberof EthTx
	 */
	Logs []EthTxLogs
}

*

*
* @export
* @interface EthTx

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL