lib/BlockCypher/Client/AddressClient.php
public function getMultipleBalances($array, $params = array(), $apiContext = null, $restCall = null)
    {
        ArgumentArrayValidator::validate($array, 'array');
        ArgumentGetParamsValidator::validate($params, 'params');
        $allowedParams = array(
            'omitWalletAddresses' => 1,
        );
        $params = ArgumentGetParamsValidator::sanitize($params, $allowedParams);

        $payLoad = "";

        $addressList = implode(";", $array);

        $chainUrlPrefix = $this->getChainUrlPrefix($apiContext);

        $json = $this->executeCall(
            "$chainUrlPrefix/addrs/$addressList/balance" . http_build_query(array_intersect_key($params, $allowedParams)),
            "GET",
            $payLoad,
            null,
            $apiContext,
            $restCall
        );
        return AddressBalance::getList($json);
    }
public function getMultipleBalances($array, $params = array(), $apiContext = null, $restCall = null)
    {
        ArgumentArrayValidator::validate($array, 'array');
        ArgumentGetParamsValidator::validate($params, 'params');
        $allowedParams = array(
            'omitWalletAddresses' => 1,
        );
        $params = ArgumentGetParamsValidator::sanitize($params, $allowedParams);

        $payLoad = "";

        $addressList = implode(";", $array);

        $chainUrlPrefix = $this->getChainUrlPrefix($apiContext);

        $json = $this->executeCall(
            "$chainUrlPrefix/addrs/$addressList/balance" . http_build_query(array_intersect_key($params, $allowedParams)),
            "GET",
            $payLoad,
            null,
            $apiContext,
            $restCall
        );
        return AddressBalance::getList($json);
    }
public function getMultipleBalances ( $ array , $ params = array ( ) , $ apiContext = null , $ restCall = null ) { ArgumentArrayValidator :: validate ( $ array , 'array' ) ; ArgumentGetParamsValidator :: validate ( $ params , 'params' ) ; $ allowedParams = array ( 'omitWalletAddresses' => 1 , ) ; $ params = ArgumentGetParamsValidator :: sanitize ( $ params , $ allowedParams ) ; $ payLoad = "" ; $ addressList = implode ( ";" , $ array ) ; $ chainUrlPrefix = $ this -> getChainUrlPrefix ( $ apiContext ) ; $ json = $ this -> executeCall ( "$chainUrlPrefix/addrs/$addressList/balance" . http_build_query ( array_intersect_key ( $ params , $ allowedParams ) ) , "GET" , $ payLoad , null , $ apiContext , $ restCall ) ; return AddressBalance :: getList ( $ json ) ; }
Obtain multiple AddressBalances resources for the given identifiers.

@param string[] $array
@param array $params Parameters
@param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
@param BlockCypherRestCall $restCall is the Rest Call Service that is used to make rest calls
@return AddressBalance[]
Obtain multiple AddressBalances resources for the given identifiers .