Load S3 Agent
The LCP data agent
The first agent in the list is load-s3-agent — an orchestrator agent that makes it possible to interact with both Load S3 and Arweave under a single HTTP endpoint, with a self-managed data bridge from Load S3 to Arweave.
Agent API
- GET - /: agent info
- GET - /stats: storage stats
- GET - /:dataitem_id: generate a presigned get_object URL to access the ANS-104 DataItem data.
- POST - /upload: post data (or signed dataitem) to store a public offchain DataItem on- [email protected]
- POST - /upload/private: post data (or signed dataitem) to store a private offchain DataItem on- [email protected]
- POST - /post/:dataitem_id: post an- [email protected]public DataItem to Arweave via Turbo (N.B: Turbo covers any dataitem cost with size <= 100KB).
Upload data and return an agent public signed DataItem
echo -n "hello world" | curl -X POST https://load-s3-agent.load.network/upload \
  -H "Authorization: Bearer $load_acc_api_key" \
  -F "file=@-;type=text/plain" \
  -F "content_type=text/plain"Upload data and return an agent private signed DataItem
echo -n "hello world" | curl -X POST https://load-s3-agent.load.network/upload/private \
  -H "Authorization: Bearer $load_acc_api_key" \
  -H "x-bucket-name: $bucket_name" \
  -H "x-dataitem-name: $dataitem_name" \
  -H "x-folder-name": $folder_name" \ 
  -H "signed: false" \  
  -F "file=@-;type=text/plain" \
  -F "content_type=text/plain"Upload signed dataitem to a private bucket (private dataitem)
curl -X POST https://load-s3-agent.load.network/upload/private \
  -H "Authorization: Bearer $load_acc_api_key" \
  -H "signed: true" \
  -H "bucket_name: $bucket_name" \
  -H "x-dataitem-name: $dataitem_name" \
  -H "x-folder-name": $folder_name" \ 
  -F "[email protected]" \
  -F "content_type=application/octet-stream"Upload a signed DataItem and store it in Load S3
curl -X POST https://load-s3-agent.load.network/upload \
  -H "Authorization: Bearer REACH_OUT_TO_US" \
  -H "signed: true" \
  -F "[email protected]"Post offchain DataItem to Arweave
example: for offchain dataitem = eoNAO-HlYasHJt3QFDuRrMVdLUxq5B8bXe4N_kboNWs
curl -X POST \
  "https://load-s3-agent.load.network/post/eoNAO-HlYasHJt3QFDuRrMVdLUxq5B8bXe4N_kboNWs" \
  -H "Authorization: Bearer REACH_OUT_TO_US" \
  -H "Content-Type: application/json"Last updated
