Skip to content

A wallet's bridge orders opened through Taoswap, newest first

GET
/swaps/bridge/

The 10 newest TAO.com bridge orders a coldkey or an EVM address opened through Taoswap, or either of them when both are given; 400 when neither is. An order the chains disproved, such as a revert or another signer, is left out.

Rate limit: 600 requests per minute per IP (scope anon).

  • None
coldkey
string

Coldkey SS58 address, matched even when the chain index has not seen it yet. 400 when malformed.

evm_address
string

Ethereum address, 0x and 40 hex characters, matched in any case. 400 when malformed.

The newest orders, at most 10.

Media typeapplication/json

/swaps/bridge/: the TAO.com bridge orders a coldkey or an EVM address opened through Taoswap.

object
results
required

The 10 newest, newest first. A claim the chains disproved is left out.

Array<object>

One TAO.com bridge order. A leg the record does not name is null.

object
direction
required

to-bittensor brings TAO in from Ethereum, to-ethereum takes it out.

  • to-bittensor - to-bittensor
  • to-ethereum - to-ethereum
string
Allowed values: to-bittensor to-ethereum
open_tx
required

The transaction that opened the order: the Ethereum hash in, the coldkey’s extrinsic hash out.

string
order_id
required

TAO.com’s order id.

string
nullable
coldkey
required

The coldkey the TAO goes to or comes from.

string
nullable
evm_address
required

The Ethereum account that pays in or is paid out, lower case.

string
nullable
input
required

usdc or eth in; tao or usdce out.

string
nullable
input_amount
required

Decimal string in the input token’s units.

string
nullable
output
required

tao in; usdc, eth or the token’s address out.

string
nullable
output_amount
required

Decimal string in the output token’s units. In, the TAO delivered.

string
nullable
target_netuid
required

The subnet the delivered TAO goes on into, when the order named one.

integer
nullable
created_at
required

When the order opened, UTC.

string format: date-time
state
required

open in flight, filled once the destination records the fill, refunded once the origin returns the funds, unsettled when neither happened within 24 hours.

  • open - open
  • filled - filled
  • refunded - refunded
  • unsettled - unsettled
string
Allowed values: open filled refunded unsettled

Example

{
"results": [
{
"direction": "to-bittensor",
"state": "open"
}
]
}

A parameter failed its check, which message names. code is usually VALIDATION_ERROR.

Media typeapplication/json

The error envelope every 4xx and 5xx response carries. The introduction lists the code values.

object
error
required

Always true. Lets a client branch without reading the status code.

boolean
code
required

Machine-readable error code, such as VALIDATION_ERROR or RESOURCE_NOT_FOUND. Branch on it, not on message.

string
message
required

One human-readable sentence.

string
detail
required

Extra context for some codes, such as the invalid fields of a VALIDATION_ERROR or retry_after on RATE_LIMITED; else null.

nullable

Examples

ExampleVALIDATIONERROR

VALIDATION_ERROR

{
"error": true,
"code": "VALIDATION_ERROR",
"message": "coldkey or evm_address is required",
"detail": null
}

Rate limit exceeded (600/minute, per IP). Retry-After carries the seconds to wait.

Media typeapplication/json

The error envelope every 4xx and 5xx response carries. The introduction lists the code values.

object
error
required

Always true. Lets a client branch without reading the status code.

boolean
code
required

Machine-readable error code, such as VALIDATION_ERROR or RESOURCE_NOT_FOUND. Branch on it, not on message.

string
message
required

One human-readable sentence.

string
detail
required

Extra context for some codes, such as the invalid fields of a VALIDATION_ERROR or retry_after on RATE_LIMITED; else null.

nullable

Examples

ExampleRATELIMITED

RATE_LIMITED

{
"error": true,
"code": "RATE_LIMITED",
"message": "Request was throttled",
"detail": {
"retry_after": 12
}
}
Retry-After
integer

Seconds before the next request is accepted.