githubEdit

bookIntents Explorer API

What is Intents Explorer API?

The Intents Explorer API provides programmatic access to historical 1Click Swap transactions and their statuses, mirroring the data available on the NEAR Intents Explorerarrow-up-right. This API is read-only and features a single HTTP GET endpoint designed specifically for distribution channels and analytical services to fetch and filter 1Click Swap history.

Key Features

  • The API is tailored exclusively for 1Click Swap transactions and is not intended for general NEAR Intents activity.

  • Retrieve and filter swaps by token symbols, transaction hashes, timestamps, and status, enabling precise integration with your analytics or dashboarding tools.

  • Mirrors the same real-time and historical swap data shown in the NEAR Intents Explorerarrow-up-right interface.

Documentation & Access

API Specification (v0)

Auto-generate clients using our OpenAPI specarrow-up-right.

circle-info

Authentication: It is mandatory to obtain a JWT tokenarrow-up-right and use it for all requests.

API Endpoints

Get transactions

get
Authorizations
AuthorizationstringRequired

JWT token for API authentication.

Query parameters
numberOfTransactionsnumber · min: 1 · max: 1000Optional

The number of transactions to return. Default: 50. Max: 1000. Min: 1.

lastDepositAddressAndMemostringOptional

Last known depositAddressAndMemo value for pagination. Use the depositAddressAndMemo from the last transaction of the previous page.

lastDepositAddressstringOptional

DEPRECATED: Use lastDepositAddressAndMemo instead. Last known deposit address for pagination.

directionstring · enumOptional

Direction of pagination. next - get older transactions, prev - get newer transactions. Default: next.

Possible values:
searchstringOptional

Search by deposit address, recipient, sender, or tx hash.

fromChainIdstring · enumOptional

Filter by origin chain ID.

Possible values:
fromTokenIdstringOptional

Filter by origin token ID. Overrides fromChainId.

toChainIdstring · enumOptional

Filter by destination chain ID.

Possible values:
toTokenIdstringOptional

Filter by destination token ID. Overrides toChainId. Overrides fromTokenId.

referralstringOptional

Filter by referral.

affiliatestringOptional

Filter by an affiliate stored in the fees.

statusesstringOptional

Filter by comma-separated statuses. Allowed values: FAILED, INCOMPLETE_DEPOSIT, PENDING_DEPOSIT, PROCESSING, REFUNDED, SUCCESS. Default: FAILED, PROCESSING, REFUNDED, SUCCESS.

showTestTxsstringOptional

Show transactions from test accounts and with test-related referrals.

minUsdPricenumber | nullableOptional

Filter by minimum USD price for both input and output amounts.

maxUsdPricenumber | nullableOptional

Filter by maximum USD price for both input and output amounts.

endTimestampstring · date | nullableOptional

Filter by end timestamp (non-inclusive). Use ISO 8601 format.

endTimestampUnixnumber | nullableOptional

Filter by end timestamp (non-inclusive). Use Unix timestamp.

startTimestampstring · date | nullableOptional

Filter by start timestamp (non-inclusive). Use ISO 8601 format.

startTimestampUnixnumber | nullableOptional

Filter by start timestamp (non-inclusive). Use Unix timestamp.

Responses
chevron-right
200

Transactions

application/json
get
/api/v0/transactions

Get paginated transactions

get
Authorizations
AuthorizationstringRequired

JWT token for API authentication.

Query parameters
pagenumber · min: 1Optional

Page number. Default: 1. Min: 1.

perPagenumber · min: 1 · max: 1000Optional

Number of transactions per page. Default: 50. Max: 1000. Min: 1.

searchstringOptional

Search by deposit address, recipient, sender, or tx hash.

fromChainIdstring · enumOptional

Filter by origin chain ID.

Possible values:
fromTokenIdstringOptional

Filter by origin token ID. Overrides fromChainId.

toChainIdstring · enumOptional

Filter by destination chain ID.

Possible values:
toTokenIdstringOptional

Filter by destination token ID. Overrides toChainId. Overrides fromTokenId.

referralstringOptional

Filter by referral.

affiliatestringOptional

Filter by an affiliate stored in the fees.

statusesstringOptional

Filter by comma-separated statuses. Allowed values: FAILED, INCOMPLETE_DEPOSIT, PENDING_DEPOSIT, PROCESSING, REFUNDED, SUCCESS. Default: FAILED, PROCESSING, REFUNDED, SUCCESS.

showTestTxsstringOptional

Show transactions from test accounts and with test-related referrals.

minUsdPricenumber | nullableOptional

Filter by minimum USD price for both input and output amounts.

maxUsdPricenumber | nullableOptional

Filter by maximum USD price for both input and output amounts.

endTimestampstring · date | nullableOptional

Filter by end timestamp (non-inclusive). Use ISO 8601 format.

endTimestampUnixnumber | nullableOptional

Filter by end timestamp (non-inclusive). Use Unix timestamp.

startTimestampstring · date | nullableOptional

Filter by start timestamp (non-inclusive). Use ISO 8601 format.

startTimestampUnixnumber | nullableOptional

Filter by start timestamp (non-inclusive). Use Unix timestamp.

Responses
chevron-right
200

Transactions

application/json
get
/api/v0/transactions-pages

Last updated