Skip to content
Paxeer X

Client SDKs

One call. Eight languages.Same result.

Official libraries for Go, Java, Kotlin, Swift, .NET, TypeScript, Python and Rust, with receipts you can verify on your own machine.

// 01 send
client := paxeer.New(cfg)
tx, err := client.Send(ctx, req)
check(err)

// 02 follow to completion
res, err := tx.Wait(ctx)
check(err)

// 03 verify the receipt locally
err = res.Receipt.Verify(pinnedKeys, req)
check(err)
// 01 send
var client = PaxeerClient.create(cfg);
var tx = client.send(request);


// 02 follow to completion
var result = tx.await();


// 03 verify the receipt locally
result.receipt().verify(pinnedKeys, request);
// 01 send
val client = PaxeerClient.create(cfg)
val tx = client.send(request)


// 02 follow to completion
val result = tx.await()


// 03 verify the receipt locally
result.receipt.verify(pinnedKeys, request)
// 01 send
let client = PaxeerClient(config: cfg)
let tx = try await client.send(request)


// 02 follow to completion
let result = try await tx.wait()


// 03 verify the receipt locally
try result.receipt.verify(pinnedKeys, request)
// 01 send
var client = new PaxeerClient(cfg);
var tx = await client.SendAsync(request);


// 02 follow to completion
var result = await tx.WaitAsync();


// 03 verify the receipt locally
result.Receipt.Verify(pinnedKeys, request);
// 01 send
const client = new PaxeerClient(cfg);
const tx = await client.send(request);


// 02 follow to completion
const result = await tx.wait();


// 03 verify the receipt locally
result.receipt.verify(pinnedKeys, request);
# 01 send
client = PaxeerClient(cfg)
tx = client.send(request)


# 02 follow to completion
result = tx.wait()


# 03 verify the receipt locally
result.receipt.verify(pinned_keys, request)
// 01 send
let client = Client::new(cfg)?;
let tx = client.send(&request).await?;


// 02 follow to completion
let result = tx.wait().await?;


// 03 verify the receipt locally
result.receipt.verify(&pinned_keys, &request)?;

Sample, shortened for illustration. Each tab shows the same three steps: send a transaction, follow it to completion, verify the receipt locally.

Same behavior

Generated from schemas, not hand-copied

A server change reaches every client, because a stale client fails the build instead of shipping behind.

One pipeline file

A single pipeline file lists the schema sources (the Agent API, the Human API and a mirror schema), the generators, and a digest for every generated output.

Two generator families

A Rust generator and Python generators produce the Go, JVM, Swift and .NET contracts. A separate agent generator produces the TypeScript, Python and Rust ones.

A check that fails

A check target compares the generated files with their sources. If a client is out of date, the build fails, so no language is left behind quietly.

Proof

A receipt you check on your own machine

Each SDK checks a signed receipt against receipt keys you pin and the original transaction, so you do not have to trust the service that returned it.

Committed means more than a receipt

Committed: block header, inclusion proofs and a validator commit with strictly more than two thirds of voting power, all verified by the SDK

SDKs report only the level the evidence supports.

One suite every SDK must pass

Successful receipted transactions
A receipted revert with an authenticated reason
Six distinct receipt refusals, including a wrong key and a height outside the key’s range
A committed settlement with inclusion proofs and consensus commits
Portable proof bundles, a sponsored-fee bind and a named-payee payment

Go and JVM runners run the vectors directly. A TypeScript adapter runs shared tests under Node's test runner.

One portable proof file

The layerx-receipt-proof-v2 format packages the raw transaction, signed receipt, header, inclusion proof, commit and validator set. A reviewer verifies it offline, with their own trusted keys.

Built in

Money, retries and secrets handled for you

The SDKs make common mistakes hard to write, and conformance tests in several languages check that they stay that way.

Linework illustration of a stream of binary digits narrowing to a single blue point.

Integers only for money

The JVM amount type is backed by a big integer and has no floating-point constructor, so a rounding error cannot slip into a payment.

Retries that stay safe

Retries reuse a caller-supplied idempotency key. An unknown outcome stays unknown until evidence resolves it, so a client never guesses that a payment failed.

Secrets that stay hidden

Secret byte wrappers print as redacted and refuse serialization, so a key cannot end up in a log line by accident.

Streams that resume

Resumable streams page through a source with a cursor, so a reconnecting client continues where it stopped instead of starting over.

The agent SDKs refuse unsupported contract major versions, and changes within a major version are additive. A compatibility page separates what the protocol enforces from what only a daemon enforces.

A developer in silhouette types on a laptop against a warm amber wall.

Evidence inside a bundle cannot vouch for itself.

Data and types

Read prices without building a REST layer

Chainflow is the data gateway. Its clients cover price feeds, market summaries, TradingView data and explorer observations.

Chainflow clients

Go, Python, Rust and TypeScript packages, with CoinGecko and CoinMarketCap compatible adapters. Python has synchronous and asynchronous clients. Rust and TypeScript include WebSocket transports. Authentication uses REST and WebSocket keys.

Cosmos types for TypeScript

The @pax-js/cosmos package provides generated message types, protobuf encoding and REST query clients for native chain modules. It is version 0.1.0, with ESM and CommonJS builds.

The Go Chainflow client has no generated WebSocket manager.

Install

Pick the language you already use

Platform SDKs call the Agent and Human APIs. Agent SDKs call the agent daemon. Same contract, same receipts.

  • Go

    Go module, platform SDK

  • Java and Kotlin

    Library for Java 21, built with Maven, platform SDK

  • Swift

    Swift package, platform SDK

  • .NET

    .NET library, platform SDK

  • TypeScript

    npm package

    npm install @sidiora/layerx-sdk
  • Python

    Python 3.11 or later

    pip install layerx-sdk
  • Rust

    Rust crate, agent SDK

  • Chainflow

    Plus Go, Python and Rust clients

    npm install @sidioralabs/chainflow-data-gateway

Install lines are shown as published package names. Where the source gives no install command, the tile shows the package type only.