public function getTransactionsByAddresses(
        $type, $addresses, $beforeTx = null
    ) {
        if (is_null($beforeTx)) {
            $array = [
                'type'      => $type,
                'addresses' => $addresses,
            ];
        } else {
            $array = [
                'type'      => $type,
                'addresses' => $addresses,
                'before_tx' => $beforeTx,
            ];
        }

        return $this->blockIo->get_transactions($array);
    }