Start devnet
Start a development network (devnet).
Path Parameters
apiKeystring
Hiro API key
projectNamestring
Project name
filefile
JSON file containing the devnet plan. The file can be created using clarinet devnet package
Format
"binary"
Response Body
curl -X PUT "https://api.platform.hiro.so/v1/ext/0941f307fd270ace19a5bfed67fbd3bc/devnet/clarity-bitcoin-197s" \
-F file="string"
const body = new FormData();
body.set(file, "string")
fetch("https://api.platform.hiro.so/v1/ext/0941f307fd270ace19a5bfed67fbd3bc/devnet/clarity-bitcoin-197s", {
body
})
package main
import (
"fmt"
"net/http"
"io/ioutil"
"mime/multipart"
"bytes"
)
func main() {
url := "https://api.platform.hiro.so/v1/ext/0941f307fd270ace19a5bfed67fbd3bc/devnet/clarity-bitcoin-197s"
body := new(bytes.Buffer)
mp := multipart.NewWriter(payload)
mp.WriteField("file", `string`)
req, _ := http.NewRequest("PUT", url, body)
req.Header.Add("Content-Type", "multipart/form-data")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import requests
url = "https://api.platform.hiro.so/v1/ext/0941f307fd270ace19a5bfed67fbd3bc/devnet/clarity-bitcoin-197s"
body = {
"file": "string"
}
response = requests.request("PUT", url, data = body, headers = {
"Content-Type": "multipart/form-data"
})
print(response.text)
{}