Struct cfx_rpc_eth_types::Receipt
source · pub struct Receipt {Show 17 fields
pub transaction_type: Option<U64>,
pub transaction_hash: H256,
pub transaction_index: U256,
pub block_hash: H256,
pub from: H160,
pub to: Option<H160>,
pub block_number: U256,
pub cumulative_gas_used: U256,
pub gas_used: U256,
pub gas_fee: U256,
pub contract_address: Option<H160>,
pub logs: Vec<Log>,
pub logs_bloom: Bloom,
pub status_code: U64,
pub effective_gas_price: U256,
pub tx_exec_error_msg: Option<String>,
pub burnt_gas_fee: Option<U256>,
}
Expand description
Receipt
Fields§
§transaction_type: Option<U64>
§transaction_hash: H256
Transaction Hash
transaction_index: U256
Transaction index
block_hash: H256
Block hash
from: H160
Sender
to: Option<H160>
Recipient
block_number: U256
Block number
cumulative_gas_used: U256
Cumulative gas used
gas_used: U256
Gas used
gas_fee: U256
The gas fee charged in the execution of the transaction.
contract_address: Option<H160>
Contract address
logs: Vec<Log>
Logs
logs_bloom: Bloom
Logs bloom
status_code: U64
Status code
effective_gas_price: U256
Effective gas price
tx_exec_error_msg: Option<String>
Detailed error message if tx execution is unsuccessful. Error message is None if tx execution is successful or it can not be offered. Error message can not be offered by light client.
burnt_gas_fee: Option<U256>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Receipt
impl Send for Receipt
impl Sync for Receipt
impl Unpin for Receipt
impl UnwindSafe for Receipt
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more