List Projects
client.projects.list(ProjectListParams { cursor, limit } query?, RequestOptionsoptions?): Cursor<Project { id, created_at, name, 3 more } >
GET/v1/projects
List Projects
import NirvanaLabs from '@nirvana-labs/nirvana';
const client = new NirvanaLabs({
apiKey: process.env['NIRVANA_LABS_API_KEY'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const project of client.projects.list()) {
console.log(project.id);
}{
"items": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2025-01-01T00:00:00Z",
"name": "My Project",
"resources": {
"blockchain": {
"rpc_nodes_dedicated": 1,
"rpc_nodes_flex": 3
},
"cloud": {
"connect_connections": 1,
"nks_clusters": 2,
"nks_node_pools": 4,
"vms": 5,
"volumes": 10,
"vpcs": 2
}
},
"tags": [
"production",
"ethereum"
],
"updated_at": "2025-01-01T00:00:00Z"
}
],
"pagination": {
"next_cursor": "RhwniMT4B74siYZcPF8TnCdGI1l9rpPvg",
"previous_cursor": "ARhwnmi1hA7wEbHbMjdYQlOB_ZusP4fYvw",
"total_count": 125
}
}Returns Examples
{
"items": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2025-01-01T00:00:00Z",
"name": "My Project",
"resources": {
"blockchain": {
"rpc_nodes_dedicated": 1,
"rpc_nodes_flex": 3
},
"cloud": {
"connect_connections": 1,
"nks_clusters": 2,
"nks_node_pools": 4,
"vms": 5,
"volumes": 10,
"vpcs": 2
}
},
"tags": [
"production",
"ethereum"
],
"updated_at": "2025-01-01T00:00:00Z"
}
],
"pagination": {
"next_cursor": "RhwniMT4B74siYZcPF8TnCdGI1l9rpPvg",
"previous_cursor": "ARhwnmi1hA7wEbHbMjdYQlOB_ZusP4fYvw",
"total_count": 125
}
}