ipfs: IPFS

Description Usage Arguments References Examples

Description

Connect to the inter-planetary file system.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
ipfs_get(key)

ipfs_add(files)

ipfs_ls(key)

ipfs_data(key)

ipfs_cat(key)

ipfs_swarm()

ipfs_stats()

ipfs_download(key, path = NULL)

ipfs_info()

ipfs_config()

ipfs_browse(key, gateway = "https://ipfs.io/ipfs/")

ipfs_webui()

ipfs_commands()

ipfs_server(new_url = NULL)

Arguments

key

a multihash key

files

path(s) of files to add

path

filename to save download.

gateway

any IPFS gateway server

new_url

set a different API server. Default is "http://127.0.0.1:5001"

References

IPFS api: https://ipfs.io/docs/api/ Draft paper: https://ipfs.io/ipfs/QmR7GSQM93Cx5eAg6a6yRzNde1FQv7uL6X1o4k7zrJa3LX/ipfs.draft3.pdf

Examples

1
2
3
4
5
6
7
# From 'getting started'
ipfs_daemon(TRUE)
ipfs_info()
ipfs_get('QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG')
ipfs_data('QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme')
ipfs_download('QmR7GSQM93Cx5eAg6a6yRzNde1FQv7uL6X1o4k7zrJa3LX/ipfs.draft3.pdf')
# utils::browseURL('ipfs.draft3.pdf')

jeroen/ipfs documentation built on May 17, 2017, 6:14 p.m.