Hub

upload/download small files, small files are aggregated into large file, and submit to unibase DA.

public hub

download

  • web browser: https://testnet.hub.membase.io/api/download?name=<your file name>&owner=<your file owne>

  • shell

> wget https://hub.membase.io/api/download?name=<your file name>\&owner=<your file owner> -O <saved name>
# or display 
> curl https://hub.membase.io/api/download?name=<your file name>\&owner=<your file owner>

upload

  • upload using json

# output: {"File":"0xabcd-0.vol","Start":0,"Size":41}
> curl -X POST https://hub.membase.io/api/upload -d '{
    "id": "test1", 
    "owner":"0xabcd",
    "message":"Here is a story about llamas eating grass"
  }'

private hub

Last updated