src/Steemit.php
private function broadcast($body)
    {
        $method   = 'POST';
        $url      = "{$this->domain}/broadcast";
        $headears = $this->getHeaders();
        $body     = json_encode($body);

        try {
            $request = $this->getClient()->request($method, $url, [
                'headers' => $headears,
                'body'    => $body
            ]);

            $response = $request->getBody()->getContents();

            return json_decode($response, true);

        } catch (RequestException $e) {
            $response = $e->getResponse()->getBody()->getContents();
            $response = json_decode($response, true);
            return $response;
        } catch (\Exception $e) {
            return ['error' => $e->getCode(), 'error_description' => $e->getMessage()];
        }
    }
private function broadcast($body)
    {
        $method   = 'POST';
        $url      = "{$this->domain}/broadcast";
        $headears = $this->getHeaders();
        $body     = json_encode($body);

        try {
            $request = $this->getClient()->request($method, $url, [
                'headers' => $headears,
                'body'    => $body
            ]);

            $response = $request->getBody()->getContents();

            return json_decode($response, true);

        } catch (RequestException $e) {
            $response = $e->getResponse()->getBody()->getContents();
            $response = json_decode($response, true);
            return $response;
        } catch (\Exception $e) {
            return ['error' => $e->getCode(), 'error_description' => $e->getMessage()];
        }
    }
Execute broadcast operations

@param array  $body
@return array