Store and Retrieve Data with the SDKs
Prerequisites
Steps
1. Store public data
DATA_B64=$(printf 'Hello, Autonomi!' | base64)
curl -X POST http://localhost:8082/v1/data/public \
-H "Content-Type: application/json" \
-d "{\"data\":\"$DATA_B64\"}"from antd import AntdClient
client = AntdClient()
result = client.data_put_public(b"Hello, Autonomi!")
print(result.address)import { createClient } from "antd";
async function main() {
const client = createClient();
const result = await client.dataPutPublic(Buffer.from("Hello, Autonomi!"));
console.log(result.address);
}
main().catch((error) => {
console.error(error);
process.exit(1);
});2. Retrieve public data
3. Store private data
4. Retrieve private data
5. Upload and download a file
6. Upload and download a directory
Verify it worked
Common errors
Next steps
Last updated