Step API
  • Overview
    • Introduction
    • Getting Started
    • JavaScript SDK
    • Purchasing
    • Credit Usage
    • Rate Limiting
    • Authentication
  • API Reference
    • Portfolio
    • TX History
Powered by GitBook
On this page
  1. API Reference

TX History

These endpoints are related to retrieving the parsed, detailed transaction history for a wallet. This API is NOT part of a Portfolio API subscription at this time, and is not related to credit usage.

PreviousPortfolio

Last updated 2 months ago

Purchasing

This API is available for purchase for individual wallets via our . Calls to this API are permitted to be done directly to the API provided you have purchased a subscription.

This API is also available for a yearly fee or pay-as-you-go for customers of any size. Contact us in our for more information.

This API is NOT part of a Portfolio API subscription at this time, and is not related to credit usage.

Authentication

All requests require proper authentication using the method described in the section.

General Information

A call to update-cache is always required in order to begin the fetch for a wallet. Status can be retrieved with repeated calls to that endpoint.

website
Discord
Authentication
get
Authorizations
Query parameters
pubkeystringRequired

The public key of the wallet

maxWaitTimenumberRequired

The 'maxWaitTime' param is the MAX amount of time to wait for an update to be done if it is needed.
I've found that 5000ms is long enough to grab the most recent 50 or so txs. If the cache is up to date, no waiting happens and this immediately returns. If the cache update finishes sooner than the time supplied, this method returns at that time. The time supplied is a MAX.

apiKeystringOptional

The api key of the user

Responses
200Success
get
GET /v1/transaction-history/update-cache?pubkey=text&maxWaitTime=1 HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*
200Success

No content

  • Authentication
  • General Information
  • GET/v1/transaction-history/update-cache
  • POSTGet a list of transactions with the applied filters

Get a list of transactions with the applied filters

post
Authorizations
Query parameters
pubkeystringRequired

The public key of the wallet

yearnumberRequired

The year of the transactions

includeMintInfobooleanRequired
apiKeystringOptional

The api key of the user

Body
objectOptionalExample: { "filters": { page: 1, itemsPerPage: 10, sortDesc: true, startDate : "2021-01-01T00:00:00.000Z", endDate: "2021-01-01T00:00:00.000Z", platforms: ["Jupiter", "Solana"], tokens: ["SOL", "STEP"], txId: "5CLeZVatZA5czyPeJwACjVcR68sXzEjBSiJAuWXg6M46NFagBYak71JmkUPS1D3uwGyFEHcDytqQtVERgSEQ5fyK" types: ["Stake", "Unstake"] }
Responses
201Success
post
POST /v1/transaction-history/list?pubkey=text&year=1&includeMintInfo=true HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 483

"\n      {\n        \"filters\": {\n            page: 1,\n            itemsPerPage: 10,\n            sortDesc: true,\n            startDate : \"2021-01-01T00:00:00.000Z\",\n            endDate: \"2021-01-01T00:00:00.000Z\",\n            platforms: [\"Jupiter\", \"Solana\"],\n            tokens: [\"SOL\", \"STEP\"],\n            txId: \"5CLeZVatZA5czyPeJwACjVcR68sXzEjBSiJAuWXg6M46NFagBYak71JmkUPS1D3uwGyFEHcDytqQtVERgSEQ5fyK\"\n            types: [\"Stake\", \"Unstake\"]\n      }"
201Success

No content