public function getMinedBlocks($address, $blockType = EtherscanAPIConf::BLOCK_TYPE_BLOCKS, $page = null, $offset = null) {
        if (!in_array($blockType, EtherscanAPIConf::$blockTypes)) {
            throw new \Exception("Invalid block type");
        }

        $params = [
            'module' => "account",
            'action' => "getminedblocks",
            'address' => $address,
            'blocktype' => $blockType,
        ];

        if (!is_null($page)) {
            $params['page'] = (int)$page;
        }

        if (!is_null($offset)) {
            $params['offset'] = (int)$offset;
        }

        return $this->request->exec($params);
    }
public function getMinedBlocks($address, $blockType = EtherscanAPIConf::BLOCK_TYPE_BLOCKS, $page = null, $offset = null) {
        if (!in_array($blockType, EtherscanAPIConf::$blockTypes)) {
            throw new \Exception("Invalid block type");
        }

        $params = [
            'module' => "account",
            'action' => "getminedblocks",
            'address' => $address,
            'blocktype' => $blockType,
        ];

        if (!is_null($page)) {
            $params['page'] = (int)$page;
        }

        if (!is_null($offset)) {
            $params['offset'] = (int)$offset;
        }

        return $this->request->exec($params);
    }
public function getMinedBlocks ( $ address , $ blockType = EtherscanAPIConf :: BLOCK_TYPE_BLOCKS , $ page = null , $ offset = null ) { if ( ! in_array ( $ blockType , EtherscanAPIConf :: $ blockTypes ) ) { throw new \ Exception ( "Invalid block type" ) ; } $ params = [ 'module' => "account" , 'action' => "getminedblocks" , 'address' => $ address , 'blocktype' => $ blockType , ] ; if ( ! is_null ( $ page ) ) { $ params [ 'page' ] = ( int ) $ page ; } if ( ! is_null ( $ offset ) ) { $ params [ 'offset' ] = ( int ) $ offset ; } return $ this -> request -> exec ( $ params ) ; }
Get list of Blocks Mined by Address.

@param string $address Ether address
@param string $blockType "blocks" or "uncles"
@param int $page Page number
@param int $offset Offset

@return array
Get list of Blocks Mined by Address .