# Call

Call endpoints

## POST /call

>

```json
{"openapi":"3.0.3","info":{"title":"Stacks Mesh API","version":"0.4.3"},"tags":[{"name":"Call","description":"Call endpoints"}],"servers":[{"url":"http://localhost:3000","description":"Local"}],"paths":{"/call":{"post":{"tags":["Call"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","required":["network_identifier","method","parameters"],"properties":{"network_identifier":{"type":"object","required":["blockchain","network"],"properties":{"blockchain":{"type":"string","enum":["stacks"]},"network":{"anyOf":[{"type":"string","enum":["mainnet"]},{"type":"string","enum":["testnet"]}]}}},"method":{"type":"string","enum":["contract_call_read_only"]},"parameters":{"type":"object","required":["deployer_address","contract_name","function_name","sender","arguments"],"properties":{"deployer_address":{"type":"string"},"contract_name":{"type":"string"},"function_name":{"type":"string"},"sender":{"type":"string"},"sponsor":{"type":"string"},"arguments":{"type":"array","items":{"type":"string"}}}}}},{"type":"object","required":["network_identifier","method","parameters"],"properties":{"network_identifier":{"type":"object","required":["blockchain","network"],"properties":{"blockchain":{"type":"string","enum":["stacks"]},"network":{"anyOf":[{"type":"string","enum":["mainnet"]},{"type":"string","enum":["testnet"]}]}}},"method":{"type":"string","enum":["contract_get_interface"]},"parameters":{"type":"object","required":["deployer_address","contract_name"],"properties":{"deployer_address":{"type":"string"},"contract_name":{"type":"string"}}}}},{"type":"object","required":["network_identifier","method","parameters"],"properties":{"network_identifier":{"type":"object","required":["blockchain","network"],"properties":{"blockchain":{"type":"string","enum":["stacks"]},"network":{"anyOf":[{"type":"string","enum":["mainnet"]},{"type":"string","enum":["testnet"]}]}}},"method":{"type":"string","enum":["contract_get_source"]},"parameters":{"type":"object","required":["deployer_address","contract_name"],"properties":{"deployer_address":{"type":"string"},"contract_name":{"type":"string"}}}}},{"type":"object","required":["network_identifier","method","parameters"],"properties":{"network_identifier":{"type":"object","required":["blockchain","network"],"properties":{"blockchain":{"type":"string","enum":["stacks"]},"network":{"anyOf":[{"type":"string","enum":["mainnet"]},{"type":"string","enum":["testnet"]}]}}},"method":{"type":"string","enum":["contract_get_constant_val"]},"parameters":{"type":"object","required":["deployer_address","contract_name","constant_name"],"properties":{"deployer_address":{"type":"string"},"contract_name":{"type":"string"},"constant_name":{"type":"string"}}}}},{"type":"object","required":["network_identifier","method","parameters"],"properties":{"network_identifier":{"type":"object","required":["blockchain","network"],"properties":{"blockchain":{"type":"string","enum":["stacks"]},"network":{"anyOf":[{"type":"string","enum":["mainnet"]},{"type":"string","enum":["testnet"]}]}}},"method":{"type":"string","enum":["contract_get_data_var"]},"parameters":{"type":"object","required":["deployer_address","contract_name","var_name"],"properties":{"deployer_address":{"type":"string"},"contract_name":{"type":"string"},"var_name":{"type":"string"}}}}},{"type":"object","required":["network_identifier","method","parameters"],"properties":{"network_identifier":{"type":"object","required":["blockchain","network"],"properties":{"blockchain":{"type":"string","enum":["stacks"]},"network":{"anyOf":[{"type":"string","enum":["mainnet"]},{"type":"string","enum":["testnet"]}]}}},"method":{"type":"string","enum":["contract_get_map_entry"]},"parameters":{"type":"object","required":["deployer_address","contract_name","map_name","key"],"properties":{"deployer_address":{"type":"string"},"contract_name":{"type":"string"},"map_name":{"type":"string"},"key":{"type":"string"}}}}}]}}}},"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"anyOf":[{"type":"object","required":["idempotent","result"],"properties":{"idempotent":{"type":"boolean"},"result":{"type":"object","required":["hex","repr","type"],"properties":{"hex":{"type":"string"},"repr":{"type":"string"},"type":{"type":"string"}}}}},{"type":"object","required":["idempotent","result"],"properties":{"idempotent":{"type":"boolean"},"result":{"type":"object","additionalProperties":{}}}},{"type":"object","required":["idempotent","result"],"properties":{"idempotent":{"type":"boolean"},"result":{"type":"object","required":["source","publish_height"],"properties":{"source":{"type":"string"},"publish_height":{"type":"integer"},"proof":{"type":"string"}}}}},{"type":"object","required":["idempotent","result"],"properties":{"idempotent":{"type":"boolean"},"result":{"type":"object","required":["hex","repr","type"],"properties":{"hex":{"type":"string"},"repr":{"type":"string"},"type":{"type":"string"}}}}},{"type":"object","required":["idempotent","result"],"properties":{"idempotent":{"type":"boolean"},"result":{"type":"object","required":["okay","result"],"properties":{"okay":{"type":"boolean","enum":[true]},"result":{"type":"object","required":["data"],"properties":{"data":{"type":"string"},"proof":{"type":"string"}}}}}}},{"type":"object","required":["idempotent","result"],"properties":{"idempotent":{"type":"boolean"},"result":{"type":"object","required":["okay","result"],"properties":{"okay":{"type":"boolean","enum":[true]},"result":{"type":"object","required":["data"],"properties":{"data":{"type":"string"},"proof":{"type":"string"}}}}}}}]}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","required":["code","message","retriable"],"properties":{"code":{"type":"number"},"message":{"type":"string"},"description":{"type":"string"},"retriable":{"type":"boolean"},"details":{"type":"object","additionalProperties":{}}}}}}}}}}}}
```
