A relayer is optional. You can always broadcast a fully signed transaction yourself and pay gas from the user’s own account. A relayer exists specifically to sponsor gas on the user’s behalf.
Meta-transactions in one minute
NEAR’s NEP-366 meta-transaction standard separates the party that authorizes an action from the party that pays for it:- A delegate action describes what the user wants to do — a receiver account and a list of actions — and is signed with the user’s key. It is not a transaction on its own.
- A relayer wraps that signed delegate action inside a
SignedDelegateaction and submits it as its own transaction. The relayer’s account pays the gas; the inner action still executes as if the user sent it.
Three pieces come together for a gasless call: the delegate action (what to do), the MPC signature (authorization, gated by JWT verification), and the NEP-366 wrapper the relayer submits (who pays).
How the SDK uses it
You don’t drive the relayer by hand. The React SDK’s signer exposessignAndSendDelegateAction(...), which runs the whole gasless flow for you: it asks the provider to authorize the delegate action, collects the resulting signature request (the guard id, JWT, and payload), and submits it through a relayer, returning the FinalExecutionOutcome.
Contrast this with signAndSendTransaction, which is not gasless: it fetches the MPC signature, then builds and broadcasts the final transaction from the user’s own account, paying gas normally. Use signAndSendDelegateAction whenever you want a relayer to cover gas.
In the Browser SDK the signer has no
signAndSendDelegateAction. There you drive the flow manually — requestDelegateActionSignature → getSignatureRequest → createSignAction — and submit through a relayer yourself.Running or integrating a relayer
Running a relayer means operating a funded NEAR account that pays for every meta-transaction it submits, so it is a spend surface: put it behind your own authentication and rate limits, keep its signing accounts funded, and restrict the guard and issuer it accepts to exactly the ones your app uses. NEAR maintains the reference relayer implementation and the meta-transaction standard. Start here:Meta-transactions (NEAR docs)
The NEP-366 meta-transaction standard and how delegate actions are relayed.
NEAR documentation
Reference relayer, RPC, and the rest of the NEAR protocol docs.
Next steps
Sign transactions
Request a signature and send a NEAR transaction — gasless or self-paid — from an SDK.
MPC signing
How the MPC network derives per-identity keys and produces signatures.
How it works
The full Auth0 → JWT → contract → MPC → relayer flow, end to end.