AddGasSponsor
Endpoints
AddGasSponsor
POST
AddGasSponsor
Overview
AddGasSponsor registers a new gas sponsor for your project on the Relayer’s chain. Once a sponsor is active, the Transactions API relays matching transactions from your users without charging them gas — the cost is drawn from your project’s gas tank balance.
You can sponsor:
- A wallet address — any transaction sent from that wallet on this chain is sponsored.
- A contract address — any user’s interaction with that contract on this chain is sponsored.
- An arbitrary address — native-token transfers to that address are sponsored.
Authentication
AddGasSponsor is a privileged write endpoint. Every request must include both headers:
Sending only the access key returns
403 PermissionDenied. Sending only the secret key returns 401 AccessKeyNotFound. Both keys must be present.
If either section on the API Keys page is empty (You have no API Keys), create the missing key with + Add Public API Access Key or + Add Admin API Secret Key before calling this endpoint.
Endpoint URL
AddGasSponsor is exposed on each network’s Relayer host. Use the host matching the chain you want to sponsor on — for example:
- Base mainnet:
https://base-relayer.sequence.app/rpc/Relayer/AddGasSponsor - Polygon mainnet:
https://polygon-relayer.sequence.app/rpc/Relayer/AddGasSponsor - Arbitrum mainnet:
https://arbitrum-relayer.sequence.app/rpc/Relayer/AddGasSponsor
Example request
cURL
Common errors
Authorizations
Public project access key for authenticating requests obtained on Sequence Builder. Example Test Key: AQAAAAAAAEGvyZiWA9FMslYeG_yayXaHnSI
Secret JWT token for authenticating requests obtained from Sequence Builder - should not be exposed publicly.