Skip to main content
POST
/
agents
/
{id}
/
sign-transaction
cURL
# Agent endpoints require HMAC-SHA256 signing. See
# /get-started/authentication for the full payload + headers spec, or use
# the @relayerfi/agent-sdk which signs automatically.

curl -X POST https://api.relayer.fi/v1/agents/$AGENT_ID/sign-transaction \
  -H "x-agent-id: $AGENT_ID" \
  -H "x-agent-auth: $HMAC_SIGNATURE_HEX" \
  -H "x-request-timestamp: $UNIX_TS" \
  -H "Content-Type: application/json" \
  -d '{
    "unsignedTx": "<base64-solana-tx>"
  }'

Documentation Index

Fetch the complete documentation index at: https://docs.relayer.fi/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

id
string
required

Agent ID

Body

application/json
action_type
string
required

Action type (e.g., "payment", "transfer")

amount
string
required

Amount in smallest unit (e.g., USDC micro-units as string)

destination
string
required

Destination wallet address

token_mint
string
required

SPL token mint address

cluster
string
default:devnet
required

Solana cluster (devnet or mainnet-beta)

Response

Transaction signed and broadcast (below threshold)