Skip to main content
@anafi-cc/sdk is the TypeScript client of Anafi. It is open source under the MIT licence, and it runs in the browser and in Node.
The SDK builds every transaction and every message that the owner signs, and it checks every answer that comes back. Your app never sends a raw transaction that the SDK did not build.

The client

createAnafiClient(config) returns a client for one network.

Rule builders

Errors

Every failed HTTP call throws BackendRequestError with the route, the status and the body. A refused rule throws DslStageRefusedError with the reason.

Versioning

The API is 0.x. A minor release can change it. See the changelog on GitHub.