public function getHistoricalAccountData($address, $startHeight = null, $endHeight = null, $increment = null)
    {
        $params = ["address" => $address];

        if ($startHeight !== null)
            $params["startHeight"] = $startHeight;

        if ($endHeight !== null)
            $params["endHeight"] = $endHeight;

        if ($increment !== null)
            $params["increment"] = $increment;

        $apiUrl = $this->getPath('historical/get', $params);
        $response = $this->api->getJSON($apiUrl);

        //XXX include Error checks
        $object = json_decode($response);
        return $this->createBaseCollection($object['data']); //XXX brr => error/content validation first
    }
public function getHistoricalAccountData($address, $startHeight = null, $endHeight = null, $increment = null)
    {
        $params = ["address" => $address];

        if ($startHeight !== null)
            $params["startHeight"] = $startHeight;

        if ($endHeight !== null)
            $params["endHeight"] = $endHeight;

        if ($increment !== null)
            $params["increment"] = $increment;

        $apiUrl = $this->getPath('historical/get', $params);
        $response = $this->api->getJSON($apiUrl);

        //XXX include Error checks
        $object = json_decode($response);
        return $this->createBaseCollection($object['data']); //XXX brr => error/content validation first
    }
public function getHistoricalAccountData ( $ address , $ startHeight = null , $ endHeight = null , $ increment = null ) { $ params = [ "address" => $ address ] ; if ( $ startHeight !== null ) $ params [ "startHeight" ] = $ startHeight ; if ( $ endHeight !== null ) $ params [ "endHeight" ] = $ endHeight ; if ( $ increment !== null ) $ params [ "increment" ] = $ increment ; $ apiUrl = $ this -> getPath ( 'historical/get' , $ params ) ; $ response = $ this -> api -> getJSON ( $ apiUrl ) ; //XXX include Error checks $ object = json_decode ( $ response ) ; return $ this -> createBaseCollection ( $ object [ 'data' ] ) ; //XXX brr => error/content validation first }
Gets historical information for an account.

@param   string          $address        The address of the account.
@param   integer         $startHeight    The block height from which on the data should be supplied.
@param   integer         $endHeight      The block height up to which the data should be supplied. The end height must be greater than or equal to the start height.
@param   integer         $increment      The value by which the height is incremented between each data point. The value must be
greater than 0. NIS can supply up to 1000 data points with one request. Requesting more
than 1000 data points results in an error.
@return  array                           Array of object with keys from [Mosaic](https://bob.nem.ninja/docs/#mosaics) objects.
Gets historical information for an account .