public void Test() { var ipfs = new Ipfs.Api.IpfsClient(); const string filename = "QmXarR6rgkQ2fDSHjSY5nM2kuCXKYGViky5nohtwgF65Ec/about"; string text = ipfs.FileSystem.ReadAllTextAsync(filename).Result; }
public string GetFile(string psPeerKeyId, string psFileName) { var ipfs = new Ipfs.Api.IpfsClient(); string filename = psPeerKeyId + "/" + psFileName; return(ipfs.FileSystem.ReadAllTextAsync(filename).Result); }