Skip to content

Hardware compatibility of a device (by node_id) or of an ad-hoc profile

POST
/v1/projects/{project_id}/compatibility
curl --request POST \
--url https://testnet-rpc.necter.network/v1/projects/example/compatibility \
--header 'Content-Type: application/json' \
--data '{ "node_id": "example", "class": "phone", "engine": "native", "hardware": { "cpu_model": "example", "cpu_cores": 1, "cpu_threads": 1, "ram_mb": 1, "storage_free_mb": 1, "gpu": { "vendor": "example", "model": "example", "vram_mb": 1 }, "network": "wifi", "battery": true, "os": "example", "arch": "example" }, "benchmark_score": 1 }'
project_id
required
string
/^0x[0-9a-f]{64}$/
Media typeapplication/json
object
node_id
string
/^ndsr-[0-9a-f]{16}$/
class
string
Allowed values: phone tablet laptop desktop server
engine
string
Allowed values: native pulley64 pulley32
hardware
object
cpu_model
string
cpu_cores
integer
cpu_threads
integer
ram_mb
integer
storage_free_mb
integer
gpu
One of:
null
network
string
Allowed values: wifi ethernet cellular none
battery
boolean
os
string
arch
string
benchmark_score
integer

Result

Media typeapplication/json
object
compatible
required
boolean
tier
required
string
Allowed values: compatible marginal incompatible
match_bp
required
integer
missing
required
Array<string>
warnings
required
Array<string>
performance
string
Allowed values: excellent good fair poor
est_monthly_reward

Token base units

string
/^(0|[1-9][0-9]{0,77})$/

Example

{
"tier": "compatible",
"performance": "excellent"
}

Malformed request (bad_request, invalid_field)

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"
}

not_found

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"
}