136 public function __construct(
EthQ $number = null,
EthD32 $hash = null,
EthD32 $parentHash = null,
EthD $nonce = null,
EthD $sha3Uncles = null,
EthD $logsBloom = null,
EthD $transactionsRoot = null,
EthD $stateRoot = null,
EthD $receiptsRoot = null,
EthD $miner = null,
EthQ $difficulty = null,
EthQ $totalDifficulty = null,
EthD $extraData = null,
EthQ $size = null,
EthQ $gasLimit = null,
EthQ $gasUsed = null,
EthQ $timestamp = null, array
$transactions = null, array
$uncles = null) {
165 'parentHash' =>
'EthD32',
167 'sha3Uncles' =>
'EthD',
168 'logsBloom' =>
'EthD',
169 'transactionsRoot' =>
'EthD',
170 'stateRoot' =>
'EthD',
171 'receiptsRoot' =>
'EthD',
173 'difficulty' =>
'EthQ',
174 'totalDifficulty' =>
'EthQ',
175 'extraData' =>
'EthD',
177 'gasLimit' =>
'EthQ',
179 'timestamp' =>
'EthQ',
180 'transactions' =>
'[Transaction]',
181 'uncles' =>
'[EthD]',
190 (!is_null($this->number)) ? $return[
'number'] = $this->number->hexVal() : NULL;
191 (!is_null($this->hash)) ? $return[
'hash'] = $this->hash->hexVal() : NULL;
192 (!is_null($this->parentHash)) ? $return[
'parentHash'] = $this->parentHash->hexVal() : NULL;
193 (!is_null($this->nonce)) ? $return[
'nonce'] = $this->nonce->hexVal() : NULL;
194 (!is_null($this->sha3Uncles)) ? $return[
'sha3Uncles'] = $this->sha3Uncles->hexVal() : NULL;
195 (!is_null($this->logsBloom)) ? $return[
'logsBloom'] = $this->logsBloom->hexVal() : NULL;
196 (!is_null($this->transactionsRoot)) ? $return[
'transactionsRoot'] = $this->transactionsRoot->hexVal() : NULL;
197 (!is_null($this->stateRoot)) ? $return[
'stateRoot'] = $this->stateRoot->hexVal() : NULL;
198 (!is_null($this->receiptsRoot)) ? $return[
'receiptsRoot'] = $this->receiptsRoot->hexVal() : NULL;
199 (!is_null($this->miner)) ? $return[
'miner'] = $this->miner->hexVal() : NULL;
200 (!is_null($this->difficulty)) ? $return[
'difficulty'] = $this->difficulty->hexVal() : NULL;
201 (!is_null($this->totalDifficulty)) ? $return[
'totalDifficulty'] = $this->totalDifficulty->hexVal() : NULL;
202 (!is_null($this->extraData)) ? $return[
'extraData'] = $this->extraData->hexVal() : NULL;
203 (!is_null($this->size)) ? $return[
'size'] = $this->size->hexVal() : NULL;
204 (!is_null($this->gasLimit)) ? $return[
'gasLimit'] = $this->gasLimit->hexVal() : NULL;
205 (!is_null($this->gasUsed)) ? $return[
'gasUsed'] = $this->gasUsed->hexVal() : NULL;
206 (!is_null($this->timestamp)) ? $return[
'timestamp'] = $this->timestamp->hexVal() : NULL;
207 (!is_null($this->transactions)) ? $return[
'transactions'] =
Ethereum::valueArray($this->transactions,
'Transaction') : array();
208 (!is_null($this->uncles)) ? $return[
'uncles'] =
Ethereum::valueArray($this->uncles,
'EthD') : array();
static valueArray(array $values, string $typeClass)
__construct(EthQ $number=null, EthD32 $hash=null, EthD32 $parentHash=null, EthD $nonce=null, EthD $sha3Uncles=null, EthD $logsBloom=null, EthD $transactionsRoot=null, EthD $stateRoot=null, EthD $receiptsRoot=null, EthD $miner=null, EthQ $difficulty=null, EthQ $totalDifficulty=null, EthD $extraData=null, EthQ $size=null, EthQ $gasLimit=null, EthQ $gasUsed=null, EthQ $timestamp=null, array $transactions=null, array $uncles=null)