Skip to main content

Overview

RelayerClient handles communication with a relayer proxy for fee-sponsored transactions. It’s created automatically when you pass relayerUrl to SmartAccountKit, and accessed via kit.relayer.
Configure a relayerUrl and the SDK handles routing automatically:

Direct Usage

send()

Submit a transaction via func + auth (for invokeHostFunction flows). The relayer wraps it in a fee bump and sponsors fees.

sendXdr()

Submit a fully signed transaction XDR. Used for deployments and other non-invoke flows.

Response

Error Codes