examples/marine-examples/url-downloader
renovate[bot] 1d338e2e4b
chore(deps): update rust crate marine-rs-sdk-test to 0.10.0 (#449)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-05-26 18:04:42 -05:00
..
.fluence update url-downloader to fluence cli (#442) 2023-04-23 14:17:21 -05:00
module-exports add fluence cli packaging, update records (#423) 2023-02-22 11:14:01 -06:00
service chore(deps): update rust crate marine-rs-sdk-test to 0.10.0 (#449) 2023-05-26 18:04:42 -05:00
src update url-downloader to fluence cli (#442) 2023-04-23 14:17:21 -05:00
.gitignore marine sqlite update to Fluence CLI (#439) 2023-04-22 20:03:53 -05:00
Cargo.toml marine sqlite update to Fluence CLI (#439) 2023-04-22 20:03:53 -05:00
download_url.aqua Remove fldist from examples (#69) 2022-02-16 09:21:21 -07:00
fluence.yaml update url-downloader to fluence cli (#442) 2023-04-23 14:17:21 -05:00
README.md reflecting some changes in aqua to fix the url-downloader example (#347) 2022-06-29 10:51:41 +02:00

Download file to disk

Example that shows how to work with disk access and how to link several Wasm modules into a service.

Build & deploy it

./deploy.sh

Call it

aqua run \
     --addr /dns4/kras-06.fluence.dev/tcp/19001/wss/p2p/12D3KooWDUszU2NeWyUVjCXhGEt1MoZrhvdmaQQwtZUriuGN1jTr  \
     -i download_url.aqua \
     -f'download("https://fluence.network/img/svg/logo_new.svg", "logo.svg", "<your-service-peer-id>", "<your-service-id>")'

Please note that the <your-service-peer-id> is a peer where you deployed your service to using the deploy.sh script and the <your-service-id> is one you get after successfully deploying you service on the peer, e.g.:

...
Now time to make a blueprint...
Blueprint id:
d0a0c3cff0b371f833918ceb7dccbb8e38e3847bc7bf5d35a0e730f24568e13e
And your service id is:
"46477b20-c061-46ea-89bc-25906ad543d6"

For more in depth reading on the example please refer to the Marine Examples Readme