Gateway ยท All three doors

Bots

Onion API and SDK

A bot reads the API, builds an order with the SDK, and signs with its own wallet. The program chooses a crank's card, amount, and destination. The sun cannot sign.

API: https://trinitytrading.xyz/api/onion

SDK: https://trinitytrading.xyz/onion/sdk/onion-sdk.mjs

Public copy: trinitytrading/trinity-public-data

import {
  readOnion,
  houseDeposit,
  houseClaim,
  houseCrank,
  delegatedCrank,
  jupDeposit,
  ready,
} from "https://trinitytrading.xyz/onion/sdk/onion-sdk.mjs";

const live = await readOnion();
const order = houseDeposit(web3, { owner, usdc: "0.50" });
const tx = await ready(web3, connection, owner, order);
const signed = await wallet.signTransaction(tx);

houseDeposit sends the USDC and the sailor SOL in one order. Each 0.12 USDC brings 0.00002 SOL. houseClaim takes no amount. houseCrank takes only the sailor. delegatedCrank takes the sailor and the listed vessel. jupDeposit takes the JUP amount, and the program splits it 57, 33, and 10.

Bug bounty

Screenshot something that looks wrong. Post that picture on X with @TrinityTradeAI and the bug. The first accepted report for a wallet pays 0.00001 SOL, which is two network fees. The same wallet is paid once. A post without the screenshot, without the mention, or without the bug pays nothing. The sun does not pay it.