#golem #sdk #base #linux

golem-base-sdk

A Rust SDK for interacting with GolemBase storage contracts

1 unstable release

new 0.1.0 Apr 29, 2025

#853 in Magic Beans

Download history 81/week @ 2025-04-26

81 downloads per month

MIT license

33KB
367 lines

GolemBase SDK

This is part of the Golem Base project, which is designed as a Layer2 Network deployed on Ethereum, acting as a gateway to various Layer 3 Database Chains (DB-Chains).

For an overview of Golem Base, check out our Litepaper.

This SDK allows you to use GolemBase from Rust. It is available on crates.io.

We also publish generated documentation.

The repository contains an example application to showcase how you can use this SDK.

Tip: For getting up and running quickly, we recommend the following two steps:

  1. Start golembase-op-geth through its docker-compose.

  2. Install the demo CLI and create a user.

(Note: As an alternative to installing the demo CLI, you can build the actual CLI as it's included in the golembase-op-geth repo.)

When you create a user, it will generate a private key file called private.key and store it in:

  • ~/.config/golembase/ on Linux
  • ~/Library/Application Support/golembase/ on macOS
  • %LOCALAPPDATA%\golembase\ on Windows

(This is a standard folder as per the XDG specification.)

You will also need to fund the account. You can do so by typing:

golembase-demo-cli account fund 10

Dependencies

~22MB
~469K SLoC