Using gftp transfer binary
Publishing files
Start yagna service:
Publish a chosen file (blocking).
Example output:
or with --verbose
(-v
)
Downloading a file
cargo run -p gftp -- download \
gftp://0x06bf342e4d1633aac5db38817c2e938e9d6ab7f3/edb0016d9f8bafb54540da34f05a8d510de8114488f23916276bdead05509a53 \
-o workdir/gftp/download.txt
Uploading a file
Publish file for upload (blocking):
cargo run -p gftp -- receive workdir/gftp-upload/License
Upload file on provider side:
cargo run -p gftp -- upload LICENSE gftp://0x06bf342e4d1633aac5db38817c2e938e9d6ab7f3/z2IeDvgs1Q1hZ6seR0iSEsKW8kxdxQCK0eoz6DsYVznqJIl5K18NqwJPdLgesY9yR
JSON-RPC 2.0 server
To start the application in JSON RPC server mode, type:
cargo run -p gftp -- server
JSON RPC messages can be sent to application's stdin. Each JSON object needs to be terminated with a new line (\n
).
Publish
Download
AwaitUpload
Upload
Flags
-
-v
,--verbose
Increases output verbosity to match the one in JSON RPC server mode.