Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ For more details, please check out the [Compute Units](/reference/compute-units#
| minimumLedgerSlot | 20 |
| getBlockHeight | 20 |
| simulateTransaction | 20 |
| simulateBundle | 20 |
| getFeeCalculatorForBlockhash | 11 |
| getSignatureStatuses | 20 |
| getRecentBlockhash | 10 |
Expand Down
2 changes: 1 addition & 1 deletion fern/api-reference/solana/solana-api-overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ slug: docs/solana/solana-api-overview
| [`getVersion`](/docs/chains/solana/solana-api-endpoints/get-version) | [`getVoteAccounts`](/docs/chains/solana/solana-api-endpoints/get-vote-accounts) |
| [`isBlockhashValid`](/docs/chains/solana/solana-api-endpoints/is-blockhash-valid) | [`minimumLedgerSlot`](/docs/chains/solana/solana-api-endpoints/minimum-ledger-slot) |
| [`requestAirdrop`](/docs/chains/solana/solana-api-endpoints/request-airdrop) | [`sendTransaction`](/docs/chains/solana/solana-api-endpoints/send-transaction) |
| [`simulateTransaction`](/docs/chains/solana/solana-api-endpoints/simulate-transaction) | |
| [`simulateTransaction`](/docs/chains/solana/solana-api-endpoints/simulate-transaction) | [`simulateBundle`](/docs/chains/solana/solana-api-endpoints/simulate-bundle) |
20 changes: 20 additions & 0 deletions src/openrpc/chains/_components/solana/methods.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,26 @@ components:
schema:
$ref: "./transaction.yaml#/components/schemas/SimulatedTransactionResult"

simulateBundle:
name: simulateBundle
description: Simulates sending a Jito bundle of transactions.
params:
- name: Bundle
required: true
description: Encoded, serialized transactions to simulate in a bundle.
schema:
$ref: "./transaction.yaml#/components/schemas/SimulateBundleParams"
- name: Configuration
required: false
description: Optional configuration object containing additional options.
schema:
$ref: "./transaction.yaml#/components/schemas/SimulateBundleConfig"
result:
name: Simulated bundle result
description: The result of simulating the bundle.
schema:
$ref: "./transaction.yaml#/components/schemas/SimulatedBundleResult"

getSignaturesForAddress:
name: getSignaturesForAddress
description: Returns signatures for confirmed transactions that include the given address.
Expand Down
109 changes: 109 additions & 0 deletions src/openrpc/chains/_components/solana/transaction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,115 @@ components:
type: object
nullable: true
description: Inner instructions if `innerInstructions` is true.
SimulateBundleParams:
title: SimulateBundle Parameters
type: object
properties:
encodedTransactions:
type: array
items:
type: string
description: Array of encoded, serialized transactions to simulate.
required:
- encodedTransactions
SimulateBundleConfig:
title: SimulateBundle Configuration
type: object
properties:
preExecutionAccountsConfigs:
type: array
description: >-
Account capture configs for each transaction before execution. Array
length must equal the number of transactions in the bundle. Use null
for entries where no account state is requested.
items:
oneOf:
- $ref: "#/components/schemas/SimulateBundleAccountsConfig"
- type: "null"
postExecutionAccountsConfigs:
type: array
description: >-
Account capture configs for each transaction after execution. Array
length must equal the number of transactions in the bundle. Use null
for entries where no account state is requested.
items:
oneOf:
- $ref: "#/components/schemas/SimulateBundleAccountsConfig"
- type: "null"
transactionEncoding:
type: string
description: Encoding used for the transactions in `encodedTransactions`.
enum:
- base64
- base58
default: base64
simulationBank:
type: string
description: Bank to simulate against.
skipSigVerify:
type: boolean
description: If true, signature verification is skipped before simulation.
default: false
replaceRecentBlockhash:
type: boolean
description: If true, replaces recent blockhash with the most recent one.
default: false
SimulateBundleAccountsConfig:
title: SimulateBundle Accounts Configuration
type: object
properties:
addresses:
type: array
items:
$ref: "./base-types.yaml#/components/schemas/Pubkey"
description: Base-58 encoded account addresses to capture.
encoding:
$ref: "./base-types.yaml#/components/schemas/Encoding"
description: Encoding used for returned account data.
default: base64
SimulatedBundleTransactionResult:
title: Simulated Bundle Transaction Result
type: object
properties:
err:
type: object
nullable: true
description: Error if the transaction failed, null if succeeded.
logs:
type: array
nullable: true
items:
type: string
description: Log messages output during execution.
preExecutionAccounts:
type: array
nullable: true
items:
$ref: "./account.yaml#/components/schemas/AccountInfo"
description: Account states before execution.
postExecutionAccounts:
type: array
nullable: true
items:
$ref: "./account.yaml#/components/schemas/AccountInfo"
description: Account states after execution.
unitsConsumed:
type: integer
description: Compute budget units consumed.
returnData:
$ref: "#/components/schemas/ReturnData"
SimulatedBundleResult:
title: Simulated Bundle Result
type: object
properties:
summary:
type: string
description: Summary of the bundle simulation result.
transactionResults:
type: array
description: Result details for each transaction in the bundle.
items:
$ref: "#/components/schemas/SimulatedBundleTransactionResult"
ReturnData:
title: Return Data
type: object
Expand Down
1 change: 1 addition & 0 deletions src/openrpc/chains/solana/solana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ methods:
- $ref: ../_components/solana/methods.yaml#/components/methods/requestAirdrop
- $ref: ../_components/solana/methods.yaml#/components/methods/sendTransaction
- $ref: ../_components/solana/methods.yaml#/components/methods/simulateTransaction
- $ref: ../_components/solana/methods.yaml#/components/methods/simulateBundle
x-bot-ignore:
- getAsset
- getAssetProof
Expand Down
Loading