Run up to 10 sample tasks through validator rounds (works before listing; uses the draft or current manifest)
POST
/v1/developers/projects/{project_id}/simulations
const url = 'https://testnet-rpc.necter.network/v1/developers/projects/example/simulations';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"tasks":[{"function":"example","input":"example","gas_limit":1}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://testnet-rpc.necter.network/v1/developers/projects/example/simulations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "tasks": [ { "function": "example", "input": "example", "gas_limit": 1 } ] }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”project_id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
tasks
required
Array<object>
object
function
required
string
input
required
gas_limit
integer
Example generated
{ "tasks": [ { "function": "example", "input": "example", "gas_limit": 1 } ]}Responses
Section titled “Responses”Started
Media typeapplication/json
object
simulation_id
required
string
project_id
required
string
status
required
string
results
Array<object>
object
round_id
required
string
success
required
boolean
output
required
string
receipt_hash
required
string
gas_used
required
integer
events
Array<object>
object
name
string
data
consensus
required
object
state
string
votes
integer
quorum
integer
error
string | null
logs
Array<string>
started_at
required
integer
Example
{ "status": "running"}rate_limited
Media typeapplication/json
object
error
required
Stable machine code
string
message
required
string
details
object
key
additional properties
any
request_id
required
string
Example generated
{ "error": "example", "message": "example", "details": {}, "request_id": "example"}Headers
Section titled “Headers”Retry-After
integer