After authenticating, create a public client to interact with the blockchain. The public client wraps RPC calls with backend-stamped signing so your server can prepare, sign, and broadcast transactions.

Create a Public Client

Transaction Flow

The SDK follows a prepare → sign → send → receipt pattern, similar to Viem.

Step 1: Prepare

Build the unsigned transaction with nonce, chain ID, and gas parameters populated automatically:
You can also pass data for contract calls:

Step 2: Sign and Send

Sign the prepared transaction with your server wallet key and broadcast it to the network:

Step 3: Wait for Receipt

Block until the transaction is confirmed on-chain:

Full Example

Sign a Message

Sign an arbitrary string message (EIP-191 personal sign):

Sign Typed Data (EIP-712)

Sign structured data following the EIP-712 standard:

Sign Raw Payload

Sign an arbitrary hex-encoded payload with a specific hash function:

Next Steps