Skip to content

simulateTransaction

simulateTransaction simulates the execution of a raw Kontor transaction without broadcasting it to the network.

Usage

import { createKontorIndexerClient, http, signet } from '@kontor/kontor-sdk'
 
export const indexerClient = createKontorIndexerClient({
  chain: signet,
  transport: http()
})
 
const simulation = await indexerClient.simulateTransaction({
  hex: "0x..." // Raw transaction hex
})