Documentation

Technical specifications and API documentation for VoxelGrid developers

API Reference

Complete API documentation for VoxelGrid spatial computing functions

POST /api/v1/voxel/create
Content-Type: application/json
{
"coordinates": [x, y, z],
"metadata": {...},
"token_amount": 100
}

SDK Guide

Integration guides for JavaScript, Python, and Rust SDKs

npm install voxelgrid-sdk
import VoxelGrid from 'voxelgrid-sdk';
const client = new VoxelGrid(apiKey);
await client.deploy(voxelData);

Quick Start

Get started with VoxelGrid in minutes with our setup guide

1. Install SDK
2. Configure API keys
3. Deploy first voxel
4. Add metadata

Data Structures

Understanding VoxelGrid's spatial data architecture

interface VoxelData {
position: Vector3;
metadata: object;
owner: string;
logic?: VoxelLogic;
}

Smart Contract Interfaces

Blockchain integration and token management contracts

contract VoxelRegistry {
mapping(bytes32 => VoxelData) public voxels;
mapping(address => uint256) public balances;
function deployVoxel(
uint256[3] memory coordinates,
bytes memory metadata
) external payable;
}

Integration Examples

Basic Voxel Deployment

// Deploy a voxel with metadata
const voxel = await client.voxel.create({
x: 128, y: 64, z: 256,
metadata: { type: "building" },
tokenAmount: 500
});

Query Spatial Data

// Query voxels in region
const voxels = await client.query.region({
bounds: [0, 0, 0, 256, 256, 256],
filters: { owner: userAddress }
});