From c43539676a40e8b9dabb068a0c862fafab253f2b Mon Sep 17 00:00:00 2001 From: Sentio Bot Date: Thu, 19 Dec 2024 05:04:05 +0000 Subject: [PATCH] chore: update --- doc/index.html | 3391 ++++++++++++----- openapi.json | 500 +++ src/DefaultApi.md | 118 + src/apis/DefaultApi.ts | 171 + src/index.ts | 2 +- src/models/CommonErrorRecord.ts | 71 + src/models/CommonProjectVariables.ts | 44 + src/models/CommonProjectVariablesVariable.ts | 57 + src/models/ObjectSerializer.ts | 57 + src/models/ProcessorServiceChainState.ts | 146 + .../ProcessorServiceChainStateStatus.ts | 47 + .../ProcessorServiceChainStateStatusState.ts | 21 + ...ocessorServiceDownloadProcessorResponse.ts | 36 + .../ProcessorServiceGetProcessorResponse.ts | 37 + ...cessorServiceGetProcessorStatusResponse.ts | 37 + ...ceGetProcessorStatusResponseProcessorEx.ts | 169 + ...tProcessorStatusResponseProcessorStatus.ts | 47 + ...essorStatusResponseProcessorStatusState.ts | 20 + ...rServiceGetProcessorWithProjectResponse.ts | 45 + .../ProcessorServiceGetProcessorsResponse.ts | 37 + ...cessorServiceGetProjectVersionsResponse.ts | 37 + ...erviceGetProjectVersionsResponseVersion.ts | 53 + src/models/ProcessorServiceNetworkOverride.ts | 43 + src/models/ProcessorServiceProcessor.ts | 215 ++ .../ProcessorServiceProcessorVersionState.ts | 20 + src/models/all.ts | 19 + src/types/ObjectParamAPI.ts | 90 + src/types/ObservableAPI.ts | 101 + src/types/PromiseAPI.ts | 76 + 29 files changed, 4682 insertions(+), 1025 deletions(-) create mode 100755 src/DefaultApi.md create mode 100755 src/apis/DefaultApi.ts create mode 100755 src/models/CommonErrorRecord.ts create mode 100755 src/models/CommonProjectVariables.ts create mode 100755 src/models/CommonProjectVariablesVariable.ts create mode 100755 src/models/ProcessorServiceChainState.ts create mode 100755 src/models/ProcessorServiceChainStateStatus.ts create mode 100755 src/models/ProcessorServiceChainStateStatusState.ts create mode 100755 src/models/ProcessorServiceDownloadProcessorResponse.ts create mode 100755 src/models/ProcessorServiceGetProcessorResponse.ts create mode 100755 src/models/ProcessorServiceGetProcessorStatusResponse.ts create mode 100755 src/models/ProcessorServiceGetProcessorStatusResponseProcessorEx.ts create mode 100755 src/models/ProcessorServiceGetProcessorStatusResponseProcessorStatus.ts create mode 100755 src/models/ProcessorServiceGetProcessorStatusResponseProcessorStatusState.ts create mode 100755 src/models/ProcessorServiceGetProcessorWithProjectResponse.ts create mode 100755 src/models/ProcessorServiceGetProcessorsResponse.ts create mode 100755 src/models/ProcessorServiceGetProjectVersionsResponse.ts create mode 100755 src/models/ProcessorServiceGetProjectVersionsResponseVersion.ts create mode 100755 src/models/ProcessorServiceNetworkOverride.ts create mode 100755 src/models/ProcessorServiceProcessor.ts create mode 100755 src/models/ProcessorServiceProcessorVersionState.ts diff --git a/doc/index.html b/doc/index.html index f1c0bdd..ca2e58d 100755 --- a/doc/index.html +++ b/doc/index.html @@ -1887,6 +1887,36 @@ "type" : "string" } } +}; + defs["common.ErrorRecord"] = { + "type" : "object", + "properties" : { + "id" : { + "type" : "string" + }, + "namespace" : { + "type" : "integer", + "format" : "int32" + }, + "code" : { + "title" : "same as google.rpc.status.Status.code", + "type" : "integer", + "format" : "int32" + }, + "namespaceCode" : { + "title" : "additional codes definted in the namespace", + "type" : "integer", + "format" : "int32" + }, + "message" : { + "type" : "string" + }, + "createdAt" : { + "title" : "details", + "type" : "string", + "format" : "date-time" + } + } }; defs["common.EventLogColumn"] = { "type" : "object", @@ -2352,6 +2382,38 @@ "type" : "string", "default" : "SENTIO", "enum" : [ "SENTIO", "SUBGRAPH", "ACTION" ] +}; + defs["common.ProjectVariables"] = { + "type" : "object", + "properties" : { + "projectId" : { + "type" : "string" + }, + "variables" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/common.ProjectVariables.Variable" + } + } + } +}; + defs["common.ProjectVariables.Variable"] = { + "type" : "object", + "properties" : { + "key" : { + "type" : "string" + }, + "value" : { + "type" : "string" + }, + "isSecret" : { + "type" : "boolean" + }, + "updatedAt" : { + "type" : "string", + "format" : "date-time" + } + } }; defs["common.ProjectView"] = { "type" : "object", @@ -3742,621 +3804,698 @@ } } }; - defs["solidity_service.BaseChainConfig"] = { + defs["processor_service.ChainState"] = { "type" : "object", "properties" : { - "endpoint" : { - "type" : "string" + "chainId" : { + "type" : "string", + "description" : "The chain id." }, - "debugEndpoint" : { - "type" : "string" + "processedBlockNumber" : { + "type" : "string", + "description" : "The most recently processed block number and block hash.", + "format" : "int64" }, - "sourceFetcherType" : { - "$ref" : "#/components/schemas/solidity_service.SourceFetcherType" + "processedTimestampMicros" : { + "type" : "string", + "format" : "int64" }, - "sourceFetcherEndpoint" : { + "processedBlockHash" : { "type" : "string" }, - "sourceFetcherTimeout" : { + "processedVersion" : { + "title" : "Processed version", + "type" : "integer", + "format" : "int32" + }, + "status" : { + "$ref" : "#/components/schemas/processor_service.ChainState.Status" + }, + "updatedAt" : { "type" : "string", - "format" : "int64" + "format" : "date-time" }, - "sourceFetcherApiKeys" : { - "type" : "array", - "items" : { - "type" : "string" - } + "templates" : { + "type" : "string", + "description" : "The serialized templates info." }, - "oklinkChainShortName" : { - "title" : "Required if source_fetcher_type is OKLINK", - "type" : "string" - } - } -}; - defs["solidity_service.BlockOverrides"] = { - "type" : "object", - "properties" : { - "blockNumber" : { - "type" : "string" + "indexerState" : { + "type" : "string", + "description" : "The serialized indexer state." }, - "timestamp" : { - "type" : "string" + "meterState" : { + "type" : "string", + "description" : "The serialized meter state." }, - "gasLimit" : { + "handlerStat" : { + "title" : "The serialized handler stat", "type" : "string" }, - "difficulty" : { - "type" : "string" + "initialStartBlockNumber" : { + "type" : "string", + "format" : "int64" }, - "baseFee" : { - "type" : "string" + "estimatedLatestBlockNumber" : { + "type" : "string", + "format" : "int64" }, - "blockHash" : { - "type" : "object", - "additionalProperties" : { - "type" : "string" - } + "trackers" : { + "type" : "string", + "description" : "To be deprecated after the migration." } } }; - defs["solidity_service.BlockPrice"] = { + defs["processor_service.ChainState.Status"] = { + "title" : "Status of this chain indexer", "type" : "object", "properties" : { - "blockNumber" : { - "type" : "integer", - "format" : "int32" - }, - "estimatedTransactionCount" : { - "type" : "integer", - "format" : "int32" - }, - "baseFeePerGas" : { - "type" : "number", - "format" : "double" - }, - "blobBaseFeePerGas" : { - "type" : "number", - "format" : "double" + "state" : { + "$ref" : "#/components/schemas/processor_service.ChainState.Status.State" }, - "estimatedPrices" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/solidity_service.EstimatedPrice" - } + "errorRecord" : { + "$ref" : "#/components/schemas/common.ErrorRecord" } } }; - defs["solidity_service.ChainIdentifier"] = { + defs["processor_service.ChainState.Status.State"] = { + "type" : "string", + "default" : "UNKNOWN", + "enum" : [ "UNKNOWN", "ERROR", "CATCHING_UP", "PROCESSING_LATEST", "QUEUING" ] +}; + defs["processor_service.DownloadProcessorResponse"] = { "type" : "object", "properties" : { - "chainId" : { - "type" : "string" - }, - "forkId" : { + "url" : { "type" : "string" } } }; - defs["solidity_service.CompileSourceInternalResponse"] = { + defs["processor_service.GetProcessorResponse"] = { "type" : "object", "properties" : { - "failure" : { - "$ref" : "#/components/schemas/solidity_service.Failure" + "processor" : { + "$ref" : "#/components/schemas/processor_service.Processor" } } }; - defs["solidity_service.CompilerOptions"] = { + defs["processor_service.GetProcessorStatusResponse"] = { "type" : "object", "properties" : { - "language" : { + "processors" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/processor_service.GetProcessorStatusResponse.ProcessorEx" + } + } + } +}; + defs["processor_service.GetProcessorStatusResponse.ProcessorEx"] = { + "type" : "object", + "properties" : { + "states" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/processor_service.ChainState" + } + }, + "processorId" : { + "type" : "string" + }, + "codeHash" : { "type" : "string" }, + "commitSha" : { + "type" : "string" + }, + "uploadedBy" : { + "$ref" : "#/components/schemas/common.UserInfo" + }, + "uploadedAt" : { + "type" : "string", + "format" : "date-time" + }, + "processorStatus" : { + "$ref" : "#/components/schemas/processor_service.GetProcessorStatusResponse.ProcessorStatus" + }, "version" : { + "type" : "integer", + "format" : "int32" + }, + "sdkVersion" : { "type" : "string" }, - "settings" : { - "$ref" : "#/components/schemas/solidity_service.Settings" + "gitUrl" : { + "type" : "string" }, - "specializations" : { - "$ref" : "#/components/schemas/solidity_service.Specializations" + "versionState" : { + "$ref" : "#/components/schemas/processor_service.ProcessorVersionState" + }, + "versionLabel" : { + "type" : "string" + }, + "ipfsHash" : { + "type" : "string" + }, + "debugFork" : { + "type" : "string" + }, + "cliVersion" : { + "type" : "string" + }, + "referenceProjectId" : { + "type" : "string" + }, + "warnings" : { + "type" : "array", + "items" : { + "type" : "string" + } + }, + "pause" : { + "type" : "boolean" + }, + "networkOverrides" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/processor_service.NetworkOverride" + } } } }; - defs["solidity_service.ContractKeyInfo"] = { + defs["processor_service.GetProcessorStatusResponse.ProcessorStatus"] = { "type" : "object", "properties" : { - "preprocessKey" : { - "title" : "always set, even if not preprocessed, pass the key to debugger to store", - "type" : "string" + "state" : { + "$ref" : "#/components/schemas/processor_service.GetProcessorStatusResponse.ProcessorStatus.State" }, - "compilationKey" : { - "title" : "If it's already preprocessed, compilation key will be empty", - "type" : "string" + "errorRecord" : { + "$ref" : "#/components/schemas/common.ErrorRecord" } } }; - defs["solidity_service.CreateForkResponse"] = { + defs["processor_service.GetProcessorStatusResponse.ProcessorStatus.State"] = { + "type" : "string", + "default" : "UNKNOWN", + "enum" : [ "UNKNOWN", "ERROR", "STARTING", "PROCESSING" ] +}; + defs["processor_service.GetProcessorWithProjectResponse"] = { "type" : "object", "properties" : { - "fork" : { - "$ref" : "#/components/schemas/solidity_service.Fork" + "processor" : { + "$ref" : "#/components/schemas/processor_service.Processor" + }, + "project" : { + "$ref" : "#/components/schemas/common.Project" } } }; - defs["solidity_service.DecodeStateDiffResponse"] = { + defs["processor_service.GetProcessorsResponse"] = { "type" : "object", "properties" : { - "result" : { - "type" : "string" + "processors" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/processor_service.Processor" + } } } }; - defs["solidity_service.EstimatedPrice"] = { + defs["processor_service.GetProjectVersionsResponse"] = { "type" : "object", "properties" : { - "confidence" : { - "type" : "integer", - "format" : "int32" - }, - "price" : { - "type" : "number", - "format" : "double" - }, - "maxPriorityFeePerGas" : { - "type" : "number", - "format" : "double" - }, - "maxFeePerGas" : { - "type" : "number", - "format" : "double" + "versions" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/processor_service.GetProjectVersionsResponse.Version" + } } } }; - defs["solidity_service.ExternalFork"] = { + defs["processor_service.GetProjectVersionsResponse.Version"] = { "type" : "object", "properties" : { - "chainConfig" : { - "$ref" : "#/components/schemas/solidity_service.BaseChainConfig" + "version" : { + "type" : "integer", + "format" : "int32" }, - "nodeAdditionalHeaders" : { - "title" : "Additional headers for node requests", + "state" : { + "$ref" : "#/components/schemas/processor_service.ProcessorVersionState" + }, + "processorId" : { "type" : "string" } } }; - defs["solidity_service.Failure"] = { + defs["processor_service.NetworkOverride"] = { "type" : "object", "properties" : { - "error" : { + "chain" : { "type" : "string" }, - "reason" : { + "host" : { "type" : "string" } } }; - defs["solidity_service.FetchAndCompileInternalResponse"] = { + defs["processor_service.Processor"] = { "type" : "object", "properties" : { - "compiledAddresses" : { - "type" : "array", + "processorId" : { + "type" : "string", + "description" : "The unique processor id." + }, + "projectId" : { + "type" : "string", + "description" : "The project this processor belongs to." + }, + "version" : { + "type" : "integer", + "description" : "The version of the code_url below.", + "format" : "int32" + }, + "sdkVersion" : { + "title" : "The SDK version used when uploaded", + "type" : "string" + }, + "codeUrl" : { + "type" : "string", + "description" : "Call should be able to fetch the code to run from code_url." + }, + "chainStates" : { + "title" : "Each maintains a state of a processor w.r.t a given chain.\nThis is a one-to-many mapping (processor to processor-chain)", + "type" : "array", "items" : { - "type" : "string" + "$ref" : "#/components/schemas/processor_service.ChainState" } }, - "failures" : { - "type" : "object", - "additionalProperties" : { - "$ref" : "#/components/schemas/solidity_service.Failure" - } - } - } -}; - defs["solidity_service.Fork"] = { - "type" : "object", - "properties" : { - "id" : { + "contractId" : { + "type" : "string", + "description" : "If non empty, this is the contract associated with the processor." + }, + "versionState" : { + "$ref" : "#/components/schemas/processor_service.ProcessorVersionState" + }, + "debug" : { + "title" : "If enabled, driver job's log level will be set to debug", + "type" : "boolean" + }, + "timescaleShardingIndex" : { + "type" : "integer", + "description" : "The timescale-db sharding index of this processor.", + "format" : "int32" + }, + "versionLabel" : { + "title" : "The version label of the subgraph\nused for subgraph project", "type" : "string" }, - "type" : { - "$ref" : "#/components/schemas/solidity_service.ForkType" + "ipfsHash" : { + "title" : "The hash (object CID) of the subgraph description file in ipfs node\nused for subgraph project", + "type" : "string" }, - "name" : { + "debugFork" : { + "title" : "ID of a remote subgraph whose store will be GraphQL queried\nused for subgraph project", "type" : "string" }, - "extra" : { + "createdAt" : { + "type" : "string", + "description" : "The created timestamp of the processor.", + "format" : "int64" + }, + "clickhouseShardingIndex" : { + "type" : "integer", + "description" : "The clickhouse sharding index of this processor.", + "format" : "int32" + }, + "k8sClusterId" : { + "title" : "The k8s cluster id of this processor", + "type" : "integer", + "format" : "int32" + }, + "enableMaterializedView" : { + "type" : "boolean" + }, + "referenceProjectId" : { "type" : "string" }, - "managedFork" : { - "$ref" : "#/components/schemas/solidity_service.ManagedFork" + "networkOverrides" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/processor_service.NetworkOverride" + } }, - "externalFork" : { - "$ref" : "#/components/schemas/solidity_service.ExternalFork" + "eventlogMigrateStatus" : { + "type" : "integer", + "format" : "int32" }, - "createTime" : { - "type" : "string", - "format" : "date-time" + "eventlogVersion" : { + "type" : "integer", + "format" : "int32" }, - "updateTime" : { - "type" : "string", - "format" : "date-time" - } - } -}; - defs["solidity_service.ForkService.CreateForkBody"] = { - "required" : [ "fork" ], - "type" : "object", - "properties" : { - "fork" : { - "$ref" : "#/components/schemas/solidity_service.Fork" - } - } -}; - defs["solidity_service.ForkService.UpdateForkBody"] = { - "required" : [ "fork" ], - "type" : "object", - "properties" : { - "fork" : { - "$ref" : "#/components/schemas/solidity_service.Fork" + "pause" : { + "type" : "boolean" } - } + }, + "description" : "This represents a processor which backend works on." }; - defs["solidity_service.ForkType"] = { + defs["processor_service.ProcessorVersionState"] = { "type" : "string", - "default" : "MANAGED", - "enum" : [ "MANAGED", "EXTERNAL" ] + "default" : "UNKNOWN", + "enum" : [ "UNKNOWN", "PENDING", "ACTIVE", "OBSOLETE" ] }; - defs["solidity_service.GetEstimatedGasPriceResponse"] = { + defs["solidity_service.BaseChainConfig"] = { "type" : "object", "properties" : { - "system" : { - "type" : "string" - }, - "network" : { + "endpoint" : { "type" : "string" }, - "unit" : { + "debugEndpoint" : { "type" : "string" }, - "maxPrice" : { - "type" : "number", - "format" : "double" + "sourceFetcherType" : { + "$ref" : "#/components/schemas/solidity_service.SourceFetcherType" }, - "currentBlockNumber" : { - "type" : "integer", - "format" : "int32" + "sourceFetcherEndpoint" : { + "type" : "string" }, - "msSinceLastBlock" : { - "type" : "integer", - "format" : "int32" + "sourceFetcherTimeout" : { + "type" : "string", + "format" : "int64" }, - "blockPrices" : { + "sourceFetcherApiKeys" : { "type" : "array", "items" : { - "$ref" : "#/components/schemas/solidity_service.BlockPrice" + "type" : "string" } + }, + "oklinkChainShortName" : { + "title" : "Required if source_fetcher_type is OKLINK", + "type" : "string" } } }; - defs["solidity_service.GetForkInfoResponse"] = { + defs["solidity_service.BlockOverrides"] = { "type" : "object", "properties" : { - "currentBlockNumber" : { + "blockNumber" : { "type" : "string" }, - "currentBlockTimestamp" : { - "type" : "string", - "format" : "uint64" - }, - "currentBlockHash" : { + "timestamp" : { "type" : "string" }, - "hardFork" : { + "gasLimit" : { "type" : "string" }, - "transactionOrder" : { + "difficulty" : { "type" : "string" }, - "environment" : { - "$ref" : "#/components/schemas/solidity_service.NodeEnvironment" + "baseFee" : { + "type" : "string" }, - "forkConfig" : { - "$ref" : "#/components/schemas/solidity_service.NodeForkConfig" + "blockHash" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + } } } }; - defs["solidity_service.GetForkResponse"] = { + defs["solidity_service.BlockPrice"] = { "type" : "object", "properties" : { - "fork" : { - "$ref" : "#/components/schemas/solidity_service.Fork" + "blockNumber" : { + "type" : "integer", + "format" : "int32" + }, + "estimatedTransactionCount" : { + "type" : "integer", + "format" : "int32" + }, + "baseFeePerGas" : { + "type" : "number", + "format" : "double" + }, + "blobBaseFeePerGas" : { + "type" : "number", + "format" : "double" + }, + "estimatedPrices" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/solidity_service.EstimatedPrice" + } } } }; - defs["solidity_service.GetSimulationBundleResponse"] = { + defs["solidity_service.ChainIdentifier"] = { "type" : "object", "properties" : { - "simulations" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/solidity_service.Simulation" - } + "chainId" : { + "type" : "string" }, - "error" : { + "forkId" : { "type" : "string" } } }; - defs["solidity_service.GetSimulationResponse"] = { + defs["solidity_service.CompileSourceInternalResponse"] = { "type" : "object", "properties" : { - "simulation" : { - "$ref" : "#/components/schemas/solidity_service.Simulation" + "failure" : { + "$ref" : "#/components/schemas/solidity_service.Failure" } } }; - defs["solidity_service.GetSimulationsResponse"] = { + defs["solidity_service.CompilerOptions"] = { "type" : "object", "properties" : { - "simulations" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/solidity_service.Simulation" - } + "language" : { + "type" : "string" }, - "count" : { - "type" : "string", - "format" : "int64" + "version" : { + "type" : "string" }, - "page" : { - "type" : "integer", - "format" : "int32" + "settings" : { + "$ref" : "#/components/schemas/solidity_service.Settings" }, - "pageSize" : { - "type" : "integer", - "format" : "int32" + "specializations" : { + "$ref" : "#/components/schemas/solidity_service.Specializations" } } }; - defs["solidity_service.GetStorageSummaryInternalResponse"] = { + defs["solidity_service.ContractKeyInfo"] = { "type" : "object", "properties" : { - "results" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/solidity_service.StorageSummaryResult" - } + "preprocessKey" : { + "title" : "always set, even if not preprocessed, pass the key to debugger to store", + "type" : "string" + }, + "compilationKey" : { + "title" : "If it's already preprocessed, compilation key will be empty", + "type" : "string" } } }; - defs["solidity_service.GetTraceCallInternalRequest.Bundle"] = { + defs["solidity_service.CreateForkResponse"] = { "type" : "object", "properties" : { - "transactions" : { - "type" : "array", - "items" : { - "type" : "object", - "properties" : { } - } - }, - "blockOverride" : { - "$ref" : "#/components/schemas/solidity_service.BlockOverrides" + "fork" : { + "$ref" : "#/components/schemas/solidity_service.Fork" } } }; - defs["solidity_service.GetTraceCallInternalRequest.StateContext"] = { + defs["solidity_service.DecodeStateDiffResponse"] = { "type" : "object", "properties" : { - "blockNumber" : { + "result" : { "type" : "string" - }, - "transactionIndex" : { - "type" : "integer", - "format" : "int32" } } }; - defs["solidity_service.GetTraceCallInternalResponse"] = { + defs["solidity_service.EstimatedPrice"] = { "type" : "object", "properties" : { - "result" : { - "type" : "array", - "items" : { - "type" : "array", - "items" : { - "type" : "object", - "properties" : { } - } - } + "confidence" : { + "type" : "integer", + "format" : "int32" }, - "outputs" : { - "type" : "array", - "items" : { - "type" : "array", - "items" : { - "type" : "object", - "properties" : { } - } - } + "price" : { + "type" : "number", + "format" : "double" }, - "error" : { - "type" : "string" + "maxPriorityFeePerGas" : { + "type" : "number", + "format" : "double" + }, + "maxFeePerGas" : { + "type" : "number", + "format" : "double" } } }; - defs["solidity_service.GetTraceTransactionInternalResponse"] = { + defs["solidity_service.ExternalFork"] = { "type" : "object", "properties" : { - "result" : { + "chainConfig" : { + "$ref" : "#/components/schemas/solidity_service.BaseChainConfig" + }, + "nodeAdditionalHeaders" : { + "title" : "Additional headers for node requests", "type" : "string" } } }; - defs["solidity_service.ListForksResponse"] = { - "type" : "object", - "properties" : { - "forks" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/solidity_service.Fork" - } - } - } -}; - defs["solidity_service.ManagedFork"] = { + defs["solidity_service.Failure"] = { "type" : "object", "properties" : { - "chainSpec" : { - "$ref" : "#/components/schemas/solidity_service.ChainIdentifier" - }, - "rpcEndpoint" : { + "error" : { "type" : "string" }, - "parentBlockNumber" : { - "type" : "integer", - "format" : "int32" + "reason" : { + "type" : "string" } } }; - defs["solidity_service.Metadata"] = { + defs["solidity_service.FetchAndCompileInternalResponse"] = { "type" : "object", "properties" : { - "useLiteralContent" : { - "type" : "boolean" - }, - "bytecodeHash" : { - "type" : "string" + "compiledAddresses" : { + "type" : "array", + "items" : { + "type" : "string" + } }, - "appendCBOR" : { - "type" : "boolean" + "failures" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/solidity_service.Failure" + } } } }; - defs["solidity_service.NodeEnvironment"] = { + defs["solidity_service.Fork"] = { "type" : "object", "properties" : { - "chainId" : { - "type" : "string", - "format" : "uint64" - }, - "baseFee" : { + "id" : { "type" : "string" }, - "gasLimit" : { - "type" : "string" + "type" : { + "$ref" : "#/components/schemas/solidity_service.ForkType" }, - "gasPrice" : { + "name" : { "type" : "string" - } - } -}; - defs["solidity_service.NodeForkConfig"] = { - "type" : "object", - "properties" : { - "forkUrl" : { + }, + "extra" : { "type" : "string" }, - "forkBlockNumber" : { + "managedFork" : { + "$ref" : "#/components/schemas/solidity_service.ManagedFork" + }, + "externalFork" : { + "$ref" : "#/components/schemas/solidity_service.ExternalFork" + }, + "createTime" : { "type" : "string", - "format" : "uint64" + "format" : "date-time" }, - "forkRetryBackoff" : { + "updateTime" : { "type" : "string", - "format" : "uint64" + "format" : "date-time" } } }; - defs["solidity_service.Optimizer"] = { - "title" : "partial", + defs["solidity_service.ForkService.CreateForkBody"] = { + "required" : [ "fork" ], "type" : "object", "properties" : { - "enabled" : { - "type" : "boolean" - }, - "runs" : { - "type" : "integer", - "format" : "int64" - }, - "details" : { - "$ref" : "#/components/schemas/solidity_service.Optimizer.Details" + "fork" : { + "$ref" : "#/components/schemas/solidity_service.Fork" } } }; - defs["solidity_service.Optimizer.Details"] = { + defs["solidity_service.ForkService.UpdateForkBody"] = { + "required" : [ "fork" ], "type" : "object", "properties" : { - "peephole" : { - "type" : "boolean" - }, - "jumpdestRemover" : { - "type" : "boolean" - }, - "yul" : { - "type" : "boolean" - }, - "yulDetails" : { - "$ref" : "#/components/schemas/solidity_service.Optimizer.Details.YulDetails" + "fork" : { + "$ref" : "#/components/schemas/solidity_service.Fork" } } }; - defs["solidity_service.Optimizer.Details.YulDetails"] = { + defs["solidity_service.ForkType"] = { + "type" : "string", + "default" : "MANAGED", + "enum" : [ "MANAGED", "EXTERNAL" ] +}; + defs["solidity_service.GetEstimatedGasPriceResponse"] = { "type" : "object", "properties" : { - "stackAllocation" : { - "type" : "boolean" + "system" : { + "type" : "string" }, - "optimizerSteps" : { + "network" : { "type" : "string" - } - } -}; - defs["solidity_service.PreProcessCompilationInternalResponse"] = { - "type" : "object", - "properties" : { - "preprocessedAddresses" : { + }, + "unit" : { + "type" : "string" + }, + "maxPrice" : { + "type" : "number", + "format" : "double" + }, + "currentBlockNumber" : { + "type" : "integer", + "format" : "int32" + }, + "msSinceLastBlock" : { + "type" : "integer", + "format" : "int32" + }, + "blockPrices" : { "type" : "array", "items" : { - "type" : "string" + "$ref" : "#/components/schemas/solidity_service.BlockPrice" } } } }; - defs["solidity_service.Settings"] = { - "title" : "partial", + defs["solidity_service.GetForkInfoResponse"] = { "type" : "object", "properties" : { - "remappings" : { - "type" : "array", - "items" : { - "type" : "string" - } + "currentBlockNumber" : { + "type" : "string" }, - "optimizer" : { - "$ref" : "#/components/schemas/solidity_service.Optimizer" + "currentBlockTimestamp" : { + "type" : "string", + "format" : "uint64" }, - "evmVersion" : { + "currentBlockHash" : { "type" : "string" }, - "metadata" : { - "$ref" : "#/components/schemas/solidity_service.Metadata" + "hardFork" : { + "type" : "string" }, - "viaIR" : { - "type" : "boolean" + "transactionOrder" : { + "type" : "string" }, - "compilationTarget" : { - "type" : "object", - "additionalProperties" : { - "type" : "string" - } + "environment" : { + "$ref" : "#/components/schemas/solidity_service.NodeEnvironment" + }, + "forkConfig" : { + "$ref" : "#/components/schemas/solidity_service.NodeForkConfig" } } }; - defs["solidity_service.SimulateTransactionBundleResponse"] = { + defs["solidity_service.GetForkResponse"] = { + "type" : "object", + "properties" : { + "fork" : { + "$ref" : "#/components/schemas/solidity_service.Fork" + } + } +}; + defs["solidity_service.GetSimulationBundleResponse"] = { "type" : "object", "properties" : { - "bundleId" : { - "type" : "string" - }, "simulations" : { "type" : "array", "items" : { @@ -4368,7 +4507,7 @@ } } }; - defs["solidity_service.SimulateTransactionResponse"] = { + defs["solidity_service.GetSimulationResponse"] = { "type" : "object", "properties" : { "simulation" : { @@ -4376,146 +4515,427 @@ } } }; - defs["solidity_service.Simulation"] = { - "required" : [ "blockNumber", "chainSpec", "from", "gas", "gasPrice", "input", "networkId", "to", "transactionIndex", "value" ], + defs["solidity_service.GetSimulationsResponse"] = { "type" : "object", "properties" : { - "id" : { - "type" : "string" + "simulations" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/solidity_service.Simulation" + } }, - "createAt" : { - "type" : "string" + "count" : { + "type" : "string", + "format" : "int64" }, - "bundleId" : { - "type" : "string" + "page" : { + "type" : "integer", + "format" : "int32" }, - "networkId" : { - "type" : "string" + "pageSize" : { + "type" : "integer", + "format" : "int32" + } + } +}; + defs["solidity_service.GetStorageSummaryInternalResponse"] = { + "type" : "object", + "properties" : { + "results" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/solidity_service.StorageSummaryResult" + } + } + } +}; + defs["solidity_service.GetTraceCallInternalRequest.Bundle"] = { + "type" : "object", + "properties" : { + "transactions" : { + "type" : "array", + "items" : { + "type" : "object", + "properties" : { } + } }, - "chainId" : { - "title" : "we should use chain_id in favor of network_id", + "blockOverride" : { + "$ref" : "#/components/schemas/solidity_service.BlockOverrides" + } + } +}; + defs["solidity_service.GetTraceCallInternalRequest.StateContext"] = { + "type" : "object", + "properties" : { + "blockNumber" : { "type" : "string" }, + "transactionIndex" : { + "type" : "integer", + "format" : "int32" + } + } +}; + defs["solidity_service.GetTraceCallInternalResponse"] = { + "type" : "object", + "properties" : { + "result" : { + "type" : "array", + "items" : { + "type" : "array", + "items" : { + "type" : "object", + "properties" : { } + } + } + }, + "outputs" : { + "type" : "array", + "items" : { + "type" : "array", + "items" : { + "type" : "object", + "properties" : { } + } + } + }, + "error" : { + "type" : "string" + } + } +}; + defs["solidity_service.GetTraceTransactionInternalResponse"] = { + "type" : "object", + "properties" : { + "result" : { + "type" : "string" + } + } +}; + defs["solidity_service.ListForksResponse"] = { + "type" : "object", + "properties" : { + "forks" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/solidity_service.Fork" + } + } + } +}; + defs["solidity_service.ManagedFork"] = { + "type" : "object", + "properties" : { "chainSpec" : { "$ref" : "#/components/schemas/solidity_service.ChainIdentifier" }, - "to" : { + "rpcEndpoint" : { "type" : "string" }, - "input" : { + "parentBlockNumber" : { + "type" : "integer", + "format" : "int32" + } + } +}; + defs["solidity_service.Metadata"] = { + "type" : "object", + "properties" : { + "useLiteralContent" : { + "type" : "boolean" + }, + "bytecodeHash" : { "type" : "string" }, - "blockNumber" : { - "title" : "blockNumber", + "appendCBOR" : { + "type" : "boolean" + } + } +}; + defs["solidity_service.NodeEnvironment"] = { + "type" : "object", + "properties" : { + "chainId" : { "type" : "string", - "description" : "Can be \"latest\"." - }, - "transactionIndex" : { - "type" : "string" + "format" : "uint64" }, - "from" : { + "baseFee" : { "type" : "string" }, - "gas" : { + "gasLimit" : { "type" : "string" }, "gasPrice" : { "type" : "string" - }, - "maxFeePerGas" : { - "type" : "string" - }, - "maxPriorityFeePerGas" : { - "type" : "string" - }, - "value" : { + } + } +}; + defs["solidity_service.NodeForkConfig"] = { + "type" : "object", + "properties" : { + "forkUrl" : { "type" : "string" }, - "accessList" : { - "type" : "array", - "items" : { - "$ref" : "#/components/schemas/evm.AccessListItem" - } - }, - "originTxHash" : { - "type" : "string" + "forkBlockNumber" : { + "type" : "string", + "format" : "uint64" }, - "label" : { - "type" : "string" + "forkRetryBackoff" : { + "type" : "string", + "format" : "uint64" + } + } +}; + defs["solidity_service.Optimizer"] = { + "title" : "partial", + "type" : "object", + "properties" : { + "enabled" : { + "type" : "boolean" }, - "stateOverrides" : { - "type" : "object", - "additionalProperties" : { - "$ref" : "#/components/schemas/solidity_service.StateOverride" - } + "runs" : { + "type" : "integer", + "format" : "int64" }, - "sourceOverrides" : { - "title" : "map from address to compilationID", - "type" : "object", - "additionalProperties" : { - "type" : "string" - } + "details" : { + "$ref" : "#/components/schemas/solidity_service.Optimizer.Details" + } + } +}; + defs["solidity_service.Optimizer.Details"] = { + "type" : "object", + "properties" : { + "peephole" : { + "type" : "boolean" }, - "blockOverride" : { - "$ref" : "#/components/schemas/solidity_service.BlockOverrides" + "jumpdestRemover" : { + "type" : "boolean" }, - "debugDeployment" : { - "title" : "for debugging user compilation deployment", + "yul" : { "type" : "boolean" }, - "result" : { - "$ref" : "#/components/schemas/solidity_service.Simulation.Result" + "yulDetails" : { + "$ref" : "#/components/schemas/solidity_service.Optimizer.Details.YulDetails" } } }; - defs["solidity_service.Simulation.Result"] = { + defs["solidity_service.Optimizer.Details.YulDetails"] = { "type" : "object", "properties" : { - "transaction" : { - "$ref" : "#/components/schemas/evm.Transaction" + "stackAllocation" : { + "type" : "boolean" }, - "transactionReceipt" : { - "$ref" : "#/components/schemas/evm.TransactionReceipt" + "optimizerSteps" : { + "type" : "string" } } }; - defs["solidity_service.SolidityAPIService.SimulateTransactionBody"] = { - "required" : [ "simulation" ], + defs["solidity_service.PreProcessCompilationInternalResponse"] = { "type" : "object", "properties" : { - "simulation" : { - "$ref" : "#/components/schemas/solidity_service.Simulation" - } - }, - "example" : { - "simulation" : { - "networkId" : "1", - "blockNumber" : "17415072", - "transactionIndex" : "97", - "from" : "0x5e8bb488e85ea732e17150862b1acfc213a7c13d", - "to" : "0xef1c6e67703c7bd7107eed8303fbe6ec2554bf6b", - "value" : "0x0", - "gas" : "0x31ae2", - "gasPrice" : "0xe59a1adbe", - "input" : "0x3593564c000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000647dffef0000000000000000000000000000000000000000000000000000000000000002080c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000003077b58d5d378391980000000000000000000000000000000000000000000000000000000032b2ced3e40e9d100000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000082646b22a3960da69ef7a778c16dd6fb85dd999000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000032b2ced3e40e9d1", - "stateOverrides" : { - "0x0811fd1808e14f0b93f0514313965a5f142c5539" : { - "balance" : "0x1111111111111111" - } - }, - "blockOverride" : { - "baseFee" : "0x0" + "preprocessedAddresses" : { + "type" : "array", + "items" : { + "type" : "string" } } } }; - defs["solidity_service.SolidityAPIService.SimulateTransactionBundleBody"] = { - "required" : [ "simulations" ], + defs["solidity_service.Settings"] = { + "title" : "partial", "type" : "object", "properties" : { - "simulations" : { + "remappings" : { "type" : "array", - "description" : "For blockNumber, transactionIndex, networkId, stateOverrides and blockOverrides fields, only the first simulation takes effect.", + "items" : { + "type" : "string" + } + }, + "optimizer" : { + "$ref" : "#/components/schemas/solidity_service.Optimizer" + }, + "evmVersion" : { + "type" : "string" + }, + "metadata" : { + "$ref" : "#/components/schemas/solidity_service.Metadata" + }, + "viaIR" : { + "type" : "boolean" + }, + "compilationTarget" : { + "type" : "object", + "additionalProperties" : { + "type" : "string" + } + } + } +}; + defs["solidity_service.SimulateTransactionBundleResponse"] = { + "type" : "object", + "properties" : { + "bundleId" : { + "type" : "string" + }, + "simulations" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/solidity_service.Simulation" + } + }, + "error" : { + "type" : "string" + } + } +}; + defs["solidity_service.SimulateTransactionResponse"] = { + "type" : "object", + "properties" : { + "simulation" : { + "$ref" : "#/components/schemas/solidity_service.Simulation" + } + } +}; + defs["solidity_service.Simulation"] = { + "required" : [ "blockNumber", "chainSpec", "from", "gas", "gasPrice", "input", "networkId", "to", "transactionIndex", "value" ], + "type" : "object", + "properties" : { + "id" : { + "type" : "string" + }, + "createAt" : { + "type" : "string" + }, + "bundleId" : { + "type" : "string" + }, + "networkId" : { + "type" : "string" + }, + "chainId" : { + "title" : "we should use chain_id in favor of network_id", + "type" : "string" + }, + "chainSpec" : { + "$ref" : "#/components/schemas/solidity_service.ChainIdentifier" + }, + "to" : { + "type" : "string" + }, + "input" : { + "type" : "string" + }, + "blockNumber" : { + "title" : "blockNumber", + "type" : "string", + "description" : "Can be \"latest\"." + }, + "transactionIndex" : { + "type" : "string" + }, + "from" : { + "type" : "string" + }, + "gas" : { + "type" : "string" + }, + "gasPrice" : { + "type" : "string" + }, + "maxFeePerGas" : { + "type" : "string" + }, + "maxPriorityFeePerGas" : { + "type" : "string" + }, + "value" : { + "type" : "string" + }, + "accessList" : { + "type" : "array", + "items" : { + "$ref" : "#/components/schemas/evm.AccessListItem" + } + }, + "originTxHash" : { + "type" : "string" + }, + "label" : { + "type" : "string" + }, + "stateOverrides" : { + "type" : "object", + "additionalProperties" : { + "$ref" : "#/components/schemas/solidity_service.StateOverride" + } + }, + "sourceOverrides" : { + "title" : "map from address to compilationID", + "type" : "object", + "additionalProperties" : { + "type" : "string" + } + }, + "blockOverride" : { + "$ref" : "#/components/schemas/solidity_service.BlockOverrides" + }, + "debugDeployment" : { + "title" : "for debugging user compilation deployment", + "type" : "boolean" + }, + "result" : { + "$ref" : "#/components/schemas/solidity_service.Simulation.Result" + } + } +}; + defs["solidity_service.Simulation.Result"] = { + "type" : "object", + "properties" : { + "transaction" : { + "$ref" : "#/components/schemas/evm.Transaction" + }, + "transactionReceipt" : { + "$ref" : "#/components/schemas/evm.TransactionReceipt" + } + } +}; + defs["solidity_service.SolidityAPIService.SimulateTransactionBody"] = { + "required" : [ "simulation" ], + "type" : "object", + "properties" : { + "simulation" : { + "$ref" : "#/components/schemas/solidity_service.Simulation" + } + }, + "example" : { + "simulation" : { + "networkId" : "1", + "blockNumber" : "17415072", + "transactionIndex" : "97", + "from" : "0x5e8bb488e85ea732e17150862b1acfc213a7c13d", + "to" : "0xef1c6e67703c7bd7107eed8303fbe6ec2554bf6b", + "value" : "0x0", + "gas" : "0x31ae2", + "gasPrice" : "0xe59a1adbe", + "input" : "0x3593564c000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000647dffef0000000000000000000000000000000000000000000000000000000000000002080c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000003077b58d5d378391980000000000000000000000000000000000000000000000000000000032b2ced3e40e9d100000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000082646b22a3960da69ef7a778c16dd6fb85dd999000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000032b2ced3e40e9d1", + "stateOverrides" : { + "0x0811fd1808e14f0b93f0514313965a5f142c5539" : { + "balance" : "0x1111111111111111" + } + }, + "blockOverride" : { + "baseFee" : "0x0" + } + } + } +}; + defs["solidity_service.SolidityAPIService.SimulateTransactionBundleBody"] = { + "required" : [ "simulations" ], + "type" : "object", + "properties" : { + "simulations" : { + "type" : "array", + "description" : "For blockNumber, transactionIndex, networkId, stateOverrides and blockOverrides fields, only the first simulation takes effect.", "items" : { "$ref" : "#/components/schemas/solidity_service.Simulation" } @@ -5665,6 +6085,13 @@
  • simulateTransactionBundle
  • + +
  • + getProcessorStatus +
  • +
  • + getProjectVersions +
  • createFork @@ -20381,128 +20808,1246 @@

    Parameters

    - includeOut - + includeOut + + + +
    +
    +
    + + Boolean + + +
    +
    +
    + + + + startBlock + + + +
    +
    +
    + + String + + + (int64) + + +
    +
    +
    + + + + endBlock + + + +
    +
    +
    + + String + + + (int64) + + +
    +
    +
    + + + + startTimestamp + + + +
    +
    +
    + + String + + + (int64) + + +
    +
    +
    + + + + endTimestamp + + + +
    +
    +
    + + String + + + (int64) + + +
    +
    +
    + + + + transactionStatus + + + +
    +
    +
    + + array[Integer] + + + (int32) + + +
    +
    +
    + + + + methodSignature + + + +
    +
    +
    + + String + + +
    +
    +
    + + + + limit + + + +
    +
    +
    + + Integer + + + (int32) + + +
    +
    +
    + + + + pageToken + + + +
    +
    +
    + + byte[] + + + (byte) + + +
    +
    +
    + + + + + +

    Responses

    +

    +

    + + + + + + +
    +
    +
    + +
    + +
    +
    + + +
    +
    +
    +
    +

    simulateTransaction

    +

    Run simulation

    +
    +
    +
    +

    +

    Create a new transaction simulation. The simulation body should be included in the request body. +Your simulations will be saved, and a unique ID for each simulation is included in the response. It will be useful for fetching simulation details.

    +

    +
    +
    /api/v1/solidity/{owner}/{slug}/{chainId}/simulation
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X POST \
    +-H "api-key: [[apiKey]]" \
    + \
    + -H "Accept: application/json" \
    + -H "Content-Type: application/json" \
    + "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chainId}/simulation" \
    + -d ''
    +
    +
    +
    +
    import org.openapitools.client.*;
    +import org.openapitools.client.auth.*;
    +import org.openapitools.client.model.*;
    +import org.openapitools.client.api.DebugAndSimulationApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DebugAndSimulationApiExample {
    +    public static void main(String[] args) {
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: ApiKeyHeaderAuth
    +        ApiKeyAuth ApiKeyHeaderAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeaderAuth");
    +        ApiKeyHeaderAuth.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //ApiKeyHeaderAuth.setApiKeyPrefix("Token");
    +
    +        // Configure API key authorization: ApiKeyQueryAuth
    +        ApiKeyAuth ApiKeyQueryAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQueryAuth");
    +        ApiKeyQueryAuth.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //ApiKeyQueryAuth.setApiKeyPrefix("Token");
    +
    +        // Create an instance of the API class
    +        DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
    +        String owner = owner_example; // String | 
    +        String slug = slug_example; // String | 
    +        String chainId = chainId_example; // String | 
    +        SolidityServiceSolidityAPIServiceSimulateTransactionBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody | 
    +
    +        try {
    +            solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransaction(owner, slug, chainId, body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DebugAndSimulationApi#simulateTransaction");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    +
    + +
    +
    import 'package:openapi/api.dart';
    +
    +final api_instance = DefaultApi();
    +
    +final String owner = new String(); // String | 
    +final String slug = new String(); // String | 
    +final String chainId = new String(); // String | 
    +final SolidityServiceSolidityAPIServiceSimulateTransactionBody body = new SolidityServiceSolidityAPIServiceSimulateTransactionBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBody | 
    +
    +try {
    +    final result = await api_instance.simulateTransaction(owner, slug, chainId, body);
    +    print(result);
    +} catch (e) {
    +    print('Exception when calling DefaultApi->simulateTransaction: $e\n');
    +}
    +
    +
    +
    + +
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
    +
    +public class DebugAndSimulationApiExample {
    +    public static void main(String[] args) {
    +        DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
    +        String owner = owner_example; // String | 
    +        String slug = slug_example; // String | 
    +        String chainId = chainId_example; // String | 
    +        SolidityServiceSolidityAPIServiceSimulateTransactionBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody | 
    +
    +        try {
    +            solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransaction(owner, slug, chainId, body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DebugAndSimulationApi#simulateTransaction");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Configuration *apiConfig = [Configuration sharedConfig];
    +
    +// Configure API key authorization: (authentication scheme: ApiKeyHeaderAuth)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
    +
    +// Configure API key authorization: (authentication scheme: ApiKeyQueryAuth)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
    +
    +
    +// Create an instance of the API class
    +DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init];
    +String *owner = owner_example; //  (default to null)
    +String *slug = slug_example; //  (default to null)
    +String *chainId = chainId_example; //  (default to null)
    +SolidityServiceSolidityAPIServiceSimulateTransactionBody *body = ; // 
    +
    +// Run simulation
    +[apiInstance simulateTransactionWith:owner
    +    slug:slug
    +    chainId:chainId
    +    body:body
    +              completionHandler: ^(solidity_service.SimulateTransactionResponse output, NSError* error) {
    +    if (output) {
    +        NSLog(@"%@", output);
    +    }
    +    if (error) {
    +        NSLog(@"Error: %@", error);
    +    }
    +}];
    +
    +
    + +
    +
    var SentioApi = require('sentio_api');
    +var defaultClient = SentioApi.ApiClient.instance;
    +
    +// Configure API key authorization: ApiKeyHeaderAuth
    +var ApiKeyHeaderAuth = defaultClient.authentications['ApiKeyHeaderAuth'];
    +ApiKeyHeaderAuth.apiKey = "YOUR API KEY";
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//ApiKeyHeaderAuth.apiKeyPrefix['api-key'] = "Token";
    +
    +// Configure API key authorization: ApiKeyQueryAuth
    +var ApiKeyQueryAuth = defaultClient.authentications['ApiKeyQueryAuth'];
    +ApiKeyQueryAuth.apiKey = "YOUR API KEY";
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//ApiKeyQueryAuth.apiKeyPrefix['api-key'] = "Token";
    +
    +// Create an instance of the API class
    +var api = new SentioApi.DebugAndSimulationApi()
    +var owner = owner_example; // {String} 
    +var slug = slug_example; // {String} 
    +var chainId = chainId_example; // {String} 
    +var body = ; // {SolidityServiceSolidityAPIServiceSimulateTransactionBody} 
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.simulateTransaction(owner, slug, chainId, body, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using Org.OpenAPITools.Api;
    +using Org.OpenAPITools.Client;
    +using Org.OpenAPITools.Model;
    +
    +namespace Example
    +{
    +    public class simulateTransactionExample
    +    {
    +        public void main()
    +        {
    +            // Configure API key authorization: ApiKeyHeaderAuth
    +            Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
    +            // Configure API key authorization: ApiKeyQueryAuth
    +            Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
    +
    +            // Create an instance of the API class
    +            var apiInstance = new DebugAndSimulationApi();
    +            var owner = owner_example;  // String |  (default to null)
    +            var slug = slug_example;  // String |  (default to null)
    +            var chainId = chainId_example;  // String |  (default to null)
    +            var body = new SolidityServiceSolidityAPIServiceSimulateTransactionBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBody | 
    +
    +            try {
    +                // Run simulation
    +                solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransaction(owner, slug, chainId, body);
    +                Debug.WriteLine(result);
    +            } catch (Exception e) {
    +                Debug.Print("Exception when calling DebugAndSimulationApi.simulateTransaction: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +// Configure API key authorization: ApiKeyHeaderAuth
    +OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
    +
    +// Configure API key authorization: ApiKeyQueryAuth
    +OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
    +
    +// Create an instance of the API class
    +$api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi();
    +$owner = owner_example; // String | 
    +$slug = slug_example; // String | 
    +$chainId = chainId_example; // String | 
    +$body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody | 
    +
    +try {
    +    $result = $api_instance->simulateTransaction($owner, $slug, $chainId, $body);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DebugAndSimulationApi->simulateTransaction: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use WWW::OPenAPIClient::Configuration;
    +use WWW::OPenAPIClient::DebugAndSimulationApi;
    +
    +# Configure API key authorization: ApiKeyHeaderAuth
    +$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
    +
    +# Configure API key authorization: ApiKeyQueryAuth
    +$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY';
    +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer";
    +
    +# Create an instance of the API class
    +my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new();
    +my $owner = owner_example; # String | 
    +my $slug = slug_example; # String | 
    +my $chainId = chainId_example; # String | 
    +my $body = WWW::OPenAPIClient::Object::SolidityServiceSolidityAPIServiceSimulateTransactionBody->new(); # SolidityServiceSolidityAPIServiceSimulateTransactionBody | 
    +
    +eval {
    +    my $result = $api_instance->simulateTransaction(owner => $owner, slug => $slug, chainId => $chainId, body => $body);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling DebugAndSimulationApi->simulateTransaction: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import openapi_client
    +from openapi_client.rest import ApiException
    +from pprint import pprint
    +
    +# Configure API key authorization: ApiKeyHeaderAuth
    +openapi_client.configuration.api_key['api-key'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer'
    +
    +# Configure API key authorization: ApiKeyQueryAuth
    +openapi_client.configuration.api_key['api-key'] = 'YOUR_API_KEY'
    +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer'
    +
    +# Create an instance of the API class
    +api_instance = openapi_client.DebugAndSimulationApi()
    +owner = owner_example # String |  (default to null)
    +slug = slug_example # String |  (default to null)
    +chainId = chainId_example # String |  (default to null)
    +body =  # SolidityServiceSolidityAPIServiceSimulateTransactionBody | 
    +
    +try:
    +    # Run simulation
    +    api_response = api_instance.simulate_transaction(owner, slug, chainId, body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling DebugAndSimulationApi->simulateTransaction: %s\n" % e)
    +
    + +
    +
    extern crate DebugAndSimulationApi;
    +
    +pub fn main() {
    +    let owner = owner_example; // String
    +    let slug = slug_example; // String
    +    let chainId = chainId_example; // String
    +    let body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody
    +
    +    let mut context = DebugAndSimulationApi::Context::default();
    +    let result = client.simulateTransaction(owner, slug, chainId, body, &context).wait();
    +
    +    println!("{:?}", result);
    +}
    +
    +
    +
    + +

    Scopes

    + + +
    + +

    Parameters

    + +
    Path parameters
    + + + + + + + + + + + + + + + + + +
    NameDescription
    owner* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    slug* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    chainId* + + +
    +
    +
    + + String + + +
    +
    + Required +
    +
    +
    +
    + + +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * +

    + +
    +
    + + + +

    Responses

    +

    +

    + + + + + + +
    +
    +
    + +
    + +
    +
    +
    +
    +
    +
    +
    +
    +

    simulateTransactionBundle

    +

    Run bundle simulation

    +
    +
    +
    +

    +

    You could also create bundle simulations so that one transaction could be executed one after another. For `blockNumber` `transactionIndex` `networkId` `stateOverrides` and `blockOverrides` fields, only the first simulation takes effect.

    +

    +
    +
    /api/v1/solidity/{owner}/{slug}/{chainId}/simulation_bundle
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X POST \
    +-H "api-key: [[apiKey]]" \
    + \
    + -H "Accept: application/json" \
    + -H "Content-Type: application/json" \
    + "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chainId}/simulation_bundle" \
    + -d ''
    +
    +
    +
    +
    import org.openapitools.client.*;
    +import org.openapitools.client.auth.*;
    +import org.openapitools.client.model.*;
    +import org.openapitools.client.api.DebugAndSimulationApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DebugAndSimulationApiExample {
    +    public static void main(String[] args) {
    +        ApiClient defaultClient = Configuration.getDefaultApiClient();
    +
    +        // Configure API key authorization: ApiKeyHeaderAuth
    +        ApiKeyAuth ApiKeyHeaderAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyHeaderAuth");
    +        ApiKeyHeaderAuth.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //ApiKeyHeaderAuth.setApiKeyPrefix("Token");
    +
    +        // Configure API key authorization: ApiKeyQueryAuth
    +        ApiKeyAuth ApiKeyQueryAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyQueryAuth");
    +        ApiKeyQueryAuth.setApiKey("YOUR API KEY");
    +        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +        //ApiKeyQueryAuth.setApiKeyPrefix("Token");
    +
    +        // Create an instance of the API class
    +        DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
    +        String owner = owner_example; // String | 
    +        String slug = slug_example; // String | 
    +        String chainId = chainId_example; // String | 
    +        SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | 
    +
    +        try {
    +            solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle(owner, slug, chainId, body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DebugAndSimulationApi#simulateTransactionBundle");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    +
    + +
    +
    import 'package:openapi/api.dart';
    +
    +final api_instance = DefaultApi();
    +
    +final String owner = new String(); // String | 
    +final String slug = new String(); // String | 
    +final String chainId = new String(); // String | 
    +final SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody body = new SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | 
    +
    +try {
    +    final result = await api_instance.simulateTransactionBundle(owner, slug, chainId, body);
    +    print(result);
    +} catch (e) {
    +    print('Exception when calling DefaultApi->simulateTransactionBundle: $e\n');
    +}
    +
    +
    +
    + +
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
    +
    +public class DebugAndSimulationApiExample {
    +    public static void main(String[] args) {
    +        DebugAndSimulationApi apiInstance = new DebugAndSimulationApi();
    +        String owner = owner_example; // String | 
    +        String slug = slug_example; // String | 
    +        String chainId = chainId_example; // String | 
    +        SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | 
    +
    +        try {
    +            solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle(owner, slug, chainId, body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DebugAndSimulationApi#simulateTransactionBundle");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Configuration *apiConfig = [Configuration sharedConfig];
    +
    +// Configure API key authorization: (authentication scheme: ApiKeyHeaderAuth)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
    +
    +// Configure API key authorization: (authentication scheme: ApiKeyQueryAuth)
    +[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api-key"];
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api-key"];
    +
    +
    +// Create an instance of the API class
    +DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init];
    +String *owner = owner_example; //  (default to null)
    +String *slug = slug_example; //  (default to null)
    +String *chainId = chainId_example; //  (default to null)
    +SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody *body = ; // 
    +
    +// Run bundle simulation
    +[apiInstance simulateTransactionBundleWith:owner
    +    slug:slug
    +    chainId:chainId
    +    body:body
    +              completionHandler: ^(solidity_service.SimulateTransactionBundleResponse output, NSError* error) {
    +    if (output) {
    +        NSLog(@"%@", output);
    +    }
    +    if (error) {
    +        NSLog(@"Error: %@", error);
    +    }
    +}];
    +
    +
    + +
    +
    var SentioApi = require('sentio_api');
    +var defaultClient = SentioApi.ApiClient.instance;
    +
    +// Configure API key authorization: ApiKeyHeaderAuth
    +var ApiKeyHeaderAuth = defaultClient.authentications['ApiKeyHeaderAuth'];
    +ApiKeyHeaderAuth.apiKey = "YOUR API KEY";
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//ApiKeyHeaderAuth.apiKeyPrefix['api-key'] = "Token";
    +
    +// Configure API key authorization: ApiKeyQueryAuth
    +var ApiKeyQueryAuth = defaultClient.authentications['ApiKeyQueryAuth'];
    +ApiKeyQueryAuth.apiKey = "YOUR API KEY";
    +// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    +//ApiKeyQueryAuth.apiKeyPrefix['api-key'] = "Token";
    +
    +// Create an instance of the API class
    +var api = new SentioApi.DebugAndSimulationApi()
    +var owner = owner_example; // {String} 
    +var slug = slug_example; // {String} 
    +var chainId = chainId_example; // {String} 
    +var body = ; // {SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody} 
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.simulateTransactionBundle(owner, slug, chainId, body, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using Org.OpenAPITools.Api;
    +using Org.OpenAPITools.Client;
    +using Org.OpenAPITools.Model;
    +
    +namespace Example
    +{
    +    public class simulateTransactionBundleExample
    +    {
    +        public void main()
    +        {
    +            // Configure API key authorization: ApiKeyHeaderAuth
    +            Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
    +            // Configure API key authorization: ApiKeyQueryAuth
    +            Configuration.Default.ApiKey.Add("api-key", "YOUR_API_KEY");
    +            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +            // Configuration.Default.ApiKeyPrefix.Add("api-key", "Bearer");
    +
    +            // Create an instance of the API class
    +            var apiInstance = new DebugAndSimulationApi();
    +            var owner = owner_example;  // String |  (default to null)
    +            var slug = slug_example;  // String |  (default to null)
    +            var chainId = chainId_example;  // String |  (default to null)
    +            var body = new SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | 
    +
    +            try {
    +                // Run bundle simulation
    +                solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle(owner, slug, chainId, body);
    +                Debug.WriteLine(result);
    +            } catch (Exception e) {
    +                Debug.Print("Exception when calling DebugAndSimulationApi.simulateTransactionBundle: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +// Configure API key authorization: ApiKeyHeaderAuth
    +OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
    +
    +// Configure API key authorization: ApiKeyQueryAuth
    +OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', 'YOUR_API_KEY');
    +// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    +// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api-key', 'Bearer');
    +
    +// Create an instance of the API class
    +$api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi();
    +$owner = owner_example; // String | 
    +$slug = slug_example; // String | 
    +$chainId = chainId_example; // String | 
    +$body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | 
    +
    +try {
    +    $result = $api_instance->simulateTransactionBundle($owner, $slug, $chainId, $body);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DebugAndSimulationApi->simulateTransactionBundle: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    +
    +
    use Data::Dumper;
    +use WWW::OPenAPIClient::Configuration;
    +use WWW::OPenAPIClient::DebugAndSimulationApi;
     
    -    
    -
    -
    - - Boolean - +# Configure API key authorization: ApiKeyHeaderAuth +$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY'; +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed +#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer"; -
    -
    -
    - - +# Configure API key authorization: ApiKeyQueryAuth +$WWW::OPenAPIClient::Configuration::api_key->{'api-key'} = 'YOUR_API_KEY'; +# uncomment below to setup prefix (e.g. Bearer) for API key, if needed +#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api-key'} = "Bearer"; - startBlock - +# Create an instance of the API class +my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new(); +my $owner = owner_example; # String | +my $slug = slug_example; # String | +my $chainId = chainId_example; # String | +my $body = WWW::OPenAPIClient::Object::SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody->new(); # SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | +eval { + my $result = $api_instance->simulateTransactionBundle(owner => $owner, slug => $slug, chainId => $chainId, body => $body); + print Dumper($result); +}; +if ($@) { + warn "Exception when calling DebugAndSimulationApi->simulateTransactionBundle: $@\n"; +}
    +
    -
    -
    -
    - - String - - - (int64) - +
    +
    from __future__ import print_statement
    +import time
    +import openapi_client
    +from openapi_client.rest import ApiException
    +from pprint import pprint
     
    -            
    -
    -
    - - +# Configure API key authorization: ApiKeyHeaderAuth +openapi_client.configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer' - endBlock - +# Configure API key authorization: ApiKeyQueryAuth +openapi_client.configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# openapi_client.configuration.api_key_prefix['api-key'] = 'Bearer' +# Create an instance of the API class +api_instance = openapi_client.DebugAndSimulationApi() +owner = owner_example # String | (default to null) +slug = slug_example # String | (default to null) +chainId = chainId_example # String | (default to null) +body = # SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | -
    -
    -
    - - String - - - (int64) - +try: + # Run bundle simulation + api_response = api_instance.simulate_transaction_bundle(owner, slug, chainId, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DebugAndSimulationApi->simulateTransactionBundle: %s\n" % e) +
    -
    -
    -
    - - +
    +
    extern crate DebugAndSimulationApi;
     
    -                                startTimestamp
    -
    +pub fn main() {
    +    let owner = owner_example; // String
    +    let slug = slug_example; // String
    +    let chainId = chainId_example; // String
    +    let body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody
     
    +    let mut context = DebugAndSimulationApi::Context::default();
    +    let result = client.simulateTransactionBundle(owner, slug, chainId, body, &context).wait();
     
    -    
    -
    -
    - - String - - - (int64) - + println!("{:?}", result); +} +
    +
    +
    -
    - - - - +

    Scopes

    + + +
    - endTimestamp +

    Parameters

    + +
    Path parameters
    + + + + + + - + - + - -
    NameDescription
    owner* -
    +
    String - - (int64) -
    +
    + Required +
    transactionStatus
    slug* -
    +
    - array[Integer] + String - - (int32) -
    +
    + Required +
    methodSignature
    chainId* -
    +
    @@ -20510,71 +22055,86 @@

    Parameters

    +
    + Required +
    limit - - -
    -
    -
    - - Integer - - - (int32) - +
    - - - - - - pageToken +
    Body parameters
    + + + + + +
    NameDescription
    body * +

    + +
    -

    Responses

    -

    -

    + + +

    Responses

    +

    +

    -