simulateBundle

Simulates a Jito bundle without broadcasting it.

https://api.1inch.com/web3/501
Supported on:
Solana

Request

Request
object
jsonrpc
* string (Enum)
2.0
method
* string
params
array
items
any
id
* number
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const response = await fetch('https://api.1inch.com/web3/501', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Authorization: `Bearer ${API_KEY}`,
  },
  body: JSON.stringify({
    jsonrpc: '2.0',
    method: 'simulateBundle',
    params: [],
    id: 1,
  }),
});

const data = await response.json();
console.log(data);

Response

Simulate Bundle Response

Simulate Bundle Response
any
oneOf[0]
null
oneOf[1]
object
context
object
slot
* integer
apiVersion
string
err
any
logs
any
oneOf[0]
null
oneOf[1]
array
items
string
preExecutionAccounts
any
oneOf[0]
null
oneOf[1]
array
items
any
oneOf[0]
null
oneOf[1]
object
lamports
integer
owner
string
data
any
executable
boolean
rentEpoch
integer
space
integer
postExecutionAccounts
any
oneOf[0]
null
oneOf[1]
array
items
any
oneOf[0]
null
oneOf[1]
object
lamports
integer
owner
string
data
any
executable
boolean
rentEpoch
integer
space
integer
unitsConsumed
integer
returnData
any
oneOf[0]
null
oneOf[1]
object
programId
string
data
any

Did you find what you need?