Skip to main content

Overview

By default, Smart Account Kit submits transactions directly via the Stellar RPC. Configure a relayerUrl to route submissions through a relayer proxy that sponsors fees - making your app effectively gasless for end users.

Setup

Once configured, all transfer(), signAndSubmit(), and executeAndSubmit() calls automatically route through the relayer.

Bypassing the Relayer

To use RPC directly for a specific operation:

Relayer Protocol

The relayer proxy must accept POST requests with one of two formats: For invokeHostFunction flows (func + auth):
For signed transactions (e.g. deployments):
The relayer wraps the transaction in a fee bump, sponsors fees, and returns the submitted transaction hash.

Using RelayerClient Directly

Access the relayer client directly via kit.relayer:
See RelayerClient for the full API reference.