src/Contracts/Driver.php
/**
     * Get file size of an IPFS Object.
     * @return object Guzzle Response.
     */
Get file size of an IPFS Object.
@return object Guzzle Response.
Get file size of an IPFS Object . @return object Guzzle Response .
public static function size($hash)
    {
        $api = [
        'path'    => 'http://localhost:5001/api/v0/object/stat/'.$hash,
        'method'  => 'GET',
        'query'   => null,
        'file'    => null
        ];
        $cmd = null;
        $response = (new self())->handleCall($api, $cmd);
        return json_decode($response);
    }
public static function size ( $ hash ) { $ api = [ 'path' => 'http://localhost:5001/api/v0/object/stat/' . $ hash , 'method' => 'GET' , 'query' => null , 'file' => null ] ; $ cmd = null ; $ response = ( new self ( ) ) -> handleCall ( $ api , $ cmd ) ; return json_decode ( $ response ) ; }
Get file size of an IPFS Object.
Get file size of an IPFS Object .