lib/BlockCypher/Api/Wallet.php
public function removeAddresses($addressList, $params = array(), $apiContext = null, $restCall = null)
    {
        ArgumentValidator::validate($addressList, 'addressList');
        ArgumentGetParamsValidator::validate($params, 'params');
        $allowedParams = array();
        $params = ArgumentGetParamsValidator::sanitize($params, $allowedParams);

        // DEPRECATED: Using DELETE Body
        //$payLoad = $addressList->toJSON();

        $payLoad = '';
        // Using 'address' url parameter
        if (!isset($params['address'])) {
            $params['address'] = implode(';', $addressList->getAddresses());
        } else {
            $params['address'] .= ';' . implode(';', $addressList->getAddresses());
        }

        $chainUrlPrefix = self::getChainUrlPrefix($apiContext);

        $json = self::executeCall(
            //"$chainUrlPrefix/wallets/{$this->name}/addresses?" . http_build_query($params), // With DELETE body
            "$chainUrlPrefix/wallets/{$this->name}/addresses?" . http_build_query($params), // Without DELETE body
            "DELETE",
            $payLoad,
            null,
            $apiContext,
            $restCall
        );
        $this->fromJson($json);
        return $this;
    }
public function removeAddresses($addressList, $params = array(), $apiContext = null, $restCall = null)
    {
        ArgumentValidator::validate($addressList, 'addressList');
        ArgumentGetParamsValidator::validate($params, 'params');
        $allowedParams = array();
        $params = ArgumentGetParamsValidator::sanitize($params, $allowedParams);

        // DEPRECATED: Using DELETE Body
        //$payLoad = $addressList->toJSON();

        $payLoad = '';
        // Using 'address' url parameter
        if (!isset($params['address'])) {
            $params['address'] = implode(';', $addressList->getAddresses());
        } else {
            $params['address'] .= ';' . implode(';', $addressList->getAddresses());
        }

        $chainUrlPrefix = self::getChainUrlPrefix($apiContext);

        $json = self::executeCall(
            //"$chainUrlPrefix/wallets/{$this->name}/addresses?" . http_build_query($params), // With DELETE body
            "$chainUrlPrefix/wallets/{$this->name}/addresses?" . http_build_query($params), // Without DELETE body
            "DELETE",
            $payLoad,
            null,
            $apiContext,
            $restCall
        );
        $this->fromJson($json);
        return $this;
    }
public function removeAddresses ( $ addressList , $ params = array ( ) , $ apiContext = null , $ restCall = null ) { ArgumentValidator :: validate ( $ addressList , 'addressList' ) ; ArgumentGetParamsValidator :: validate ( $ params , 'params' ) ; $ allowedParams = array ( ) ; $ params = ArgumentGetParamsValidator :: sanitize ( $ params , $ allowedParams ) ; // DEPRECATED: Using DELETE Body //$payLoad = $addressList->toJSON(); $ payLoad = '' ; // Using 'address' url parameter if ( ! isset ( $ params [ 'address' ] ) ) { $ params [ 'address' ] = implode ( ';' , $ addressList -> getAddresses ( ) ) ; } else { $ params [ 'address' ] .= ';' . implode ( ';' , $ addressList -> getAddresses ( ) ) ; } $ chainUrlPrefix = self :: getChainUrlPrefix ( $ apiContext ) ; $ json = self :: executeCall ( //"$chainUrlPrefix/wallets/{$this->name}/addresses?" . http_build_query($params), // With DELETE body "$chainUrlPrefix/wallets/{$this->name}/addresses?" . http_build_query ( $ params ) , // Without DELETE body "DELETE" , $ payLoad , null , $ apiContext , $ restCall ) ; $ this -> fromJson ( $ json ) ; return $ this ; }
Remove Addresses to the Wallet. Addresses will no longer be associated with the wallet.

@deprecated since version 1.2. Use WalletClient.
@param AddressList $addressList
@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 Wallet
Remove Addresses to the Wallet . Addresses will no longer be associated with the wallet .