{"uid":"cap_plh6yAaCsBVudz2m62rm7","slug":"solana-idl-instruction-decoder-ed67ff31","name":"Solana IDL Instruction Decoder","description":"Explore 330 pay-per-call x402 API services and 27 agent-native digital products, with Base USDC pricing, secure Polar checkout, and free discovery.","url":"https://signalharness.ai/api/agent/services/solana_idl_instruction_decode/invoke","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"request_json":{"type":"string","maxLength":65536,"minLength":2}}},"responseSchema":{"type":"json","example":{"replay":false,"result":{"warnings":["Accuracy depends entirely on the supplied IDL and supported primitive types."],"service_id":"solana_idl_instruction_decode","analysis_json":"{\"accounts\":[],\"arguments\":{},\"discriminator\":[],\"instruction_name\":null,\"matched\":false,\"unmatched_data_hex\":\"0x\"}","evidence_scope":"caller_supplied_data","analyzed_network":"solana"},"status":"succeeded","receipt":{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","usage":[],"status":"succeeded","network":"eip155:8453","artifacts":[],"endedAtMs":0,"latencyMs":0,"paymentId":"example-payment","receiptId":"example-receipt","requestId":"example-request","serviceId":"solana_idl_instruction_decode","executionId":"example-execution","startedAtMs":0,"amountAtomic":"20000","resultSha256":"bd524863b10b2b5aa17d897f5392623fcbeed8c86506ef5a60c5afc62a87f9f6","serviceVersion":"1.0.0","settlementReference":"0x0000000000000000000000000000000000000000000000000000000000000000"},"artifacts":[],"requestId":"example-request","executionId":"example-execution"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6Q1PL6-WXcv0J1Zrxyhgt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Decodes a raw Solana transaction instruction into human-readable arguments and account metadata using a caller-supplied IDL","exampleAgentPrompt":"Can you decode this raw Solana instruction for me using the IDL I'm supplying? Here's the JSON with the IDL and raw instruction bytes — tell me the instruction name, its arguments, and which accounts it touches.","exampleUseCases":[{"title":"Debugging an Anchor program call","prompt":"I've got a raw Solana transaction instruction from an Anchor program and I need to know what function it's calling and what arguments were passed. Here's the IDL and the instruction data as JSON — can you decode it for me?"},{"title":"Auditing unknown Solana transaction","prompt":"I'm reviewing a suspicious Solana transaction and I have the program IDL. Can you parse the raw instruction bytes using the IDL and tell me the instruction name, arguments, and accounts involved?"},{"title":"Building a Solana transaction explorer","prompt":"My app needs to display decoded Solana instructions in a human-readable format. Given this IDL and raw instruction data in JSON, decode the instruction and return the name, arguments, and matched accounts."}],"resultDescription":"Returns a JSON analysis containing the matched instruction name (or null if unmatched), decoded arguments, account list, discriminator bytes, unmatched data in hex, the analyzed network (Solana), evidence scope, and any accuracy warnings. Also includes a receipt with payment metadata and a SHA-256 hash of the result.","failureModes":["IDL does not match the instruction — returns matched:false with unmatched_data_hex","Malformed or invalid JSON in request_json — likely 4xx or parsing error","Unsupported primitive types in the IDL — warnings issued, partial decode returned","Instruction discriminator not found in supplied IDL — instruction_name is null","Payment failure or insufficient USDC balance — 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you have a raw Solana instruction and a corresponding IDL and need to decode the instruction into named arguments and accounts without running a full Solana node or RPC call. It's especially useful for Anchor programs where discriminators are well-defined. Prefer this over general-purpose RPC decoding when you want a structured JSON result with argument mapping and account labeling, and are willing to supply the IDL yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T07:02:51.603Z","isFirstParty":false}