Get trait implementation details
RPC node
Determine whether or not a specified trait is implemented (either explicitly or implicitly) within a given contract.
Path Parameters
contract_addressstring
Stacks address
contract_namestring
Contract name
trait_contract_addressstring
Trait Stacks address
trait_contract_namestring
Trait contract name
trait_namestring
Trait name
Query Parameters
tip?string
The Stacks chain tip to query from. If tip == "latest", the query will be run from the latest known tip (includes unconfirmed state). If the tip is left unspecified, the stacks chain tip will be selected (only includes confirmed state).
Response Body
curl -X GET "http://localhost:20443/v2/traits/string/string/string/string/string?tip=string"
fetch("http://localhost:20443/v2/traits/string/string/string/string/string?tip=string")
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "http://localhost:20443/v2/traits/string/string/string/string/string?tip=string"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import requests
url = "http://localhost:20443/v2/traits/string/string/string/string/string?tip=string"
response = requests.request("GET", url)
print(response.text)
{
"is_implemented": true
}