public function getBalance(string $address = null):JsonResponse
    {
        $params = [];

        if (!is_null($address)) $params['address'] = $address;

        return $this->rpcPost('getBalance', $params);
    }
public function getBalance(string $address = null):JsonResponse
    {
        $params = [];

        if (!is_null($address)) $params['address'] = $address;

        return $this->rpcPost('getBalance', $params);
    }
public function getBalance ( string $ address = null ) : JsonResponse { $ params = [ ] ; if ( ! is_null ( $ address ) ) $ params [ 'address' ] = $ address ; return $ this -> rpcPost ( 'getBalance' , $ params ) ; }
Method returns a balance for a specified address.

@param string|null $address Valid and existing address in this wallet. Optional.
@return JsonResponse
Method returns a balance for a specified address .