SEARCH_INSTRUCTIONS

Search instructions with a powerful filter built on top of Elasticsearch

Overview

This method allows you to search through program instructions with a robust filter object. There are many types of filters you can apply and you can find information regarding those in the Filters section of the docs. The endpoint example here shows off one of the many filters.

SEARCH_INSTRUCTIONS

post
/query/solana

Search instructions with a powerful filter built on top of Elasticsearch

Header parameters
x-api-keystringRequired

the API key

Body
typestringRequired

should be set to 'SEARCH_INSTRUCTIONS' This is the type of query you want to perform.

Example: SEARCH_INSTRUCTIONS
Responses
200

Successful Response

application/json; charset=utf-8
post
/query/solana
200

Successful Response

Filters

As mentioned above, the api definition here illustrates one of Carpool's many filter types. All queries that accept a filter object in the POST body can make use of any of the potential filters. Please see the Instruction Filters section of the documentation to better understand how they are implemented for instruction queries.

πŸ‘“Instruction Filters

Example - Basic

Program - Cypher Protocol

Description - Get all instructions associated with the authority account at pubkey 8mpT...Mguz

Javascript

cURL

Example - Advanced

Program - Cypher Protocol

Description - Get all instructions associated with the authority account at pubkey 8mpT...Mguz. Search in a specific time range and return up to 20 objects.

Javascript

cURL

Last updated