(self, peer: ty.Optional[str] = None, **kwargs: base.CommonArgs)
return self._client.request('/id', args, decoder='json', **kwargs)
Returns general information of an IPFS Node
		
		Returns the PublicKey, ProtocolVersion, ID, AgentVersion and
		Addresses of the connected daemon or some other node.
		
		.. code-block:: python
		
			>>> client.id()
			{'ID': 'QmVgNoP89mzpgEAAqK8owYoDEyB97MkcGvoWZir8otE9Uc',
			'PublicKey': 'CAASpgIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggE … BAAE=',
			'AgentVersion': 'go-libp2p/3.3.4',
			'ProtocolVersion': 'ipfs/0.1.0',
			'Addresses': [
				'/ip4/127.0.0.1/tcp/4001/ipfs/QmVgNoP89mzpgEAAqK8owYo … E9Uc',
				'/ip4/10.1.0.172/tcp/4001/ipfs/QmVgNoP89mzpgEAAqK8owY … E9Uc',
				'/ip4/172.18.0.1/tcp/4001/ipfs/QmVgNoP89mzpgEAAqK8owY … E9Uc',
				'/ip6/::1/tcp/4001/ipfs/QmVgNoP89mzpgEAAqK8owYoDEyB97 … E9Uc',
				'/ip6/fccc:7904:b05b:a579:957b:deef:f066:cad9/tcp/400 … E9Uc',
				'/ip6/fd56:1966:efd8::212/tcp/4001/ipfs/QmVgNoP89mzpg … E9Uc',
				'/ip6/fd56:1966:efd8:0:def1:34d0:773:48f/tcp/4001/ipf … E9Uc',
				'/ip6/2001:db8:1::1/tcp/4001/ipfs/QmVgNoP89mzpgEAAqK8 … E9Uc',
				'/ip4/77.116.233.54/tcp/4001/ipfs/QmVgNoP89mzpgEAAqK8 … E9Uc',
				'/ip4/77.116.233.54/tcp/10842/ipfs/QmVgNoP89mzpgEAAqK … E9Uc']}
		
		Parameters
		----------
		peer
			Peer.ID of the node to look up (local node if ``None``)
		
		Returns
		-------
			dict
				Information about the IPFS node
Returns general information of an IPFS Node
		
		Returns the PublicKey, ProtocolVersion, ID, AgentVersion and
		Addresses of the connected daemon or some other node.
		
		.. code-block:: python
		
			>>> client.id()
			{'ID': 'QmVgNoP89mzpgEAAqK8owYoDEyB97MkcGvoWZir8otE9Uc',
			'PublicKey': 'CAASpgIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggE … BAAE=',
			'AgentVersion': 'go-libp2p/3.3.4',
			'ProtocolVersion': 'ipfs/0.1.0',
			'Addresses': [
				'/ip4/127.0.0.1/tcp/4001/ipfs/QmVgNoP89mzpgEAAqK8owYo … E9Uc',
				'/ip4/10.1.0.172/tcp/4001/ipfs/QmVgNoP89mzpgEAAqK8owY … E9Uc',
				'/ip4/172.18.0.1/tcp/4001/ipfs/QmVgNoP89mzpgEAAqK8owY … E9Uc',
				'/ip6/::1/tcp/4001/ipfs/QmVgNoP89mzpgEAAqK8owYoDEyB97 … E9Uc',
				'/ip6/fccc:7904:b05b:a579:957b:deef:f066:cad9/tcp/400 … E9Uc',
				'/ip6/fd56:1966:efd8::212/tcp/4001/ipfs/QmVgNoP89mzpg … E9Uc',
				'/ip6/fd56:1966:efd8:0:def1:34d0:773:48f/tcp/4001/ipf … E9Uc',
				'/ip6/2001:db8:1::1/tcp/4001/ipfs/QmVgNoP89mzpgEAAqK8 … E9Uc',
				'/ip4/77.116.233.54/tcp/4001/ipfs/QmVgNoP89mzpgEAAqK8 … E9Uc',
				'/ip4/77.116.233.54/tcp/10842/ipfs/QmVgNoP89mzpgEAAqK … E9Uc']}
		
		Parameters
		----------
		peer
			Peer.ID of the node to look up (local node if ``None``)
		
		Returns
		-------
			dict
				Information about the IPFS node
Returns general information of an IPFS Node Returns the PublicKey ProtocolVersion ID AgentVersion and Addresses of the connected daemon or some other node . .. code - block :: python >>> client . id () { ID : QmVgNoP89mzpgEAAqK8owYoDEyB97MkcGvoWZir8otE9Uc PublicKey : CAASpgIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggE … BAAE = AgentVersion : go - libp2p / 3 . 3 . 4 ProtocolVersion : ipfs / 0 . 1 . 0 Addresses : [ / ip4 / 127 . 0 . 0 . 1 / tcp / 4001 / ipfs / QmVgNoP89mzpgEAAqK8owYo … E9Uc / ip4 / 10 . 1 . 0 . 172 / tcp / 4001 / ipfs / QmVgNoP89mzpgEAAqK8owY … E9Uc / ip4 / 172 . 18 . 0 . 1 / tcp / 4001 / ipfs / QmVgNoP89mzpgEAAqK8owY … E9Uc / ip6 / :: 1 / tcp / 4001 / ipfs / QmVgNoP89mzpgEAAqK8owYoDEyB97 … E9Uc / ip6 / fccc : 7904 : b05b : a579 : 957b : deef : f066 : cad9 / tcp / 400 … E9Uc / ip6 / fd56 : 1966 : efd8 :: 212 / tcp / 4001 / ipfs / QmVgNoP89mzpg … E9Uc / ip6 / fd56 : 1966 : efd8 : 0 : def1 : 34d0 : 773 : 48f / tcp / 4001 / ipf … E9Uc / ip6 / 2001 : db8 : 1 :: 1 / tcp / 4001 / ipfs / QmVgNoP89mzpgEAAqK8 … E9Uc / ip4 / 77 . 116 . 233 . 54 / tcp / 4001 / ipfs / QmVgNoP89mzpgEAAqK8 … E9Uc / ip4 / 77 . 116 . 233 . 54 / tcp / 10842 / ipfs / QmVgNoP89mzpgEAAqK … E9Uc ] } Parameters ---------- peer Peer . ID of the node to look up ( local node if None ) Returns ------- dict Information about the IPFS node
def id(self, peer: ty.Optional[str] = None, **kwargs: base.CommonArgs):
		"""Returns general information of an IPFS Node
		
		Returns the PublicKey, ProtocolVersion, ID, AgentVersion and
		Addresses of the connected daemon or some other node.
		
		.. code-block:: python
		
			>>> client.id()
			{'ID': 'QmVgNoP89mzpgEAAqK8owYoDEyB97MkcGvoWZir8otE9Uc',
			'PublicKey': 'CAASpgIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggE … BAAE=',
			'AgentVersion': 'go-libp2p/3.3.4',
			'ProtocolVersion': 'ipfs/0.1.0',
			'Addresses': [
				'/ip4/127.0.0.1/tcp/4001/ipfs/QmVgNoP89mzpgEAAqK8owYo … E9Uc',
				'/ip4/10.1.0.172/tcp/4001/ipfs/QmVgNoP89mzpgEAAqK8owY … E9Uc',
				'/ip4/172.18.0.1/tcp/4001/ipfs/QmVgNoP89mzpgEAAqK8owY … E9Uc',
				'/ip6/::1/tcp/4001/ipfs/QmVgNoP89mzpgEAAqK8owYoDEyB97 … E9Uc',
				'/ip6/fccc:7904:b05b:a579:957b:deef:f066:cad9/tcp/400 … E9Uc',
				'/ip6/fd56:1966:efd8::212/tcp/4001/ipfs/QmVgNoP89mzpg … E9Uc',
				'/ip6/fd56:1966:efd8:0:def1:34d0:773:48f/tcp/4001/ipf … E9Uc',
				'/ip6/2001:db8:1::1/tcp/4001/ipfs/QmVgNoP89mzpgEAAqK8 … E9Uc',
				'/ip4/77.116.233.54/tcp/4001/ipfs/QmVgNoP89mzpgEAAqK8 … E9Uc',
				'/ip4/77.116.233.54/tcp/10842/ipfs/QmVgNoP89mzpgEAAqK … E9Uc']}
		
		Parameters
		----------
		peer
			Peer.ID of the node to look up (local node if ``None``)
		
		Returns
		-------
			dict
				Information about the IPFS node
		"""
		args = (peer,) if peer is not None else ()
		return self._client.request('/id', args, decoder='json', **kwargs)
def id ( self , peer : ty . Optional [ str ] = None , * * kwargs : base . CommonArgs ) : args = ( peer , ) if peer is not None else ( ) return self . _client . request ( '/id' , args , decoder = 'json' , * * kwargs )