Default package
Message
RpcRequestPaymentResponse
Message
RpcWaitForPaymentsRequest
Message
RpcWaitForPaymentsResponse
Message
RpcSendSignedEventRequest
Message
RpcSubscribeToEventsRequest
Message
RpcSubscribeToEventsResponse
Message
RpcSendSignedEventResponse
Message
RpcUnsubscribeFromEventsRequest
Message
RpcUnsubscribeFromEventsResponse
Message
RpcAnnounceNodeRequest
Message
RpcAnnounceNodeResponse
Message
RpcAnnounceTemplateRequest
Message
RpcAnnounceTemplateResponse
Message
RpcDiskDeleteFileRequest
Message
RpcDiskDeleteFileResponse
Message
RpcDiskListFilesRequest
Message
RpcDiskListFilesResponse
Message
RpcDiskReadFileRequest
Message
RpcDiskReadFileResponse
Message
RpcDiskWriteFileRequest
Message
RpcDiskWriteFileResponse
Message
RpcDiscoverPoolsRequest
Message
RpcDiscoverPoolsResponse
Message
RpcDiscoverNodesRequest
Message
RpcDiscoverNodesResponse
Message
RpcDiscoverActionsRequest
Message
RpcDiscoverActionsResponse
Message
RpcDiscoverNearbyNodesRequest
Message
RpcDiscoverNearbyNodesResponse
Message
RpcDiscoverNearbyActionsRequest
Services
service PoolConnector
job management
discovery
rpc discoverNearbyNodes
Request: RpcDiscoverNearbyNodesRequest
Response:
RpcDiscoverNearbyNodesResponse
generic nostr events
blob storage
cache
Messages
message JobInput
Field | Type | Description | |
---|---|---|---|
1 | data |
optional
string
|
|
2 | ref |
optional
string
|
|
3 | type |
string
|
|
4 | marker |
string
|
|
5 | source |
optional
string
|
message Log
Field | Type | Description | |
---|---|---|---|
1 | id |
string
|
|
2 | log |
string
|
|
3 | level |
string
|
|
4 | timestamp |
uint64
|
|
5 | source |
string
|
|
6 | nodeId |
string
|
message Payment
Field | Type | Description | |
---|---|---|---|
1 | id |
optional
string
|
|
2 | amount |
uint64
|
|
3 | currency |
string
|
|
4 | protocol |
string
|
|
5 | status |
optional
PaymentStatus
|
|
6 | data |
optional
string
|
|
7 | proof |
optional
string
|
|
8 | waitForPayment |
optional
bool
|
message JobState
Field | Type | Description | |
---|---|---|---|
13 | acceptedAt |
uint64
|
|
14 | acceptedBy |
string
|
|
15 | status |
JobStatus
|
|
17 | logs |
repeated
Log
|
|
18 | timestamp |
uint64
|
|
19 | result |
JobResult
|
|
20 | acceptedByNode |
string
|
|
21 | paymentRequests |
repeated
Payment
|
message Job
Field | Type | Description | |
---|---|---|---|
1 | id |
string
|
|
14 | kind |
uint32
|
|
2 | runOn |
string
|
|
3 | expiration |
uint64
|
|
4 | timestamp |
uint64
|
|
5 | input |
repeated
JobInput
|
primary input |
6 | param |
repeated
JobParam
|
additional parameters |
7 | customerPublicKey |
string
|
|
8 | description |
string
|
|
9 | provider |
string
|
|
10 | relays |
repeated
string
|
|
18 | results |
repeated
JobState
|
|
13 | maxExecutionTime |
uint64
|
enforced by the provider |
15 | nodeId |
string
|
|
16 | outputFormat |
string
|
|
17 | encrypted |
optional
bool
|
|
19 | bid |
optional
Payment
|
message RpcRequestJob
Field | Type | Description | |
---|---|---|---|
1 | runOn |
string
|
|
2 | expireAfter |
uint64
|
|
3 | input |
repeated
JobInput
|
|
4 | param |
repeated
JobParam
|
|
6 | description |
string
|
|
7 | kind |
optional
uint32
|
|
8 | outputFormat |
optional
string
|
|
9 | requestProvider |
optional
string
|
|
10 | encrypted |
optional
bool
|
|
11 | userId |
optional
string
|
deprecated: pass as header instead |
12 | minWorkers |
optional
uint32
|
|
13 | bid |
optional
Payment
|
message RpcGetJob
Field | Type | Description | |
---|---|---|---|
1 | jobId |
string
|
|
99 | wait |
optional
uint32
|
max time to wait in ms , 0 or unset means no wait |
100 | nResultsToWait |
optional
uint32
|
max number of results to wait for |
2 | streamPayment |
optional
uint64
|
millisats to pay |
3 | streamPaymentCurrency |
optional
string
|
currency to pay |
4 | streamPaymentProtocol |
optional
string
|
protocol to pay |
message RpcGetPendingJobs
Field | Type | Description | |
---|---|---|---|
1 | filterByRunOn |
optional
string
|
|
2 | filterByCustomer |
optional
string
|
|
3 | filterByDescription |
optional
string
|
|
4 | filterById |
optional
string
|
|
5 | filterByKind |
optional
string
|
|
6 | filterByBids |
repeated
Payment
|
|
98 | excludeId |
repeated
string
|
which job ids to exclude, optional |
99 | wait |
optional
uint32
|
max time to wait in ms , 0 or unset means no wait |
message RpcJobComplete
Field | Type | Description | |
---|---|---|---|
1 | jobId |
string
|
|
2 | output |
string
|
|
3 | info |
optional
string
|
|
4 | cost |
optional
Payment
|
message RpcWaitForPaymentsRequest
Field | Type | Description | |
---|---|---|---|
1 | jobId |
string
|
|
2 | wait |
optional
uint32
|
max time to wait in ms , 0 or unset means no wait |
message RpcSendSignedEventRequest
Field | Type | Description | |
---|---|---|---|
1 | groupId |
string
|
the group id of the event, will be used for gc, etc. If generated by a job it should be set to the job id |
2 | event |
string
|
message RpcSubscribeToEventsRequest
Field | Type | Description | |
---|---|---|---|
1 | groupId |
string
|
the group id of the event, will be used for gc, etc. If generated by a job it should be set to the job id |
2 | filters |
repeated
string
|
message RpcSubscribeToEventsResponse
Field | Type | Description | |
---|---|---|---|
1 | groupId |
string
|
the group id of the event, will be used for gc, etc. If generated by a job it should be set to the job id |
2 | subscriptionId |
string
|
message RpcGetEventsRequest
Field | Type | Description | |
---|---|---|---|
1 | groupId |
string
|
the group id of the event, will be used for gc, etc. If generated by a job it should be set to the job id |
2 | subscriptionId |
string
|
|
3 | limit |
uint32
|
optional : 0 or unset means no limit |
message RpcGetEventsResponse
Field | Type | Description | |
---|---|---|---|
1 | groupId |
string
|
the group id of the event, will be used for gc, etc. If generated by a job it should be set to the job id |
2 | count |
uint32
|
|
3 | subscriptionId |
string
|
|
4 | events |
repeated
string
|
message RpcSendSignedEventResponse
Field | Type | Description | |
---|---|---|---|
1 | groupId |
string
|
the group id of the event, will be used for gc, etc. If generated by a job it should be set to the job id |
2 | success |
bool
|
message RpcUnsubscribeFromEventsRequest
Field | Type | Description | |
---|---|---|---|
1 | groupId |
string
|
the group id of the event, will be used for gc, etc. If generated by a job it should be set to the job id |
2 | subscriptionId |
string
|
message RpcAnnounceNodeRequest
Field | Type | Description | |
---|---|---|---|
3 | iconUrl |
string
|
|
4 | name |
string
|
|
5 | description |
string
|
message RpcAnnounceTemplateRequest
Field | Type | Description | |
---|---|---|---|
1 | meta |
string
|
|
2 | template |
string
|
|
3 | sockets |
string
|
message RpcCreateDiskRequest
Field | Type | Description | |
---|---|---|---|
1 | name |
optional
string
|
|
2 | encryptionKey |
optional
string
|
|
3 | includeEncryptionKeyInUrl |
optional
bool
|
message RpcCacheSetRequest
Field | Type | Description | |
---|---|---|---|
1 | key |
string
|
|
2 | data |
bytes
|
|
3 | version |
optional
uint64
|
|
4 | expireAt |
optional
uint64
|
message RpcDiscoverNodesRequest
Field | Type | Description | |
---|---|---|---|
1 | filterByKinds |
repeated
int32
|
|
2 | filterByPools |
repeated
string
|
|
3 | filterByNodes |
repeated
string
|
|
4 | filterByKindRanges |
repeated
string
|
message RpcDiscoverActionsRequest
Field | Type | Description | |
---|---|---|---|
1 | filterByKinds |
repeated
int32
|
|
2 | filterByPools |
repeated
string
|
|
3 | filterByNodes |
repeated
string
|
|
4 | filterByTags |
repeated
string
|
|
5 | filterByKindRanges |
repeated
string
|
message RpcDiscoverNearbyNodesRequest
Field | Type | Description | |
---|---|---|---|
1 | filterByKinds |
repeated
int32
|
|
3 | filterByNodes |
repeated
string
|
|
5 | filterByKindRanges |
repeated
string
|
message RpcDiscoverNearbyActionsRequest
Field | Type | Description | |
---|---|---|---|
1 | filterByKinds |
repeated
int32
|
|
3 | filterByNodes |
repeated
string
|
|
4 | filterByTags |
repeated
string
|
|
5 | filterByKindRanges |
repeated
string
|
message RpcJobRequest
Field | Type | Description | |
---|---|---|---|
1 | event |
string
|
|
2 | provider |
optional
string
|
|
3 | encrypted |
optional
bool
|
message RpcPayJobRequest
Field | Type | Description | |
---|---|---|---|
1 | jobId |
string
|
|
2 | amount |
uint64
|
|
3 | currency |
string
|
|
4 | protocol |
string
|
Enums
enum JobStatus
Name | Number | Description |
---|---|---|
PENDING |
0 | |
PROCESSING |
1 | |
ERROR |
2 | |
SUCCESS |
3 | |
PARTIAL |
4 | |
PAYMENT_REQUIRED |
7 | |
UNKNOWN |
99 |
enum PaymentStatus
Name | Number | Description |
---|---|---|
PAYMENT_REQUESTED |
0 | |
PAYMENT_SENT |
1 | |
PAYMENT_RECEIVED |
2 | |
PAYMENT_REFUNDED |
3 | |
PAYMENT_FAILED |
4 | |
PAYMENT_PENDING |
5 | |
PAYMENT_UNKNOWN_STATUS |
99 |