Submit Solver Proposals
๐ ๏ธ Build
๐ฐ Tokenomics
๐ค IntentKit
๐ API Reference
Submit Solver Proposals
Processes and records a batch of proposals from solver nodes, validating their configurations and requirements.
POST
/
proposals
/
solver
curl --request POST \
--url https://api.testnet.crestal.xyz/v1/proposals/solver \
--header 'Content-Type: application/json' \
--data '{
"user_address": "<string>",
"signature": "<string>",
"siwe_msg": "<string>",
"privy_token": "<string>"
}'
{
"proposals": [
{
"request_id": "<string>",
"solver_address": "<string>",
"solver_reputation": 123,
"fit": 123,
"rank": 123,
"da": {
"init_cost": 123,
"maintenance_cost": 123,
"pay_period": 123,
"accept_currency": "<string>",
"cost": 100,
"fit": 123,
"throughput": 100,
"sla": 100,
"error_rate": 0.1,
"rank": 123,
"extra_attribute": {}
},
"indexing": {
"rank": 123,
"fit": 123
},
"compute": {
"rank": 123,
"fit": 123
},
"storage": {
"rank": 123,
"fit": 123
}
}
],
"solver_address": "<string>",
"solver_reputation": 123,
"request_id": "<string>"
}
Body
application/json
Solver proposal data package signed with SIWE message format
Authentication request parameters
Response
200
application/json
Successfully processed and recorded solver proposals
Aggregated proposals from multiple solvers
curl --request POST \
--url https://api.testnet.crestal.xyz/v1/proposals/solver \
--header 'Content-Type: application/json' \
--data '{
"user_address": "<string>",
"signature": "<string>",
"siwe_msg": "<string>",
"privy_token": "<string>"
}'
{
"proposals": [
{
"request_id": "<string>",
"solver_address": "<string>",
"solver_reputation": 123,
"fit": 123,
"rank": 123,
"da": {
"init_cost": 123,
"maintenance_cost": 123,
"pay_period": 123,
"accept_currency": "<string>",
"cost": 100,
"fit": 123,
"throughput": 100,
"sla": 100,
"error_rate": 0.1,
"rank": 123,
"extra_attribute": {}
},
"indexing": {
"rank": 123,
"fit": 123
},
"compute": {
"rank": 123,
"fit": 123
},
"storage": {
"rank": 123,
"fit": 123
}
}
],
"solver_address": "<string>",
"solver_reputation": 123,
"request_id": "<string>"
}