SDK Guide

Integrate DartChain into your applications with our official SDKs. Available for all major programming languages.

Official SDKs

JS

JavaScript/TypeScript

Node.js & Browser

npm install @dartchain/sdk
View Docs
PY

Python

Python 3.8+

pip install dartchain
View Docs
GO

Go

Go 1.19+

go get github.com/dartchain/go-sdk
View Docs
JV

Java

Java 11+

implementation 'com.dartchain:sdk:1.0.0'
View Docs

Quick Start Example

Here's a simple example using the JavaScript SDK to create and execute a workflow:

// JavaScript/TypeScript Example
import
DartChain
from
'@dartchain/sdk'


const
dartchain =
new
DartChain
(
'your-api-key'
)


const
workflow =
await
dartchain.workflows.
create
({

name:
'My First Workflow'
,

tasks: [

{ type:
'http'
, url:
'https://api.example.com/data'
}

]

})

SDK Features

  • ✅ Full TypeScript support with complete type definitions
  • ✅ Automatic retry logic with exponential backoff
  • ✅ Built-in error handling and validation
  • ✅ Streaming support for real-time workflow execution
  • ✅ Comprehensive logging and debugging utilities
  • ✅ Promise-based async API with callback support