Crypto APIs icon

Crypto APIs

Interact with Crypto APIs — blockchain data, transactions, market data, and more

Actions77

Blockchain Fee → Estimate Program Invocation Compute Units

AI-generated

Summary

Estimate the compute units needed to invoke a Solana program using the sender, program ID, instruction data, and ordered account metadata. Select the Solana network and provide at least one account with its public key and signer and writable flags.

Inputs

  • Blockchain Type — Choose Solana; this operation estimates Solana program invocation compute units.
  • Network (required) — Select Mainnet or Devnet.
  • Sender (required) — Address sending the funds.
  • Program ID (required) — Address of the Solana program to invoke.
  • Instruction Data (required) — Instruction payload encoded as base58 or hex in the format expected by the program.
  • Accounts (required) — Add one or more accounts in the order expected by the program. For each, provide its public key and whether it must sign and may be modified.

Output shape

A single record containing the API's compute-unit estimate.

Solana fees are expressed in compute units; this operation returns a unit estimate rather than a fee amount.

Links

Discussion