w3_v2
  1. brc20
w3_v2
  • fractal
    • brc20
      • 代币信息
        GET
      • 首次价格
        GET
      • 二次价格
        GET
      • 查询交易
        GET
      • 购买
        POST
      • btc转账
        POST
      • brc20转账
        POST
      • 获取地址
        POST
  • sui
    • 代币信息
      GET
    • SUI价格
      GET
    • 代币价格
      GET
    • cetus 聚合器 二次价格
      GET
    • cetus 聚合器 兑换
      POST
    • 查询
      POST
    • 获取代币余额(包括SUI)
      GET
  • near
    • 转账Token
      POST
    • 转账native
      POST
    • 查询 Copy
      POST
    • 代币信息
      GET
    • native价格
      GET
    • 代币价格
      GET
    • 二次价格
      GET
    • swap
      POST
    • 查询
      POST
    • 获取代币余额(包括SUI)
      GET
  • bera
    • 转账Token
    • 转账native
    • 查询 Copy
    • 代币信息
    • native价格
    • 代币价格
    • 二次价格
    • swap
    • 查询
    • 获取余额
  • kaia
    • 转账Token
    • 转账native
    • 代币信息
    • native价格
    • 代币价格
    • 二次价格
    • swap
    • 查询
    • 查询转账信息
    • 获取余额
  • hyperliquid
    • 获取token info
    • 获取代币价格
    • 获取二次价格
    • 交易
    • 查询
    • 取消订单
    • 获取代币余额
  • xrpl
    • 获取token info
    • 获取代币价格
    • 获取二次价格
    • 交易
    • 查询
    • 取消订单
    • 获取代币余额
  • aptos
    • 获取代币信息
    • 一次价格
    • 二次价格
    • 交易swap
    • 查询
  1. brc20

二次价格

开发中
GET
/fractal_brc20/getTokenBuyPlan

请求参数

Query 参数

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/fractal_brc20/getTokenBuyPlan?chainType&tokenAddress&walletAddress&price'

返回响应

🟢200成功
application/json
Body

示例
{
    "code": 0,
    "msg": "string",
    "data": {
        "useCoinInput": 0.031205000000000004,
        "usdtCoinInput": 2382.7825949999997,
        "output": 184500,
        "chainPriceVersion": "v1",
        "usdtRate": "0.000013096033211540224",
        "useCoinRate": "1",
        "path": [
            "btc",
            "bank"
        ],
        "walletBalance": 0.01462741,
        "availableBalance": 0.01462741,
        "payload": {},
        "subPlan": [
            {
                "id": "xv45i8k79eih4mw2ynioajhs7kn0uxaw",
                "usdtInput": 10.69026,
                "useCoinInput": 0.00014,
                "fee": 0.0000511,
                "output": 1000,
                "chainPriceVersion": "xv45i8k79eih4mw2ynioajhs7kn0uxaw",
                "dexTradePayload": {
                    "auctionId": "xv45i8k79eih4mw2ynioajhs7kn0uxaw",
                    "price": 14000,
                    "outputAmount": 1000,
                    "inputAmount": 14000,
                    "orderFee": 19110,
                    "orderServiceFee": 5110,
                    "output": 1000,
                    "auction": {
                        "auctionId": "xv45i8k79eih4mw2ynioajhs7kn0uxaw",
                        "amount": 1000,
                        "atomicalId": null,
                        "atomicalIndex": null,
                        "atomicalTxid": null,
                        "index": null,
                        "inscriptionId": "98fec2f51539e446b50a720881668b4a48674736251adb7e3b8de079ff66fa85i0",
                        "inscriptionNumber": 4832609,
                        "limit": 1000,
                        "marketType": "fixedPrice",
                        "nftType": "brc20",
                        "status": "onSaleConfirm",
                        "tick": "bank",
                        "txid": null,
                        "unitPrice": 14,
                        "price": 14000,
                        "address": "bc1qxkfuhzvma2dt03l9cpqcm396hhl7s7j9v2avzv"
                    }
                }
            },
            {
                "id": "41v9bvrqorb3owncidkv7vcbinw5j1v5",
                "usdtInput": 53.4513,
                "useCoinInput": 0.0007,
                "fee": 0.0000539,
                "output": 5000,
                "chainPriceVersion": "41v9bvrqorb3owncidkv7vcbinw5j1v5",
                "dexTradePayload": {
                    "auctionId": "41v9bvrqorb3owncidkv7vcbinw5j1v5",
                    "price": 70000,
                    "outputAmount": 5000,
                    "inputAmount": 70000,
                    "orderFee": 75390,
                    "orderServiceFee": 5390,
                    "output": 5000,
                    "auction": {
                        "auctionId": "41v9bvrqorb3owncidkv7vcbinw5j1v5",
                        "amount": 5000,
                        "atomicalId": null,
                        "atomicalIndex": null,
                        "atomicalTxid": null,
                        "index": null,
                        "inscriptionId": "096065b931def8beb99ac3726b6bd1801e9c47b383d5e724d0b11531a5a7ad7ai0",
                        "inscriptionNumber": 5172100,
                        "limit": 1000,
                        "marketType": "fixedPrice",
                        "nftType": "brc20",
                        "status": "onSaleConfirm",
                        "tick": "bank",
                        "txid": null,
                        "unitPrice": 14,
                        "price": 70000,
                        "address": "bc1qv3mwvr3vyr4sthckjce0yrdsxgvuxcxtg3lhp3"
                    }
                }
            },
            {
                "id": "lad9g7nme0r1ah063ptgv1br1ueivwdb",
                "usdtInput": 10.69026,
                "useCoinInput": 0.00014,
                "fee": 0.0000511,
                "output": 1000,
                "chainPriceVersion": "lad9g7nme0r1ah063ptgv1br1ueivwdb",
                "dexTradePayload": {
                    "auctionId": "lad9g7nme0r1ah063ptgv1br1ueivwdb",
                    "price": 14000,
                    "outputAmount": 1000,
                    "inputAmount": 14000,
                    "orderFee": 19110,
                    "orderServiceFee": 5110,
                    "output": 1000,
                    "auction": {
                        "auctionId": "lad9g7nme0r1ah063ptgv1br1ueivwdb",
                        "amount": 1000,
                        "atomicalId": null,
                        "atomicalIndex": null,
                        "atomicalTxid": null,
                        "index": null,
                        "inscriptionId": "21bcdc6fbe389185f2c401d22d2777b81eb83c29fcb08655277010cd0e8f5766i0",
                        "inscriptionNumber": 4832608,
                        "limit": 1000,
                        "marketType": "fixedPrice",
                        "nftType": "brc20",
                        "status": "onSaleConfirm",
                        "tick": "bank",
                        "txid": null,
                        "unitPrice": 14,
                        "price": 14000,
                        "address": "bc1qxkfuhzvma2dt03l9cpqcm396hhl7s7j9v2avzv"
                    }
                }
            },
            {
                "id": "cv2ijh0ymiysaw6oli9pv72ppnnd5xkm",
                "usdtInput": 57.26925,
                "useCoinInput": 0.00075,
                "fee": 0.00005415,
                "output": 5000,
                "chainPriceVersion": "cv2ijh0ymiysaw6oli9pv72ppnnd5xkm",
                "dexTradePayload": {
                    "auctionId": "cv2ijh0ymiysaw6oli9pv72ppnnd5xkm",
                    "price": 75000,
                    "outputAmount": 5000,
                    "inputAmount": 75000,
                    "orderFee": 80415,
                    "orderServiceFee": 5415,
                    "output": 5000,
                    "auction": {
                        "auctionId": "cv2ijh0ymiysaw6oli9pv72ppnnd5xkm",
                        "amount": 5000,
                        "atomicalId": null,
                        "atomicalIndex": null,
                        "atomicalTxid": null,
                        "index": null,
                        "inscriptionId": "8c52f3258a760c632252d4a408b99ed16b3e2c22f8e876093054c4b8a01132b1i0",
                        "inscriptionNumber": 51235835,
                        "limit": 1000,
                        "marketType": "fixedPrice",
                        "nftType": "brc20",
                        "status": "onSaleConfirm",
                        "tick": "bank",
                        "txid": null,
                        "unitPrice": 15,
                        "price": 75000,
                        "address": "bc1pth5ha9uu3zc4sem66ep45rgcfu7arme9v3ea3xasp77lg5hfu27sf4cxwq"
                    }
                }
            },
            {
                "id": "s4ygukow5vrj1sl9oslf1vmjisvvg33i",
                "usdtInput": 11.45385,
                "useCoinInput": 0.00015,
                "fee": 0.00005115,
                "output": 1000,
                "chainPriceVersion": "s4ygukow5vrj1sl9oslf1vmjisvvg33i",
                "dexTradePayload": {
                    "auctionId": "s4ygukow5vrj1sl9oslf1vmjisvvg33i",
                    "price": 15000,
                    "outputAmount": 1000,
                    "inputAmount": 15000,
                    "orderFee": 20115,
                    "orderServiceFee": 5115,
                    "output": 1000,
                    "auction": {
                        "auctionId": "s4ygukow5vrj1sl9oslf1vmjisvvg33i",
                        "amount": 1000,
                        "atomicalId": null,
                        "atomicalIndex": null,
                        "atomicalTxid": null,
                        "index": null,
                        "inscriptionId": "f3f2c9af8ae9651988b0a0b510b53c9334f114d90ee54a0e1c67073ba3dbd189i0",
                        "inscriptionNumber": 4832611,
                        "limit": 1000,
                        "marketType": "fixedPrice",
                        "nftType": "brc20",
                        "status": "onSaleConfirm",
                        "tick": "bank",
                        "txid": null,
                        "unitPrice": 15,
                        "price": 15000,
                        "address": "bc1qxkfuhzvma2dt03l9cpqcm396hhl7s7j9v2avzv"
                    }
                }
            },
            {
                "id": "in2mxxqa8369z083hwfwjcbrrpxyc9kb",
                "usdtInput": 389.4309,
                "useCoinInput": 0.0051,
                "fee": 0.0000759,
                "output": 30000,
                "chainPriceVersion": "in2mxxqa8369z083hwfwjcbrrpxyc9kb",
                "dexTradePayload": {
                    "auctionId": "in2mxxqa8369z083hwfwjcbrrpxyc9kb",
                    "price": 510000,
                    "outputAmount": 30000,
                    "inputAmount": 510000,
                    "orderFee": 517590,
                    "orderServiceFee": 7590,
                    "output": 30000,
                    "auction": {
                        "auctionId": "in2mxxqa8369z083hwfwjcbrrpxyc9kb",
                        "amount": 30000,
                        "atomicalId": null,
                        "atomicalIndex": null,
                        "atomicalTxid": null,
                        "index": null,
                        "inscriptionId": "df5b3678f0b711cde2da21133e4aab0d9f5e0cf15f2b3c925f42ec88c8025f5ei0",
                        "inscriptionNumber": 52065091,
                        "limit": 1000,
                        "marketType": "fixedPrice",
                        "nftType": "brc20",
                        "status": "onSaleConfirm",
                        "tick": "bank",
                        "txid": null,
                        "unitPrice": 17,
                        "price": 510000,
                        "address": "bc1p4et5w8kr4hvceylm868z8g2c5pgy065kcev80gt6f9k5dkplvdmspktu4q"
                    }
                }
            },
            {
                "id": "ipyy5135od8m7992vfi8q4wsfr3saj42",
                "usdtInput": 77.88618,
                "useCoinInput": 0.00102,
                "fee": 0.0000555,
                "output": 6000,
                "chainPriceVersion": "ipyy5135od8m7992vfi8q4wsfr3saj42",
                "dexTradePayload": {
                    "auctionId": "ipyy5135od8m7992vfi8q4wsfr3saj42",
                    "price": 102000,
                    "outputAmount": 6000,
                    "inputAmount": 102000,
                    "orderFee": 107550,
                    "orderServiceFee": 5550,
                    "output": 6000,
                    "auction": {
                        "auctionId": "ipyy5135od8m7992vfi8q4wsfr3saj42",
                        "amount": 6000,
                        "atomicalId": null,
                        "atomicalIndex": null,
                        "atomicalTxid": null,
                        "index": null,
                        "inscriptionId": "8c385d54e8031441809dbc1aaf4fb39e8929caa485ef25cf2957186fefb26874i0",
                        "inscriptionNumber": 4773326,
                        "limit": 1000,
                        "marketType": "fixedPrice",
                        "nftType": "brc20",
                        "status": "onSaleConfirm",
                        "tick": "bank",
                        "txid": null,
                        "unitPrice": 17,
                        "price": 102000,
                        "address": "bc1qvj0jq95cmu4du2vysf4re7lkfrx38tgk934tj4"
                    }
                }
            },
            {
                "id": "863l2m861po01067uhjp94n27w2cksq2",
                "usdtInput": 1687.5339,
                "useCoinInput": 0.0221,
                "fee": 0.0001609,
                "output": 130000,
                "chainPriceVersion": "863l2m861po01067uhjp94n27w2cksq2",
                "dexTradePayload": {
                    "auctionId": "863l2m861po01067uhjp94n27w2cksq2",
                    "price": 2210000,
                    "outputAmount": 130000,
                    "inputAmount": 2210000,
                    "orderFee": 2226090,
                    "orderServiceFee": 16090,
                    "output": 130000,
                    "auction": {
                        "auctionId": "863l2m861po01067uhjp94n27w2cksq2",
                        "amount": 130000,
                        "atomicalId": null,
                        "atomicalIndex": null,
                        "atomicalTxid": null,
                        "index": null,
                        "inscriptionId": "3a2992051d77c8a4058c3e748832782ecbb354ffad1282780317b5ccc469999ei0",
                        "inscriptionNumber": 74922352,
                        "limit": 1000,
                        "marketType": "fixedPrice",
                        "nftType": "brc20",
                        "status": "onSaleConfirm",
                        "tick": "bank",
                        "txid": null,
                        "unitPrice": 17,
                        "price": 2210000,
                        "address": "bc1pe55txhacrydwftueg5vpsv2ahctn9kvqwpncwhnvlpjxc4xejm8slea8s4"
                    }
                }
            },
            {
                "id": "engfala0yiqdmyt5t91cbydmr94v6no5",
                "usdtInput": 76.359,
                "useCoinInput": 0.001,
                "fee": 0.0000554,
                "output": 5000,
                "chainPriceVersion": "engfala0yiqdmyt5t91cbydmr94v6no5",
                "dexTradePayload": {
                    "auctionId": "engfala0yiqdmyt5t91cbydmr94v6no5",
                    "price": 100000,
                    "outputAmount": 5000,
                    "inputAmount": 100000,
                    "orderFee": 105540,
                    "orderServiceFee": 5540,
                    "output": 5000,
                    "auction": {
                        "auctionId": "engfala0yiqdmyt5t91cbydmr94v6no5",
                        "amount": 5000,
                        "atomicalId": null,
                        "atomicalIndex": null,
                        "atomicalTxid": null,
                        "index": null,
                        "inscriptionId": "8d7908efe87dbc5088414bfecd7f086b65da4e6b50f0dedc72985369b1ec4a1bi0",
                        "inscriptionNumber": 6103959,
                        "limit": 1000,
                        "marketType": "fixedPrice",
                        "nftType": "brc20",
                        "status": "onSaleConfirm",
                        "tick": "bank",
                        "txid": null,
                        "unitPrice": 20,
                        "price": 100000,
                        "address": "bc1qxf08ltqjkl8zyu2dm7d64eh3gs6huv55glpguw"
                    }
                }
            },
            {
                "id": "7wm0jgofu7guxavuv8zzrya2wj5jl44k",
                "usdtInput": 8.017695,
                "useCoinInput": 0.000105,
                "fee": 0.000050925,
                "output": 500,
                "chainPriceVersion": "7wm0jgofu7guxavuv8zzrya2wj5jl44k",
                "dexTradePayload": {
                    "auctionId": "7wm0jgofu7guxavuv8zzrya2wj5jl44k",
                    "price": 10500,
                    "outputAmount": 500,
                    "inputAmount": 10500,
                    "orderFee": 15592.5,
                    "orderServiceFee": 5092.5,
                    "output": 500,
                    "auction": {
                        "auctionId": "7wm0jgofu7guxavuv8zzrya2wj5jl44k",
                        "amount": 500,
                        "atomicalId": null,
                        "atomicalIndex": null,
                        "atomicalTxid": null,
                        "index": null,
                        "inscriptionId": "8ea4b729f33dd9307f2049d033c41bdb80084067a2dacda65d6b00ea55071c36i0",
                        "inscriptionNumber": 61373264,
                        "limit": 1000,
                        "marketType": "fixedPrice",
                        "nftType": "brc20",
                        "status": "onSaleConfirm",
                        "tick": "bank",
                        "txid": null,
                        "unitPrice": 21,
                        "price": 10500,
                        "address": "bc1qez94y8snxw68npuvmvllwqxm5uxzae4ztd73mr"
                    }
                }
            }
        ]
    }
}
修改于 2024-11-30 15:12:40
上一页
首次价格
下一页
查询交易
Built with