Relay Transactions | Pimlico Docs
Skip to content

Relay Transactions

Pimlico's transaction relaying service allows you to send transactions without managing private keys or dealing with gas management. With our relaying API, you can submit transactions that are guaranteed fast inclusion across over 100+ chains.

  • Fast and guaranteed inclusion across 100+ chains
  • You do not have to manage any private keys. Pimlico handles signing and submission
  • Simplified gas management. No need to worry about gas price fluctuations
  • High reliability with built-in retry mechanisms and monitoring

How it Works

The relaying service exposes a standard wallet interface that accepts transaction calls and handles the complexity of getting them on-chain.

Usage

Here's how to relay a transaction using Pimlico:

import { createWalletClient, http, zeroAddress } from "viem";
import { baseSepolia } from "viem/chains";
 
const walletClient = createWalletClient({
	transport: http("https://api.pimlico.io/v2/wallet/rpc?apikey=<API_KEY>"),
});
 
const result = await walletClient.sendCalls({
	chain: baseSepolia,
	calls: [
		{
			to: "0xYOUR_CONTRACT",
			abi: yourABI,
			functionName: "someFunction",
			args: [zeroAddress, 1n],
		},
	],
});
 
await walletClient.waitForCallsStatus({
	id: result.id,
});

Getting Started

To enable transaction relaying for your application, please contact us at support@pimlico.io.

Supported Chains

Transaction relaying is available on all chains supported by Pimlico. See our supported chains page for the full list.