Skip to main content
GET
Try Cobo WaaS Skill in your AI coding assistant (Claude Code, Cursor, etc.). Describe your needs in natural language to auto-generate production-ready SDK code and debug faster 🚀

Authorizations

BIZ-API-KEY
string
header
required

The API key. For more details, refer to API key.

In the API playground, enter your API secret, and your API key will be accordingly calculated.

Query Parameters

request_id
string

The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.

type
enum<string>

The type of the swap activity. Possible values include:

  • Bridge: The activity involves bridging tokens across chains.
  • Exchange: The activity involves token-to-token exchange (a swap within the same chain).
Available options:
Bridge,
Exchange
Example:

"Bridge"

status
enum<string>

The status of the swap activity. Possible values include:

  • Success: The activity completed successfully.
  • Processing: The activity is being processed.
  • Failed: The activity failed.
Available options:
Success,
Processing,
Failed
Example:

"Success"

min_updated_timestamp
integer<int64>

The start time of the query. All swap activities updated after the specified time will be retrieved. The time is in Unix timestamp format, measured in milliseconds.

max_updated_timestamp
integer<int64>

The end time of the query. All swap activities updated before the specified time will be retrieved. The time is in Unix timestamp format, measured in milliseconds.

initiator
string

The initiator of the swap activity. It is optional when creating the activity and defaults to your API key if not specified.

limit
integer<int32>
default:10

The maximum number of objects to return. For most operations, the value range is [1, 50].

before
string

A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response.

after
string

A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response.

sort_by
enum<string>

The field to sort the results by.

Possible values include:

  • created_timestamp: Sort by the time when the data was created.
  • updated_timestamp: Sort by the time when the data was last updated.
Available options:
created_timestamp,
updated_timestamp
direction
enum<string>
default:ASC

The sort direction. Possible values include:

  • ASC: Sort the results in ascending order.
  • DESC: Sort the results in descending order.
Available options:
ASC,
DESC

Response

A list of swap activities successfully retrieved.

data
object[]
pagination
object

The pagination information of the returned data.