src/Contracts/Driver.php
/**
     * List all local addresses the node is listening on.
     * @return object Guzzle Response.
     */
List all local addresses the node is listening on.
@return object Guzzle Response.
List all local addresses the node is listening on . @return object Guzzle Response .
public static function swarmLocalAddrs()
    {
        $api = [
        'path'    => 'http://localhost:5001/api/v0/swarm/addrs/local',
        'method'  => 'GET',
        'query'   => null,
        'file'    => null
        ];
        $cmd = null;
        $response = (new self())->handleCall($api, $cmd);
        return json_decode($response);
    }
public static function swarmLocalAddrs ( ) { $ api = [ 'path' => 'http://localhost:5001/api/v0/swarm/addrs/local' , 'method' => 'GET' , 'query' => null , 'file' => null ] ; $ cmd = null ; $ response = ( new self ( ) ) -> handleCall ( $ api , $ cmd ) ; return json_decode ( $ response ) ; }
List all local addresses the node is listening on.
List all local addresses the node is listening on .