Skip to main content

/program-id-to-label REST API Endpoint

Returns a hash, whose key is the program id and value is the label. This is used to help map error from transaction by identifying the fault program id. With that, we can use the excludeDexes or dexes parameter

Updated on
Sep 20, 2024

/program-id-to-label REST API Endpoint

Please note that this method is available for Free and Paid subscribers of Metis - Jupiter V6 Swap API, along with jupiterapi.com users.
Solana Web3.js 2.0 includes the ability to customize RPC methods and transports, allowing you to seamlessly integrate QuickNode Marketplace add-ons into your applications. For more information on how to use QuickNode Marketplace add-ons with Solana Web3.js 2.0, check out these guides: How to Use QuickNode Add-ons using Solana Web3.js 2.0 (Part 1) and How to Use QuickNode Add-ons using Solana Web3.js 2.0 (Part 2)

Parameters

This method does not accept any parameters

Returns

Key:Value
object
The key value pair, key is the program id and value is the label
Request
1
curl --location 'https://docs-demo.solana-mainnet.quiknode.pro/program-id-to-label'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free