Our API is defined using the OpenAPI 3.0 specification. You can easily explore and test the endpoints using tools like Swagger UI, or Postman. For convenience, you can interact with our API on our hosted SwaggerUI page: https://app.runesdex.com/v1/swagger
You can also quickly send sample API requests using the API Explorer below. If you'd prefer to use a tool like Postman, download our OpenAPI spec available at: https://app.runesdex.com/v1/swagger/swagger.yaml
This endpoint is used to check if the service is up and running.\
Ok Status
This endpoint is used to get the version of the service.\
App Info
"runes_dex"
"main"
"03798661f49a25592975d96bf9a80b9b0555ae5a"
"0.4.5"
Returns the last indexed block to assert the status of the service.\
Sync status is returned
Height of the last indexed block
10
"runes_index"
This endpoint is used to get a BTC balance by address.\
"tb1ps07g3t8hctex0ula3jaxxa85dqw28ewl0krmnt8mlpxukmzp9zeqmzjfdw"
Success
"tb1ps07g3t8hctex0ula3jaxxa85dqw28ewl0krmnt8mlpxukmzp9zeqmzjfdw"
This endpoint is used to add a new user to the database.\
"bc1p0x6psjqeawtw8zvekup2gcg8uuwejhgjfad3sp9xklmpeaq80m4qd0ly9f"
Success
This endpoint allows to submit a transaction to the Bitcoin network.\
Success
"af7ef135a4469ec63af59e7244693418fdb96e852baf84c0adb70b28d9ec99e1"
"pending"
This endpoint is used to get a user from the database.\
"tb1ps07g3t8hctex0ula3jaxxa85dqw28ewl0krmnt8mlpxukmzp9zeqmzjfdw"
List of addresses
"bc1p0x6psjqeawtw8zvekup2gcg8uuwejhgjfad3sp9xklmpeaq80m4qd0ly9f"
This endpoint is used to list balances of Runes by address.\
Success
0
50
0
123
"BTC"
"Bitcoin"
"B"
8
"21000000000"
"21000000000"
"bc1p0x6psjqeawtw8zvekup2gcg8uuwejhgjfad3sp9xklmpeaq80m4qd0ly9f"
"1000000000"
This endpoint is used to get a Rune balance by address.\
BTC or rune name
Success
"BTC"
"Bitcoin"
"B"
8
"21000000000"
"21000000000"
"bc1p0x6psjqeawtw8zvekup2gcg8uuwejhgjfad3sp9xklmpeaq80m4qd0ly9f"
"1000000000"
This endpoint is used to get a user's liquidity positions.\
"tb1ps07g3t8hctex0ula3jaxxa85dqw28ewl0krmnt8mlpxukmzp9zeqmzjfdw"
Success
2
"BTC"
"Bitcoin"
"B"
8
"21000000000"
"21000000000"
"0.153"
"1223123.23"
"333.33"
"1223123.23"
"1223123.23"
This endpoint is used to get the position of an address in a trading pair.\
"BTC"
"MYLOVELYRUNE"
"tb1ps07g3t8hctex0ula3jaxxa85dqw28ewl0krmnt8mlpxukmzp9zeqmzjfdw"
Success
2
"BTC"
"Bitcoin"
"B"
8
"21000000000"
"21000000000"
"0.153"
"1223123.23"
"333.33"
"1223123.23"
"1223123.23"
This endpoint is used to create a new trading pair.
Idempotent. If pair exists, returns existing pool address.
"BTC"
"MYLOVELYRUNE"
"BTC"
"MYLOVELYRUNE"
Success
2
"tb1pptp2yfl3xjvltfxwwvqnsspe60uyc0a24d90ymas4qxl8xs8rxss94quj9"
This endpoint is used to get the price history of a trading pair.\
"BTC"
"MYLOVELYRUNE"
Gapfilled candlestick data
Serialized as an array of fields (9 elements).
Fields: [start_time, trading_pair_id, open, close, high, low, base_volume, quote_volume, count]
All points are gapfilled - meaning that even if database contains 0 trades in range [start_time
...end_time
], but there were trades before start_time, then returned array will contain (end_time
- start_time
) points (with interval
between them).
This endpoint is used to calculate the base and quote amounts.\
"BTC"
"MYLOVELYRUNE"
"BTC"
"MYLOVELYRUNE"
Success
"1000"
"10000"
This endpoint is used to list UTXOs by asset and address.\
Number of runes to return.
Filter by rune name as %NAME%. "SUPER" will match "MYSUPERRUNE", for example.
"SUPER"
Order of the results.
"ASC"
Page number for pagination.
Success
0
50
0
123
123
3009048
1
"af7ef135a4469ec63af59e7244693418fdb96e852baf84c0adb70b28d9ec99e1"
0
"MAXDECIMALSRUNESOBIG"
"bc1p0x6psjqeawtw8zvekup2gcg8uuwejhgjfad3sp9xklmpeaq80m4qd0ly9f"
"76a914c0e3d9d0c2f0a5e2a0d6a9e1f3c5f6e8c8d7d88ac"
"1000000000"
600
false
This endpoint is used to get a Rune by name.\
Success
block number : transaction number in that block
"3009048:5"
"MAXDECIMALSRUNESOBIG"
"MAXDECIMALSRUNESOBIG"
A single UTF8 character, including emoji
"ยค"
3009048
A tx position in a block
5
0
Total amount of runes minted
"1000000000"
"1000000000"
Total amount of runes in circulation (max_supply - burned)
"1000000000"
Number of subunits in a super unit of runes
8
true
1727898475
"81972d23a9abaa1c6f0d96b7bccd9af905ff8a4f44ac50f2a62366f92e5a8efb"
"3caae66d4c38c46f56f12571fc518bbb36ce3ec03a4e3b6c3ed44dbee9fa9630"
a raw transaction hex
"7b22656469637473223a5b5d2c2265746368696e67223a7b2264697669736962696c697479223a33382c227072656d696e65223a313030303030303030302c2272756e65223a224d4158444543494d414c5352554e45534f424947222c2273706163657273223a302c2273796d626f6c223a6e756c6c2c227465726d73223a6e756c6c2c22747572626f223a747275657d2c226d696e74223a6e756c6c2c22706f696e746572223a317d"
false
This endpoint is used to search for Runes.\
"BIG"
Success
block number : transaction number in that block
"3009048:5"
"MAXDECIMALSRUNESOBIG"
"MAXDECIMALSRUNESOBIG"
A single UTF8 character, including emoji
"ยค"
3009048
A tx position in a block
5
0
Total amount of runes minted
"1000000000"
"1000000000"
Total amount of runes in circulation (max_supply - burned)
"1000000000"
Number of subunits in a super unit of runes
8
true
1727898475
"81972d23a9abaa1c6f0d96b7bccd9af905ff8a4f44ac50f2a62366f92e5a8efb"
"3caae66d4c38c46f56f12571fc518bbb36ce3ec03a4e3b6c3ed44dbee9fa9630"
a raw transaction hex
"7b22656469637473223a5b5d2c2265746368696e67223a7b2264697669736962696c697479223a33382c227072656d696e65223a313030303030303030302c2272756e65223a224d4158444543494d414c5352554e45534f424947222c2273706163657273223a302c2273796d626f6c223a6e756c6c2c227465726d73223a6e756c6c2c22747572626f223a747275657d2c226d696e74223a6e756c6c2c22706f696e746572223a317d"
false
This endpoint is used to get the swap history of a trading pair.\
"BTC"
"MYLOVELYRUNE"
Order of the results.
"ASC"
Number of runes to return.
Page number for pagination.
Success
0
50
0
123
"buy"
"1000"
"10000"
"0.001"
BTCUSD price at the moment of a swap.
"1000"
This endpoint is used to remove liquidity from a trading pair.\
"BTC"
"MYLOVELYRUNE"
Success
"123"
2
"BTC/MYLOVELYRUNE"
"bc1p0x6psjqeawtw8zvekup2gcg8uuwejhgjfad3sp9xklmpeaq80m4qd0ly9f"
"37LHryP6Pj6Z98bQZj76YBcQ1JNKZsSXoC"
"41533"
"10000"
1000
partially signed bitcoin transaction
This endpoint is used to add liquidity to a trading pair.\
"BTC"
"MYLOVELYRUNE"
"bc1pkr9xwf5n6ugue9ra4p3quy940gl3qaaju57pvvhy5xh8xehmzh3syzdqs3"
"8f0f508a694fe6991fd6fd8be19bfec9dad34afbc5e16c2c6af1b57ee4a75f28"
"41533"
"37LHryP6Pj6Z98bQZj76YBcQ1JNKZsSXoC"
"02c64921f5c9b2c209ada61c78719eec30bebcdfc1d63ee051a68aa241ffb3190a"
"10000"
Success
"123"
2
"BTC/MYLOVELYRUNE"
"bc1p0x6psjqeawtw8zvekup2gcg8uuwejhgjfad3sp9xklmpeaq80m4qd0ly9f"
"37LHryP6Pj6Z98bQZj76YBcQ1JNKZsSXoC"
"41533"
"10000"
1000
partially signed bitcoin transaction
This endpoint is used to swap assets in a trading pair.\
"BTC"
"MYLOVELYRUNE"
Success
"123"
2
"BTC/MYLOVELYRUNE"
"bc1p0x6psjqeawtw8zvekup2gcg8uuwejhgjfad3sp9xklmpeaq80m4qd0ly9f"
"37LHryP6Pj6Z98bQZj76YBcQ1JNKZsSXoC"
"41533"
"10000"
1000
partially signed bitcoin transaction
This endpoint is used to get a list of trading pairs.\
Number of runes to return.
Filter by rune name as %NAME%. "SUPER" will match "MYSUPERRUNE", for example.
"SUPER"
Order of the results.
"ASC"
Page number for pagination.
Success
0
50
0
123
"BTC"
"Bitcoin"
"B"
8
"21000000000"
"21000000000"
"BTC"
"Bitcoin"
"B"
8
"21000000000"
"21000000000"
"1279361"
"35200000"
base_amount / quote_amount
"3634548.2954545454545454545"
2
"tb1pptp2yfl3xjvltfxwwvqnsspe60uyc0a24d90ymas4qxl8xs8rxss94quj9"
"2.751373537258053043668E-7"
"7.51373537258053043668"
"0.0170889585035029197178120051"
"62110.64"
in USD
"17088958.50"
in USD
"17088958.50"
in USD
"43725.89"
number of finalized swaps in this pool (buy+sell)
3
in base units
"1279361"
in quote units
"35200000"
This endpoint is used to list known runes.
Filter by rune name as %NAME%. "SUPER" will match "MYSUPERRUNE", for example.
"SUPER"
Specify true for pairs with liquidity, false for pairs without, or omit for all pairs.
Will return only featured runes.
Number of runes to return.
Page number for pagination.
Order of the results.
"ASC"
List of matched runes
0
50
0
123
block number : transaction number in that block
"3009048:5"
"MAXDECIMALSRUNESOBIG"
"MAXDECIMALSRUNESOBIG"
A single UTF8 character, including emoji
"ยค"
3009048
A tx position in a block
5
0
Total amount of runes minted
"1000000000"
"1000000000"
Total amount of runes in circulation (max_supply - burned)
"1000000000"
Number of subunits in a super unit of runes
8
true
1727898475
"81972d23a9abaa1c6f0d96b7bccd9af905ff8a4f44ac50f2a62366f92e5a8efb"
"3caae66d4c38c46f56f12571fc518bbb36ce3ec03a4e3b6c3ed44dbee9fa9630"
a raw transaction hex
"7b22656469637473223a5b5d2c2265746368696e67223a7b2264697669736962696c697479223a33382c227072656d696e65223a313030303030303030302c2272756e65223a224d4158444543494d414c5352554e45534f424947222c2273706163657273223a302c2273796d626f6c223a6e756c6c2c227465726d73223a6e756c6c2c22747572626f223a747275657d2c226d696e74223a6e756c6c2c22706f696e746572223a317d"
false
This endpoint is used to get a trading pair.
"BTC"
"MYLOVELYRUNE"
Success
"BTC"
"Bitcoin"
"B"
8
"21000000000"
"21000000000"
"BTC"
"Bitcoin"
"B"
8
"21000000000"
"21000000000"
"1279361"
"35200000"
base_amount / quote_amount
"3634548.2954545454545454545"
2
"tb1pptp2yfl3xjvltfxwwvqnsspe60uyc0a24d90ymas4qxl8xs8rxss94quj9"
"2.751373537258053043668E-7"
"7.51373537258053043668"
"0.0170889585035029197178120051"
"62110.64"
in USD
"17088958.50"
in USD
"17088958.50"
in USD
"43725.89"
number of finalized swaps in this pool (buy+sell)
3
in base units
"1279361"
in quote units
"35200000"