LogoLogo
  • Xverse API
  • ▶️Get Started
  • 📚API reference
    • Bitcoin
      • 📦Outputs
      • 📫Address
        • UTXO
        • Balance
        • Transactions
          • Unconfirmed
      • 📝Transactions
        • History
    • 🖼️Ordinals
      • Address
        • 📦UTXO
        • 🖼️Inscriptions
        • 🔳Runes
        • 🪙BRC-20
      • ✍️Inscription Service
        • Estimate
        • Order
          • Execute
    • 🔲Runes
      • Rune balances
      • ⛏️Mint Rune
        • Estimate
        • Order
          • Execute
      • 🚀Etch Rune
        • Estimate
        • Order
          • Execute
      • 🔲Rune Data
    • 🪙BRC-20
      • 🪙BRC-20 balances
      • ⛏️Mint BRC-20
        • Estimate
        • Order
          • Execute
      • 🚀Deploy BRC-20
        • Estimate
        • Order
          • Execute
    • 🔄Swaps
      • 🪙Get destination tokens
      • 🧾Get quotes
      • 🔲Runes Swaps
        • Place order
        • Execute order
      • 📦UTXO
        • Get utxos
        • Place order
        • Execute order
      • 🔴Stacks Swaps
        • Place order
        • Execute order
      • 🔀Crosschain Swaps
        • Place order
  • Specification
Powered by GitBook
On this page
Export as PDF
  1. API reference
  2. Swaps
  3. UTXO

Get utxos

PreviousUTXONextPlace order
📚
🔄
📦
post
Authorizations
Body
objectOptional
Responses
200
Default Response
application/json
Responseobject
post
POST /v1/swaps/utxo/get-utxos HTTP/1.1
Host: api.secretkeylabs.io
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 137

{
  "providerCode": "magiceden_utxo",
  "from": {
    "ticker": "BTC",
    "protocol": "btc"
  },
  "to": {
    "ticker": "840000:3",
    "protocol": "runes"
  },
  "amount": "20000"
}
200

Default Response

{
  "items": [
    {
      "identifier": "...",
      "token": {
        "ticker": "840000:3",
        "protocol": "runes"
      },
      "amount": "80000",
      "price": "198344"
    },
    {
      "identifier": "...",
      "token": {
        "ticker": "840000:3",
        "protocol": "runes"
      },
      "amount": "100000",
      "price": "247930"
    }
  ]
}