Exemplo n.º 1
0
        public void Test()
        {
            var ipfs = new Ipfs.Api.IpfsClient();

            const string filename = "QmXarR6rgkQ2fDSHjSY5nM2kuCXKYGViky5nohtwgF65Ec/about";

            string text = ipfs.FileSystem.ReadAllTextAsync(filename).Result;
        }
Exemplo n.º 2
0
        public string GetFile(string psPeerKeyId, string psFileName)
        {
            var ipfs = new Ipfs.Api.IpfsClient();

            string filename = psPeerKeyId + "/" + psFileName;

            return(ipfs.FileSystem.ReadAllTextAsync(filename).Result);
        }