### Upload File or Directory using Unibase Go SDK Source: https://github.com/unibaseio/unibase-sdk-go/blob/main/README.md Example demonstrating how to upload a file or directory using the Unibase Go SDK. This requires setting the 'CHAIN_TYPE' environment variable, building the upload example, and providing your secret key and the local path to the data. ```Bash export CHAIN_TYPE=bnb-testnet cd example/upload go build ./upload --model=false --sk= --path= ``` -------------------------------- ### Install Unibase Go SDK Source: https://github.com/unibaseio/unibase-sdk-go/blob/main/README.md Instructions to clone the Unibase Go SDK repository from GitHub, navigate into the project directory, and build the Go application using the 'go build' command. ```Bash git clone https://github.com/unibaseio/unibase-sdk-go.git cd unibase-sdk-go go build ``` -------------------------------- ### Download File from Unibase Public Hub API Source: https://github.com/unibaseio/unibase-sdk-go/blob/main/README.md Example of downloading a file from the Unibase Public Hub using a 'wget' command. This provides a lightweight HTTP GET interface for retrieving data by specifying the file name and owner address. ```Bash wget http://54.151.130.2:8080/api/download?name=&owner= -O ``` -------------------------------- ### Download File or Directory using Unibase Go SDK Source: https://github.com/unibaseio/unibase-sdk-go/blob/main/README.md Example demonstrating how to download a file or directory using the Unibase Go SDK. This involves setting the 'CHAIN_TYPE' environment variable, building the download example, and providing your secret key, the file's name on Unibase, and the desired local save path. ```Bash export CHAIN_TYPE=bnb-testnet cd example/download go build ./download --model=false --sk= --name= --path= ``` -------------------------------- ### Upload Data to Unibase Public Hub API Source: https://github.com/unibaseio/unibase-sdk-go/blob/main/README.md Example of uploading data to the Unibase Public Hub using a 'curl' POST request. This demonstrates how to send a JSON payload containing an ID, owner address, and a message to the Public Hub's upload endpoint for lightweight storage. ```Bash curl -X POST http://54.151.130.2:8080/api/upload -d '{"id":"test1","owner":"0xabcd","message":"sample message"}' ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.