seqdex-taker

command
v0.0.0-...-ea68448 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Command seqdex-taker exercises the Sequentia-adapted pkg/trade taker SDK against a running tdexd trade interface, performing a same-chain atomic swap.

It creates a fresh taker wallet (its Sequentia confidential address is printed so the node can fund it), then on the second invocation runs Preview + Buy/SellAndComplete and prints the resulting swap txid.

Secrets (the taker's private + blinding keys) are persisted to / loaded from KEY_FILE so the two phases share the same wallet without putting key material on the command line.

Env:

PHASE       = "addr"  -> create wallet, write keys to KEY_FILE, print address
            = "swap"  -> load wallet from KEY_FILE, Preview + (Buy|Sell)AndComplete
KEY_FILE    path to the taker key file
TRADE_ADDR  daemon trade endpoint host:port (default localhost:9945)
NODE_RPC    elements node RPC url http://user:pass@host:port
NATIVE      native/policy asset hex (pegged_asset)
BASE,QUOTE  market assets (hex)
TYPE        "buy" or "sell"
AMOUNT      amount (in sats) of QUOTE asset to buy/sell (TDEX amount is in quote)
IN_ASSET    asset the taker spends/funds (hex) — used only for logging

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL