pinion-trade

Fetch unsigned swap and approval transactions from the 1inch aggregator on Base.

71|22|Updated Apr 6, 2020
One-click install
npx skills add https://github.com/nirholas/agenti --skill pinion-trade
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pinion-trade
Source: https://github.com/nirholas/agenti/tree/main/packages/protocols/x402-pinion-os/skills/trade
Command: npx skills add https://github.com/nirholas/agenti --skill pinion-trade

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Gets an unsigned swap transaction payload for on-chain execution on Base via the 1inch aggregator, including an optional approval transaction if needed.

Core Features & Use Cases

  • Unsigned swap payload: Retrieve a ready-to-sign swap transaction for Base using 1inch aggregates.
  • Optional approval: If the source token needs approval, the response includes an approve payload to be signed first.
  • Use case: Prepare trades for automated wallets or MCP agents that need to sign and broadcast transactions later.

Quick Start

Provide src, dst, amount, and from to receive an unsigned swap transaction (and an optional approve) for Base via the 1inch aggregator.

Frequently Asked Questions about pinion-trade

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get an unsigned swap transaction on Base via 1inch?

To get an unsigned swap transaction on Base, provide the srcToken, dstToken, amount, and from address. The 1inch aggregator returns a ready-to-sign payload, along with an optional approval transaction if the source token requires it.

What tokens are supported for 1inch swap payloads on Base?

Supported tokens for 1inch swap payloads on Base include ETH, USDC, WETH, DAI, and CBETH. You can specify any of these as the source or destination token when requesting an unsigned transaction.

Do I need an approval transaction before signing a 1inch swap on Base?

An approval transaction is needed before signing a 1inch swap on Base if the source token requires spender permission. The response includes an optional approve payload to be signed first.

Can I use unsigned swap payloads for automated wallets on Base?

You can use unsigned swap payloads for automated wallets on Base. The response provides a signable payload to broadcast later, making it suitable for MCP agents or automated workflows.

What details are included in the unsigned swap transaction response?

The unsigned swap transaction response includes the unsigned swap payload, an optional approve payload, srcToken, dstToken, amount, network, and router details for execution on Base.

Why does my token swap on Base require two transactions?

Token swaps on Base require two transactions when the source token lacks approval for the 1inch router. The first transaction is the approval payload, and the second is the unsigned swap payload.