@circle-fin/usdckit - v0.22.0
    Preparing search index...

    Function simulateTransaction

    • Simulates a transaction to get a preview of its effects

      Parameters

      • client: ExtendedViemClient

        Extended Viem client

      • tx: string | Base64EncodedWireTransaction | Buffer<ArrayBufferLike>

        Transaction to simulate

      • Optionalconfig: ((Readonly<{ replaceRecentBlockhash?: boolean | undefined; sigVerify?: false | undefined; }> | Readonly<{ replaceRecentBlockhash?: false | undefined; sigVerify: true; }>) & Readonly<...> & { ...; }) & { ...; }

        Optional configuration for sol_simulateTransaction

      Returns Promise<
          Readonly<
              {
                  context: Readonly<{ slot: Slot }>;
                  value: Readonly<{ accounts: null }> & Readonly<
                      {
                          err: null
                          | TransactionError;
                          logs: null | string[];
                          returnData:
                              | null
                              | Readonly<{ data: Base64EncodedDataResponse; programId: Address }>;
                          unitsConsumed?: bigint;
                      },
                  >;
              },
          >,
      >

      Promise resolving to transaction simulation results