PerformanceBlog
Tempo MCP serverGive agents search and read tools for Tempo docs
Skip to content
LogoLogo

Hosted Fee Payer

Tempo Labs provides hosted fee payer endpoints for applications that want to sponsor Tempo transaction fees without running fee payer infrastructure.

Hosted fee payer endpoints

The hosted endpoints are JSON-RPC relays that fill, sponsor, and broadcast Tempo Transactions. They are CORS-enabled and return standard JSON-RPC responses.

NetworkURLChain IDAccess
Mainnethttps://sponsor.tempo.xyz/tp_<api_key>4217Approved integrations with an API key
Testnethttps://sponsor.moderato.tempo.xyz42431Public development and testing

Hosted fee payer rate limits and policy

Hosted fee payer endpoints are rate-limited and may reject requests that fall outside the configured sponsorship policy.

Clients should avoid retry loops, back off after errors, and treat sponsorship as conditional. If sponsorship is rejected, the client should either let the user pay their own fee or retry through an application-owned fee payer.

Hosted fee payer pricing and access

The public testnet fee payer is free for development and testing.

Mainnet hosted fee payer access is intended for approved integrations and partner programs. Use https://sponsor.tempo.xyz/tp_<api_key> after your integration has been approved and you have been provided an API key. For production use outside the hosted policy, contact Tempo or run your own fee payer.

When provided an API key, you can directly pass it in the request path in order to sponsor requests.

const feePayerUrl = `https://sponsor.tempo.xyz/${feePayerToken}`

Do not send the fee payer token as a bearer token or another request header. The hosted fee payer authenticates the key from the path segment.

Use a fee payer in production

Run your own fee payer when you need:

  • Custom allowlists, rate limits, or per-user sponsorship rules
  • Dedicated funding, accounting, or reconciliation
  • Full control over availability, latency, and operational policy
  • Sponsorship for traffic that is not covered by Tempo's hosted policy

See Sponsor User Fees to deploy your own fee payer service.

Configure clients for hosted fee sponsorship

Tempo Wallet fee sponsorship

wagmi.config.ts
import {  } from 'viem/chains'
import { ,  } from 'wagmi'
import {  } from 'wagmi/connectors'
 
export const  = ({
  : [
    ({
      : 'https://sponsor.tempo.xyz/tp_<api_key>',
    }),
  ],
  : [],
  : {
    [.]: (),
  },
})

WebAuthn or custom fee payer transports

Use withRelay to route transaction fill and sponsorship requests through the hosted fee payer.

wagmi.config.ts
import {  } from 'viem/chains'
import {  } from 'viem/tempo'
import { ,  } from 'wagmi'
import {  } from 'wagmi/tempo'
 
export const  = ({
  : [({ : '/auth' })],
  : [],
  : {
    [.]: (
      (),
      ('https://sponsor.tempo.xyz/tp_<api_key>'),
    ),
  },
})

For testnet development, use https://sponsor.moderato.tempo.xyz without an API key.

Query the hosted fee payer

Query the fee payer chain ID

curl -X POST "https://sponsor.tempo.xyz/tp_<api_key>" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}'

Fill a sponsored Tempo transaction

eth_fillTransaction returns a filled Tempo transaction plus metadata describing whether the request is sponsored.

curl -X POST "https://sponsor.tempo.xyz/tp_<api_key>" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "eth_fillTransaction",
    "params": [{
      "from": "0x0000000000000000000000000000000000000001",
      "calls": [{
        "to": "0x20c0000000000000000000000000000000000000",
        "data": "0x70a08231000000000000000000000000000000000000000000000000000000000000dead"
      }]
    }]
  }'

A sponsored response includes capabilities.sponsored: true and sponsor metadata.

Hosted fee payer API reference

MethodDescription
eth_chainIdReturns the chain ID served by the endpoint
eth_fillTransactionFills transaction fields and returns sponsorship metadata
eth_signRawTransactionAdds the fee payer signature and returns the dual-signed raw transaction
eth_sendRawTransactionAdds the fee payer signature and broadcasts the transaction
eth_sendRawTransactionSyncAdds the fee payer signature, broadcasts the transaction, and waits for a receipt

How hosted fee sponsorship works

Tempo Transactions support native fee sponsorship through a separate fee payer signature. The user signs the transaction first, leaving fee token selection to the fee payer. The hosted fee payer validates the request, chooses the fee token, signs the fee payer payload, and either returns the completed transaction or broadcasts it depending on the JSON-RPC method.

No paymaster contract, bundler, or EntryPoint contract is required.

Next steps for fee sponsorship