SDK

Official SDKs — five languages, zero dependencies

Anchor a document with three lines of code. Every SDK includes local proof verification, file anchoring and all six products — published on the official package registries and developed on GitHub.

Install

pip install trustbeat

Quickstart

from trustbeat import TrustBeat

tb = TrustBeat(api_key="YOUR_API_KEY")
proof = tb.anchor_file_wait("contract.pdf")
print(proof.merkle_root)

TypeScript / JavaScript

Install

npm install trustbeat

Quickstart

import { TrustBeat } from "trustbeat";

const tb = new TrustBeat({ apiKey: "YOUR_API_KEY" });
const proof = await tb.anchorFileWait("contract.pdf");
console.log(proof.merkleRoot);

Install

mvn dependency:get -Dartifact=eu.trustbeat:trustbeat-sdk:LATEST

Quickstart

TrustBeat tb = new TrustBeat.Builder().apiKey("YOUR_API_KEY").build();
AnchorProof proof = tb.anchorFileWait(Path.of("contract.pdf"));
System.out.println(proof.getMerkleRoot());

C# / .NET

Install

dotnet add package TrustBeat

Quickstart

var tb = new TrustBeatClient("YOUR_API_KEY");
var proof = await tb.AnchorFileWaitAsync("contract.pdf");
Console.WriteLine(proof.MerkleRoot);

Install

go get github.com/TrustBeat/sdk-go

Quickstart

c, _ := trustbeat.NewClient("YOUR_API_KEY")
proof, _ := c.AnchorFileWait(ctx, "contract.pdf", nil, nil)
fmt.Println(proof.MerkleRoot)
TB

Ready to anchor your first document?

Start free. No credit card required. Your first 100 hashes are on us.

eIDAS Regulation (EU) No 910/2014 · Art. 41 legal presumption · EU Trusted List QTSP

SDKs — Python, TypeScript, Java, C#, Go | TrustBeat