public function batchSubscribeAddressTransactions($identifier, $batchData) {
        $postData = [];
        foreach ($batchData as $record) {
            $postData[] = [
                'event_type' => 'address-transactions',
                'address' => $record['address'],
                'confirmations' => isset($record['confirmations']) ? $record['confirmations'] : 6,
            ];
        }
        $response = $this->blocktrailClient->post("webhook/{$identifier}/events/batch", null, $postData, RestClient::AUTH_HTTP_SIG);
        return self::jsonDecode($response->body(), true);
    }
public function batchSubscribeAddressTransactions($identifier, $batchData) {
        $postData = [];
        foreach ($batchData as $record) {
            $postData[] = [
                'event_type' => 'address-transactions',
                'address' => $record['address'],
                'confirmations' => isset($record['confirmations']) ? $record['confirmations'] : 6,
            ];
        }
        $response = $this->blocktrailClient->post("webhook/{$identifier}/events/batch", null, $postData, RestClient::AUTH_HTTP_SIG);
        return self::jsonDecode($response->body(), true);
    }
public function batchSubscribeAddressTransactions ( $ identifier , $ batchData ) { $ postData = [ ] ; foreach ( $ batchData as $ record ) { $ postData [ ] = [ 'event_type' => 'address-transactions' , 'address' => $ record [ 'address' ] , 'confirmations' => isset ( $ record [ 'confirmations' ] ) ? $ record [ 'confirmations' ] : 6 , ] ; } $ response = $ this -> blocktrailClient -> post ( "webhook/{$identifier}/events/batch" , null , $ postData , RestClient :: AUTH_HTTP_SIG ) ; return self :: jsonDecode ( $ response -> body ( ) , true ) ; }
batch subscribes a webhook to multiple transaction events

@param  string $identifier   the unique identifier of the webhook
@param  array  $batchData    A 2D array of event data:
[address => $address, confirmations => $confirmations]
where $address is the address to subscibe to
and optionally $confirmations is the amount of confirmations
@return boolean              true on success
batch subscribes a webhook to multiple transaction events