This is a work in progress and subject to change.
Authenticates the user and provides a token valid for 24 hours which can be used to make calls to the provider API.
https://api.cc.nodepilot.tech/v1/providers/{{PROVIDER_ID}}/unlock
POST
{
key: string // user's API key
}
{
token: string // token that can be used to make authenticated provider API calls
user: string // provider id
expiration: string // expiration of token in ISO format
}
Gets general relay counts for the provider over a time period.
https://api.cc.nodepilot.tech/v1/providers/{{PROVIDER_ID}}/general-relay-counts
POST
x-api-key=[token]
{
startTime?: string // start time of time period range in ISO format
endTime?: string // end time of time period range in ISO format
}
{
chain: string // chain id
total: string // total relays
startTime: string // start time of time period range in ISO format
endTime: string // end time of time period range in ISO format
byRegion: {[region: string]: string} // relay counts by region
}[]
Gets provider payment receipts over a time period.
https://api.cc.nodepilot.tech/v1/providers/{{PROVIDER_ID}}/payment-receipts
POST
x-api-key=[token]
{
startTime?: string // start time of time period range in ISO format
endTime?: string // end time of time period range in ISO format
}
{
id: string // id of payment receipt
date: string // date of payment in ISO format
total: string // total provider rewards in uPOKT
txid: string // TXID of POKT payment (if payment tx has been submitted)
relays: {
chain: string // chain id
relays: string // number of relays
percent: number // percentage used to calculate provider reward
reward: string // calculated provider reward in uPOKT
breakdown: {[region: string]: string} // relay counts by region
}[]
}[]