update listener protos

This commit is contained in:
D-Stacks 2022-10-15 00:56:05 +02:00
parent a905e34c8f
commit 22aeb048d1
13 changed files with 1555 additions and 1321 deletions

View File

@ -164,23 +164,24 @@ message KaspadMessage {
GetTxConfirmationsResponseMessage getTxConfirmationsResponse = 1109; GetTxConfirmationsResponseMessage getTxConfirmationsResponse = 1109;
GetTxsConfirmationsRequestMessage getTxsConfirmationsRequest = 1110; GetTxsConfirmationsRequestMessage getTxsConfirmationsRequest = 1110;
GetTxsConfirmationsResponseMessage getTxsConfirmationsResponse = 1111; GetTxsConfirmationsResponseMessage getTxsConfirmationsResponse = 1111;
NotifyTxsConfirmationChangedRequstMessage notifyTxsConfirmationChangedRequstMessage = 1112; NotifyTxsConfirmationChangedRequstMessage notifyTxsConfirmationChangedRequst = 1112;
NotifyTxsConfirmationChangedResponseMessage notifyTxsConfirmationChangedResponseMessage = 1113; NotifyTxsConfirmationChangedResponseMessage notifyTxsConfirmationChangedResponse = 1113;
StopNotifyTxsConfirmationChangedRequestMessage stopNotifyTxsConfirmationChangedRequestMessage = 1114; StopNotifyTxsConfirmationChangedRequestMessage stopNotifyTxsConfirmationChangedRequest = 1114;
StopNotifyTxsConfirmationChangedResponseMessage stopNotifyTxsConfirmationChangedResponseMessage = 1115; StopNotifyTxsConfirmationChangedResponseMessage stopNotifyTxsConfirmationChangedResponse = 1115;
StartNotifyTxsConfirmationChangedRequestMessage startNotifyTxsConfirmationChangedRequestMessage= 1116; StartNotifyTxsConfirmationChangedRequestMessage startNotifyTxsConfirmationChangedRequest = 1116;
StartNotifyTxsConfirmationChangedResponseMessage startNotifyTxsConfirmationChangedResponseMessage = 1117; StartNotifyTxsConfirmationChangedResponseMessage startNotifyTxsConfirmationChangedResponse = 1117;
ChangeNotifyTxsConfirmationChangedRequiredConfirmationsResponseMessage changeNotifyTxsConfirmationChangedRequiredConfirmationsResponseMessage = 1118; ModifyNotifyTxsConfirmationChangedParamsRequestMessage modifyNotifyTxsConfirmationChangedParamsRequest = 1118;
TxsConfirmationChangedNotficationMessage txsConfirmationChangedNotficationMessage = 1119; ModifyNotifyTxsConfirmationChangedParamsResponseMessage modifyNotifyTxsConfirmationChangedParamsResponse = 1119;
NotifyTxListenerRequestMessage notifyTxListenerRequestMessage = 1120; TxsConfirmationChangedNotificationMessage txsConfirmationChangedNotification = 1120;
StopNotifyTxListenerRequestMessage stopNotifyTxListenerRequestMessage = 1121; NotifyAddressesTxsRequestMessage notifyNotifyAddressesTxsRequest = 1121;
StopNotifyTxListenerResponseMessage stopNotifyTxListenerResponseMessage = 1122; NotifyAddressesTxsResponseMessage notifyNotifyAddressesTxsResponse = 1122;
StartNotifyTxListenerRequestMessage startNotifyTxListenerRequestMessage = 1123; StopNotifyAddressesTxsRequestMessage stopNotifyAddressesTxsRequest = 1123;
StartNotifyTxListenerResponseMessage startNotifyTxListenerResponseMessage = 1124; StopNotifyAddressesTxsResponseMessage stopNotifyAddressesTxsResponse = 1124;
ChangeNotifyTxListenerRequiredConfirmationsRequestMessage changeNotifyTxListenerRequiredConfirmationsRequestMessage = 1125; StartNotifyAddressesTxsRequestMessage startNotifyAddressesTxsRequest = 1125;
ChangeNotifyTxListenerRequiredConfirmationsResponseMessage changeNotifyTxListenerRequiredConfirmationsResponseMessage = 1126; StartNotifyAddressesTxsResponseMessage startNotifyAddressesTxsResponse = 1126;
TxListenerNotificationMessage txListenerNotificationMessage = 1127; ModifyNotifyAddressesTxsParamsRequestMessage modifyNotifyAddressesTxsParamsRequest = 1127;
ModifyNotifyAddressesTxsParamsResponseMessage modifyNotifyAddressesTxsParamsResponse = 1128;
AddressesTxsNotificationMessage AddressesTxsNotification = 1129;
} }
} }

View File

@ -140,28 +140,27 @@
- [GetTxsConfirmationsRequestMessage](#protowire.GetTxsConfirmationsRequestMessage) - [GetTxsConfirmationsRequestMessage](#protowire.GetTxsConfirmationsRequestMessage)
- [GetTxsConfirmationsResponseMessage](#protowire.GetTxsConfirmationsResponseMessage) - [GetTxsConfirmationsResponseMessage](#protowire.GetTxsConfirmationsResponseMessage)
- [NotifyTxsConfirmationChangedRequstMessage](#protowire.NotifyTxsConfirmationChangedRequstMessage) - [NotifyTxsConfirmationChangedRequstMessage](#protowire.NotifyTxsConfirmationChangedRequstMessage)
- [NotifyTxsConfirmationChangedRequstMessage.Params](#protowire.NotifyTxsConfirmationChangedRequstMessage.Params)
- [NotifyTxsConfirmationChangedResponseMessage](#protowire.NotifyTxsConfirmationChangedResponseMessage) - [NotifyTxsConfirmationChangedResponseMessage](#protowire.NotifyTxsConfirmationChangedResponseMessage)
- [TxsConfirmationChangedNotficationMessage](#protowire.TxsConfirmationChangedNotficationMessage) - [TxsConfirmationChangedNotificationMessage](#protowire.TxsConfirmationChangedNotificationMessage)
- [TxsConfirmationChangedNotficationMessage.Pending](#protowire.TxsConfirmationChangedNotficationMessage.Pending)
- [TxsConfirmationChangedNotficationMessage.Confirmed](#protowire.TxsConfirmationChangedNotficationMessage.Confirmed)
- [StopNotifyTxsConfirmationChangedRequestMessage](#protowire.StopNotifyTxsConfirmationChangedRequestMessage) - [StopNotifyTxsConfirmationChangedRequestMessage](#protowire.StopNotifyTxsConfirmationChangedRequestMessage)
- [StopNotifyTxsConfirmationChangedResponseMessage](#protowire.StopNotifyTxsConfirmationChangedResponseMessage) - [StopNotifyTxsConfirmationChangedResponseMessage](#protowire.StopNotifyTxsConfirmationChangedResponseMessage)
- [StartNotifyTxsConfirmationChangedRequestMessage](#protowire.StartNotifyTxsConfirmationChangedRequestMessage) - [StartNotifyTxsConfirmationChangedRequestMessage](#protowire.StartNotifyTxsConfirmationChangedRequestMessage)
- [StartNotifyTxsConfirmationChangedResponseMessage](#protowire.StartNotifyTxsConfirmationChangedResponseMessage) - [StartNotifyTxsConfirmationChangedResponseMessage](#protowire.StartNotifyTxsConfirmationChangedResponseMessage)
- [ChangeNotifyTxsConfirmationChangedRequiredConfirmationsRequestMessage](#protowire.ChangeNotifyTxsConfirmationChangedRequiredConfirmationsRequestMessage) - [ModifyNotifyTxsConfirmationChangedParamsRequestMessage](#protowire.ModifyNotifyTxsConfirmationChangedParamsRequestMessage)
- [ChangeNotifyTxsConfirmationChangedRequiredConfirmationsResponseMessage](#protowire.ChangeNotifyTxsConfirmationChangedRequiredConfirmationsResponseMessage) - [ModifyNotifyTxsConfirmationChangedParamsResponseMessage](#protowire.ModifyNotifyTxsConfirmationChangedParamsResponseMessage)
- [TxEntryByAddress](#protowire.TxEntryByAddress) - [TxEntryByAddress](#protowire.TxEntryByAddress)
- [NotifyTxListenerRequestMessage](#protowire.NotifyTxListenerRequestMessage) - [TxEntriesByAddresses](#protowire.TxEntriesByAddresses)
- [NotifyTxListenerResponseMessage](#protowire.NotifyTxListenerResponseMessage) - [NotifyAddressesTxsRequestMessage](#protowire.NotifyAddressesTxsRequestMessage)
- [StopNotifyTxListenerRequestMessage](#protowire.StopNotifyTxListenerRequestMessage) - [NotifyAddressesTxsRequestMessage.Params](#protowire.NotifyAddressesTxsRequestMessage.Params)
- [StopNotifyTxListenerResponseMessage](#protowire.StopNotifyTxListenerResponseMessage) - [NotifyAddressesTxsResponseMessage](#protowire.NotifyAddressesTxsResponseMessage)
- [StartNotifyTxListenerRequestMessage](#protowire.StartNotifyTxListenerRequestMessage) - [StopNotifyAddressesTxsRequestMessage](#protowire.StopNotifyAddressesTxsRequestMessage)
- [StartNotifyTxListenerResponseMessage](#protowire.StartNotifyTxListenerResponseMessage) - [StopNotifyAddressesTxsResponseMessage](#protowire.StopNotifyAddressesTxsResponseMessage)
- [ChangeNotifyTxListenerRequiredConfirmationsRequestMessage](#protowire.ChangeNotifyTxListenerRequiredConfirmationsRequestMessage) - [StartNotifyAddressesTxsRequestMessage](#protowire.StartNotifyAddressesTxsRequestMessage)
- [ChangeNotifyTxListenerRequiredConfirmationsResponseMessage](#protowire.ChangeNotifyTxListenerRequiredConfirmationsResponseMessage) - [StartNotifyAddressesTxsResponseMessage](#protowire.StartNotifyAddressesTxsResponseMessage)
- [TxListenerNotificationMessage](#protowire.TxListenerNotificationMessage) - [ModifyNotifyAddressesTxsParamsRequestMessage](#protowire.ModifyNotifyAddressesTxsParamsRequestMessage)
- [TxListenerNotificationMessage.Pending](#protowire.TxListenerNotificationMessage.Pending) - [ModifyNotifyAddressesTxsParamsResponseMessage](#protowire.ModifyNotifyAddressesTxsParamsResponseMessage)
- [TxListenerNotificationMessage.Confirmed](#protowire.TxListenerNotificationMessage.Confirmed) - [AddressesTxsNotificationMessage](#protowire.AddressesTxsNotificationMessage)
- [SubmitBlockResponseMessage.RejectReason](#protowire.SubmitBlockResponseMessage.RejectReason) - [SubmitBlockResponseMessage.RejectReason](#protowire.SubmitBlockResponseMessage.RejectReason)
@ -1990,7 +1989,7 @@ See NotifyNewBlockTemplateRequestMessage
<a name="protowire.GetAcceptingBlockHashesOfTxsRequestMessage"></a> <a name="protowire.GetAcceptingBlockHashesOfTxsRequestMessage"></a>
### GetAcceptingBlockHashesOfTxsRequestMessage ### GetAcceptingBlockHashesOfTxsRequestMessage
Kaspad most be started with the `--txindex` flag for this Request to work.
| Field | Type | Label | Description | | Field | Type | Label | Description |
@ -2021,7 +2020,7 @@ See NotifyNewBlockTemplateRequestMessage
<a name="protowire.GetAcceptingBlockOfTxRequestMessage"></a> <a name="protowire.GetAcceptingBlockOfTxRequestMessage"></a>
### GetAcceptingBlockOfTxRequestMessage ### GetAcceptingBlockOfTxRequestMessage
Kaspad most be started with the `--txindex` flag for this Request to work.
| Field | Type | Label | Description | | Field | Type | Label | Description |
@ -2053,7 +2052,7 @@ See NotifyNewBlockTemplateRequestMessage
<a name="protowire.GetAcceptingBlocksOfTxsRequestMessage"></a> <a name="protowire.GetAcceptingBlocksOfTxsRequestMessage"></a>
### GetAcceptingBlocksOfTxsRequestMessage ### GetAcceptingBlocksOfTxsRequestMessage
Kaspad most be started with the `--txindex` flag for this Request to work.
| Field | Type | Label | Description | | Field | Type | Label | Description |
@ -2085,7 +2084,7 @@ See NotifyNewBlockTemplateRequestMessage
<a name="protowire.GetIncludingBlockHashOfTxRequestMessage"></a> <a name="protowire.GetIncludingBlockHashOfTxRequestMessage"></a>
### GetIncludingBlockHashOfTxRequestMessage ### GetIncludingBlockHashOfTxRequestMessage
Kaspad most be started with the `--txindex` flag for this Request to work.
| Field | Type | Label | Description | | Field | Type | Label | Description |
@ -2116,7 +2115,7 @@ See NotifyNewBlockTemplateRequestMessage
<a name="protowire.GetIncludingBlockHashesOfTxsRequestMessage"></a> <a name="protowire.GetIncludingBlockHashesOfTxsRequestMessage"></a>
### GetIncludingBlockHashesOfTxsRequestMessage ### GetIncludingBlockHashesOfTxsRequestMessage
Kaspad most be started with the `--txindex` flag for this Request to work.
| Field | Type | Label | Description | | Field | Type | Label | Description |
@ -2147,7 +2146,7 @@ See NotifyNewBlockTemplateRequestMessage
<a name="protowire.GetIncludingBlockOfTxRequestMessage"></a> <a name="protowire.GetIncludingBlockOfTxRequestMessage"></a>
### GetIncludingBlockOfTxRequestMessage ### GetIncludingBlockOfTxRequestMessage
Kaspad most be started with the `--txindex` flag for this Request to work.
| Field | Type | Label | Description | | Field | Type | Label | Description |
@ -2179,7 +2178,7 @@ See NotifyNewBlockTemplateRequestMessage
<a name="protowire.GetIncludingBlocksOfTxsRequestMessage"></a> <a name="protowire.GetIncludingBlocksOfTxsRequestMessage"></a>
### GetIncludingBlocksOfTxsRequestMessage ### GetIncludingBlocksOfTxsRequestMessage
Kaspad most be started with the `--txindex` flag for this Request to work.
| Field | Type | Label | Description | | Field | Type | Label | Description |
@ -2211,7 +2210,7 @@ See NotifyNewBlockTemplateRequestMessage
<a name="protowire.GetTxRequestMessage"></a> <a name="protowire.GetTxRequestMessage"></a>
### GetTxRequestMessage ### GetTxRequestMessage
Kaspad most be started with the `--txindex` flag for this Request to work.
| Field | Type | Label | Description | | Field | Type | Label | Description |
@ -2242,7 +2241,7 @@ See NotifyNewBlockTemplateRequestMessage
<a name="protowire.GetTxsRequestMessage"></a> <a name="protowire.GetTxsRequestMessage"></a>
### GetTxsRequestMessage ### GetTxsRequestMessage
Kaspad most be started with the `--txindex` flag for this Request to work.
| Field | Type | Label | Description | | Field | Type | Label | Description |
@ -2273,7 +2272,7 @@ See NotifyNewBlockTemplateRequestMessage
<a name="protowire.GetTxConfirmationsRequestMessage"></a> <a name="protowire.GetTxConfirmationsRequestMessage"></a>
### GetTxConfirmationsRequestMessage ### GetTxConfirmationsRequestMessage
Kaspad most be started with the `--txindex` flag for this Request to work.
| Field | Type | Label | Description | | Field | Type | Label | Description |
@ -2304,7 +2303,7 @@ See NotifyNewBlockTemplateRequestMessage
<a name="protowire.GetTxsConfirmationsRequestMessage"></a> <a name="protowire.GetTxsConfirmationsRequestMessage"></a>
### GetTxsConfirmationsRequestMessage ### GetTxsConfirmationsRequestMessage
Kaspad most be started with the `--txindex` flag for this Request to work.
| Field | Type | Label | Description | | Field | Type | Label | Description |
@ -2335,14 +2334,30 @@ See NotifyNewBlockTemplateRequestMessage
<a name="protowire.NotifyTxsConfirmationChangedRequstMessage"></a> <a name="protowire.NotifyTxsConfirmationChangedRequstMessage"></a>
### NotifyTxsConfirmationChangedRequstMessage ### NotifyTxsConfirmationChangedRequstMessage
NotifyTxsConfirmationChangedRequstMessage is a listener that registers confirmations from supplied TxIDs
Kaspad most be started with the `--txindex` flag for this Request to work.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| TxIDs | [string](#string) | repeated | initial TxIds to listen for when regestering for notifications |
| params | [NotifyTxsConfirmationChangedRequstMessage.Params](#protowire.NotifyTxsConfirmationChangedRequstMessage.Params) | | |
<a name="protowire.NotifyTxsConfirmationChangedRequstMessage.Params"></a>
### NotifyTxsConfirmationChangedRequstMessage.Params
| Field | Type | Label | Description | | Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |
| TxIDs | [string](#string) | repeated | | | requiredConfirmations | [uint32](#uint32) | | number of confirmations until a transaction is considered confirmed |
| requiredConfirmations | [uint32](#uint32) | | | | includePending | [bool](#bool) | | weather to notify confirmation changes during pre-Confirmed states |
| includePending | [bool](#bool) | | |
@ -2359,16 +2374,18 @@ See NotifyNewBlockTemplateRequestMessage
<a name="protowire.TxsConfirmationChangedNotficationMessage"></a> <a name="protowire.TxsConfirmationChangedNotificationMessage"></a>
### TxsConfirmationChangedNotficationMessage
### TxsConfirmationChangedNotificationMessage
TxsConfirmationChangedNotificationMessage is the notification about txs pertaining to specified TxIDs
| Field | Type | Label | Description | | Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |
| pending | [TxsConfirmationChangedNotficationMessage.Pending](#protowire.TxsConfirmationChangedNotficationMessage.Pending) | repeated | | | requiredConfirmations | [uint32](#uint32) | | the required confirmations set when notification was sent |
| confirmed | [TxsConfirmationChangedNotficationMessage.Confirmed](#protowire.TxsConfirmationChangedNotficationMessage.Confirmed) | repeated | | | pending | [RpcTxIDConfirmationsPair](#protowire.RpcTxIDConfirmationsPair) | repeated | RpcTxIDConfirmationsPairs which have entered the virtual chain but not passed the required confirmations |
| confirmed | [RpcTxIDConfirmationsPair](#protowire.RpcTxIDConfirmationsPair) | repeated | RpcTxIDConfirmationsPairs which have entered the virtual chain and passed the required confirmations |
| unconfirmedTxIds | [string](#string) | repeated | TxIds which were not confirmed within the required confirmations. |
| error | [RPCError](#protowire.RPCError) | | | | error | [RPCError](#protowire.RPCError) | | |
@ -2376,40 +2393,10 @@ See NotifyNewBlockTemplateRequestMessage
<a name="protowire.TxsConfirmationChangedNotficationMessage.Pending"></a>
### TxsConfirmationChangedNotficationMessage.Pending
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| txIDConfirmationsPairs | [RpcTxIDConfirmationsPair](#protowire.RpcTxIDConfirmationsPair) | repeated | |
<a name="protowire.TxsConfirmationChangedNotficationMessage.Confirmed"></a>
### TxsConfirmationChangedNotficationMessage.Confirmed
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| txIDConfirmationsPairs | [RpcTxIDConfirmationsPair](#protowire.RpcTxIDConfirmationsPair) | repeated | |
<a name="protowire.StopNotifyTxsConfirmationChangedRequestMessage"></a> <a name="protowire.StopNotifyTxsConfirmationChangedRequestMessage"></a>
### StopNotifyTxsConfirmationChangedRequestMessage ### StopNotifyTxsConfirmationChangedRequestMessage
most be registered to NotifyTxsConfirmationChangedRequstMessage for this command to work
| Field | Type | Label | Description | | Field | Type | Label | Description |
@ -2427,6 +2414,11 @@ See NotifyNewBlockTemplateRequestMessage
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| error | [RPCError](#protowire.RPCError) | | |
@ -2434,7 +2426,8 @@ See NotifyNewBlockTemplateRequestMessage
<a name="protowire.StartNotifyTxsConfirmationChangedRequestMessage"></a> <a name="protowire.StartNotifyTxsConfirmationChangedRequestMessage"></a>
### StartNotifyTxsConfirmationChangedRequestMessage ### StartNotifyTxsConfirmationChangedRequestMessage
StartNotifyTxsConfirmationChangedRequestMessage starts listening for Transaction confirmations with the specified TxIDs
Most be registered to NotifyTxsConfirmationChangedRequstMessage for this command to work
| Field | Type | Label | Description | | Field | Type | Label | Description |
@ -2452,31 +2445,43 @@ See NotifyNewBlockTemplateRequestMessage
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| error | [RPCError](#protowire.RPCError) | | |
<a name="protowire.ChangeNotifyTxsConfirmationChangedRequiredConfirmationsRequestMessage"></a>
### ChangeNotifyTxsConfirmationChangedRequiredConfirmationsRequestMessage
<a name="protowire.ModifyNotifyTxsConfirmationChangedParamsRequestMessage"></a>
### ModifyNotifyTxsConfirmationChangedParamsRequestMessage
ModifyNotifyTxsConfirmationChangedParamsRequestMessage modfies the params of a registered `NotifyTxsConfirmationChangedRequstMessage`
most be registered to NotifyTxsConfirmationChangedRequstMessage for this command to work
| Field | Type | Label | Description | | Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |
| requiredConfirmations | [uint32](#uint32) | | | | requiredConfirmations | [uint32](#uint32) | | |
| includePending | [bool](#bool) | | |
<a name="protowire.ChangeNotifyTxsConfirmationChangedRequiredConfirmationsResponseMessage"></a> <a name="protowire.ModifyNotifyTxsConfirmationChangedParamsResponseMessage"></a>
### ChangeNotifyTxsConfirmationChangedRequiredConfirmationsResponseMessage ### ModifyNotifyTxsConfirmationChangedParamsResponseMessage
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| error | [RPCError](#protowire.RPCError) | | |
@ -2498,151 +2503,179 @@ See NotifyNewBlockTemplateRequestMessage
<a name="protowire.NotifyTxListenerRequestMessage"></a> <a name="protowire.TxEntriesByAddresses"></a>
### NotifyTxListenerRequestMessage ### TxEntriesByAddresses
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| sent | [TxEntryByAddress](#protowire.TxEntryByAddress) | repeated | |
| received | [TxEntryByAddress](#protowire.TxEntryByAddress) | repeated | |
<a name="protowire.NotifyAddressesTxsRequestMessage"></a>
### NotifyAddressesTxsRequestMessage
NotifyAddressesTxsChangedRequestMessage Listens for Txs pertaining to specified addresses according to the params specified
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| addresses | [string](#string) | repeated | initial addresses to listen for Tx changes when regestering for notifications |
| params | [NotifyAddressesTxsRequestMessage.Params](#protowire.NotifyAddressesTxsRequestMessage.Params) | | |
<a name="protowire.NotifyAddressesTxsRequestMessage.Params"></a>
### NotifyAddressesTxsRequestMessage.Params
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| requiredConfirmations | [uint32](#uint32) | | number of confirmations until a transaction is considered confirmed |
| includePending | [bool](#bool) | | whether to notify confirmation changes during pre-Confirmed states |
| includeSending | [bool](#bool) | | whether to listen on addresses sending txs |
| includeReceiving | [bool](#bool) | | whether to listen on addresses reciving txs |
<a name="protowire.NotifyAddressesTxsResponseMessage"></a>
### NotifyAddressesTxsResponseMessage
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| error | [RPCError](#protowire.RPCError) | | |
<a name="protowire.StopNotifyAddressesTxsRequestMessage"></a>
### StopNotifyAddressesTxsRequestMessage
StopNotifyAddressesTxsRequestMessage stops listening for Txs pertaining to specified addresses
Most be registered to NotifyAddressTxChangedRequestMessage for this command to work
| Field | Type | Label | Description | | Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |
| addresses | [string](#string) | repeated | | | addresses | [string](#string) | repeated | |
<a name="protowire.StopNotifyAddressesTxsResponseMessage"></a>
### StopNotifyAddressesTxsResponseMessage
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| error | [RPCError](#protowire.RPCError) | | |
<a name="protowire.StartNotifyAddressesTxsRequestMessage"></a>
### StartNotifyAddressesTxsRequestMessage
StartNotifyAddressesTxsRequestMessage starts listening for Txs pertaining to specified addresses
Most be registered to NotifyAddressTxChangedRequestMessage for this command to work
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| addresses | [string](#string) | repeated | |
<a name="protowire.StartNotifyAddressesTxsResponseMessage"></a>
### StartNotifyAddressesTxsResponseMessage
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| error | [RPCError](#protowire.RPCError) | | |
<a name="protowire.ModifyNotifyAddressesTxsParamsRequestMessage"></a>
### ModifyNotifyAddressesTxsParamsRequestMessage
ModifyNotifyAddressesTxsParamsRequestMessage modifies the params used for a regesitered `NotifyAddressesTxsRequest`
Most be registered to NotifyAddressTxChangedRequestMessage for this command to work
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| requiredConfirmations | [uint32](#uint32) | | | | requiredConfirmations | [uint32](#uint32) | | |
| includePending | [bool](#bool) | | | | includePending | [bool](#bool) | | |
| includeSending | [bool](#bool) | | |
| includeReceiving | [bool](#bool) | | |
<a name="protowire.NotifyTxListenerResponseMessage"></a> <a name="protowire.ModifyNotifyAddressesTxsParamsResponseMessage"></a>
### NotifyTxListenerResponseMessage ### ModifyNotifyAddressesTxsParamsResponseMessage
<a name="protowire.StopNotifyTxListenerRequestMessage"></a>
### StopNotifyTxListenerRequestMessage
| Field | Type | Label | Description | | Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |
| addresses | [string](#string) | repeated | | | error | [RPCError](#protowire.RPCError) | | |
<a name="protowire.StopNotifyTxListenerResponseMessage"></a> <a name="protowire.AddressesTxsNotificationMessage"></a>
### StopNotifyTxListenerResponseMessage
<a name="protowire.StartNotifyTxListenerRequestMessage"></a>
### StartNotifyTxListenerRequestMessage
### AddressesTxsNotificationMessage
AddressesTxsNotificationMessage is the notification about txs pertaining to specified addresses
| Field | Type | Label | Description | | Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- | | ----- | ---- | ----- | ----------- |
| addresses | [string](#string) | repeated | | | requiredConfirmations | [uint32](#uint32) | | the required confirmations set when notification was sent |
| pending | [TxEntriesByAddresses](#protowire.TxEntriesByAddresses) | | TxEntriesByAddresses which have entered the blockdag but not passed the required confirmations |
| confirmed | [TxEntriesByAddresses](#protowire.TxEntriesByAddresses) | | TxEntriesByAddresses which have entered the blockdag and passed the required confirmations |
| unconfirmed | [TxEntriesByAddresses](#protowire.TxEntriesByAddresses) | | TxEntriesByAddresses which have been pending, but removed via a reorg within the number of required confirmations. |
<a name="protowire.StartNotifyTxListenerResponseMessage"></a>
### StartNotifyTxListenerResponseMessage
<a name="protowire.ChangeNotifyTxListenerRequiredConfirmationsRequestMessage"></a>
### ChangeNotifyTxListenerRequiredConfirmationsRequestMessage
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| requiredConfirmations | [uint32](#uint32) | | |
<a name="protowire.ChangeNotifyTxListenerRequiredConfirmationsResponseMessage"></a>
### ChangeNotifyTxListenerRequiredConfirmationsResponseMessage
<a name="protowire.TxListenerNotificationMessage"></a>
### TxListenerNotificationMessage
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| pending | [TxListenerNotificationMessage.Pending](#protowire.TxListenerNotificationMessage.Pending) | | |
| confirmed | [TxListenerNotificationMessage.Confirmed](#protowire.TxListenerNotificationMessage.Confirmed) | | |
<a name="protowire.TxListenerNotificationMessage.Pending"></a>
### TxListenerNotificationMessage.Pending
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| sent | [TxEntryByAddress](#protowire.TxEntryByAddress) | repeated | |
| received | [TxEntryByAddress](#protowire.TxEntryByAddress) | repeated | |
<a name="protowire.TxListenerNotificationMessage.Confirmed"></a>
### TxListenerNotificationMessage.Confirmed
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| requiredConfirmations | [uint32](#uint32) | | |
| sent | [TxEntryByAddress](#protowire.TxEntryByAddress) | repeated | |
| received | [TxEntryByAddress](#protowire.TxEntryByAddress) | repeated | |

View File

@ -749,16 +749,17 @@ message RpcTxIDBlockPair {
RpcBlock block = 2; RpcBlock block = 2;
} }
//Kaspad most be started with the `--txindex` flag for this Request to work.
message GetAcceptingBlockHashesOfTxsRequestMessage{ message GetAcceptingBlockHashesOfTxsRequestMessage{
repeated string txIDs = 1; repeated string txIDs = 1;
} }
message GetAcceptingBlockHashesOfTxsResponseMessage{ message GetAcceptingBlockHashesOfTxsResponseMessage{
repeated RpcTxIDBlockHashPair txIDBlockHashPairs = 1; repeated RpcTxIDBlockHashPair txIDBlockHashPairs = 1;
RPCError error = 1000; RPCError error = 1000;
} }
//Kaspad most be started with the `--txindex` flag for this Request to work.
message GetAcceptingBlockOfTxRequestMessage{ message GetAcceptingBlockOfTxRequestMessage{
string txID = 1; string txID = 1;
bool includeTransactions = 2; bool includeTransactions = 2;
@ -770,6 +771,7 @@ message GetAcceptingBlockOfTxResponseMessage{
RPCError error = 1000; RPCError error = 1000;
} }
//Kaspad most be started with the `--txindex` flag for this Request to work.
message GetAcceptingBlocksOfTxsRequestMessage{ message GetAcceptingBlocksOfTxsRequestMessage{
repeated string txIDs = 1; repeated string txIDs = 1;
bool includeTransactions = 2; bool includeTransactions = 2;
@ -781,6 +783,7 @@ message GetAcceptingBlocksOfTxsResponseMessage{
RPCError error = 1000; RPCError error = 1000;
} }
//Kaspad most be started with the `--txindex` flag for this Request to work.
message GetIncludingBlockHashOfTxRequestMessage{ message GetIncludingBlockHashOfTxRequestMessage{
string txID = 1; string txID = 1;
} }
@ -791,6 +794,8 @@ message GetIncludingBlockHashOfTxResponseMessage{
RPCError error = 1000; RPCError error = 1000;
} }
//Kaspad most be started with the `--txindex` flag for this Request to work.
message GetIncludingBlockHashesOfTxsRequestMessage{ message GetIncludingBlockHashesOfTxsRequestMessage{
repeated string txIDs = 1; repeated string txIDs = 1;
} }
@ -801,6 +806,8 @@ message GetIncludingBlockHashesOfTxsResponseMessage{
RPCError error = 1000; RPCError error = 1000;
} }
//Kaspad most be started with the `--txindex` flag for this Request to work.
message GetIncludingBlockOfTxRequestMessage{ message GetIncludingBlockOfTxRequestMessage{
string txID = 1; string txID = 1;
bool includeTransactions = 2; bool includeTransactions = 2;
@ -812,6 +819,8 @@ message GetIncludingBlockOfTxResponseMessage{
RPCError error = 1000; RPCError error = 1000;
} }
//Kaspad most be started with the `--txindex` flag for this Request to work.
message GetIncludingBlocksOfTxsRequestMessage{ message GetIncludingBlocksOfTxsRequestMessage{
repeated string txIDs = 1; repeated string txIDs = 1;
bool includeTransactions = 2; bool includeTransactions = 2;
@ -823,6 +832,7 @@ message GetIncludingBlocksOfTxsResponseMessage{
RPCError error = 1000; RPCError error = 1000;
} }
//Kaspad most be started with the `--txindex` flag for this Request to work.
message GetTxRequestMessage{ message GetTxRequestMessage{
string txID = 1; string txID = 1;
} }
@ -834,6 +844,7 @@ message GetTxResponseMessage{
RPCError error = 1000; RPCError error = 1000;
} }
//Kaspad most be started with the `--txindex` flag for this Request to work.
message GetTxsRequestMessage{ message GetTxsRequestMessage{
repeated string txIDs = 1; repeated string txIDs = 1;
} }
@ -845,6 +856,7 @@ message GetTxsResponseMessage{
RPCError error = 1000; RPCError error = 1000;
} }
//Kaspad most be started with the `--txindex` flag for this Request to work.
message GetTxConfirmationsRequestMessage{ message GetTxConfirmationsRequestMessage{
string txID = 1; string txID = 1;
} }
@ -855,6 +867,7 @@ message GetTxConfirmationsResponseMessage{
RPCError error = 1000; RPCError error = 1000;
} }
//Kaspad most be started with the `--txindex` flag for this Request to work.
message GetTxsConfirmationsRequestMessage{ message GetTxsConfirmationsRequestMessage{
repeated string txIDs = 1; repeated string txIDs = 1;
} }
@ -865,51 +878,61 @@ message GetTxsConfirmationsResponseMessage{
RPCError error = 1000; RPCError error = 1000;
} }
// NotifyTxsConfirmationChangedRequstMessage is a listener that registers confirmations from supplied TxIDs
// Kaspad most be started with the `--txindex` flag for this Request to work.
message NotifyTxsConfirmationChangedRequstMessage{ message NotifyTxsConfirmationChangedRequstMessage{
repeated string TxIDs = 1; repeated string TxIDs = 1; //initial TxIds to listen for when regestering for notifications
uint32 requiredConfirmations = 2; message Params {
bool includePending = 3; uint32 requiredConfirmations = 1; // number of confirmations until a transaction is considered confirmed
bool includePending = 2; // weather to notify confirmation changes during pre-Confirmed states
}
Params params = 2;
} }
message NotifyTxsConfirmationChangedResponseMessage{ message NotifyTxsConfirmationChangedResponseMessage{
} }
message TxsConfirmationChangedNotficationMessage{ // TxsConfirmationChangedNotificationMessage is the notification about txs pertaining to specified TxIDs
message Pending{ message TxsConfirmationChangedNotificationMessage{
repeated RpcTxIDConfirmationsPair txIDConfirmationsPairs = 1; uint32 requiredConfirmations = 1; //the required confirmations set when notification was sent
} repeated RpcTxIDConfirmationsPair pending = 2; // RpcTxIDConfirmationsPairs which have entered the virtual chain but not passed the required confirmations
message Confirmed{ repeated RpcTxIDConfirmationsPair confirmed = 3; // RpcTxIDConfirmationsPairs which have entered the virtual chain and passed the required confirmations
repeated RpcTxIDConfirmationsPair txIDConfirmationsPairs = 1; repeated string unconfirmedTxIds = 4; // TxIds which were not confirmed within the required confirmations.
}
repeated Pending pending = 1;
repeated Confirmed confirmed = 2;
RPCError error = 1000; RPCError error = 1000;
} }
// most be registered to NotifyTxsConfirmationChangedRequstMessage for this command to work
message StopNotifyTxsConfirmationChangedRequestMessage{ message StopNotifyTxsConfirmationChangedRequestMessage{
repeated string TxIDs = 1; repeated string TxIDs = 1;
} }
message StopNotifyTxsConfirmationChangedResponseMessage{ message StopNotifyTxsConfirmationChangedResponseMessage{
RPCError error = 1000;
} }
// StartNotifyTxsConfirmationChangedRequestMessage starts listening for Transaction confirmations with the specified TxIDs
// Most be registered to NotifyTxsConfirmationChangedRequstMessage for this command to work
message StartNotifyTxsConfirmationChangedRequestMessage{ message StartNotifyTxsConfirmationChangedRequestMessage{
repeated string TxIDs = 1; repeated string TxIDs = 1;
} }
message StartNotifyTxsConfirmationChangedResponseMessage{ message StartNotifyTxsConfirmationChangedResponseMessage{
RPCError error = 1000;
} }
message ChangeNotifyTxsConfirmationChangedRequiredConfirmationsRequestMessage{ // ModifyNotifyTxsConfirmationChangedParamsRequestMessage modfies the params of a registered `NotifyTxsConfirmationChangedRequstMessage`
// most be registered to NotifyTxsConfirmationChangedRequstMessage for this command to work
message ModifyNotifyTxsConfirmationChangedParamsRequestMessage{
uint32 requiredConfirmations = 1; uint32 requiredConfirmations = 1;
bool includePending = 2;
} }
message ChangeNotifyTxsConfirmationChangedRequiredConfirmationsResponseMessage{ message ModifyNotifyTxsConfirmationChangedParamsResponseMessage{
RPCError error = 1000;
} }
message TxEntryByAddress{ message TxEntryByAddress{
@ -918,51 +941,68 @@ message TxEntryByAddress{
uint32 confirmations = 3; uint32 confirmations = 3;
} }
message NotifyTxListenerRequestMessage{ message TxEntriesByAddresses{
repeated string addresses = 1; repeated TxEntryByAddress sent = 1;
uint32 requiredConfirmations = 2; repeated TxEntryByAddress received = 2;
bool includePending = 3; }
// NotifyAddressesTxsChangedRequestMessage Listens for Txs pertaining to specified addresses according to the params specified
message NotifyAddressesTxsRequestMessage{
repeated string addresses = 1; //initial addresses to listen for Tx changes when regestering for notifications
message Params {
uint32 requiredConfirmations = 2; // number of confirmations until a transaction is considered confirmed
bool includePending = 3; //whether to notify confirmation changes during pre-Confirmed states
bool includeSending = 4; //whether to listen on addresses sending txs
bool includeReceiving = 5; //whether to listen on addresses reciving txs
}
Params params = 2;
} }
message NotifyTxListenerResponseMessage{ message NotifyAddressesTxsResponseMessage{
RPCError error = 1000;
} }
message StopNotifyTxListenerRequestMessage{ // StopNotifyAddressesTxsRequestMessage stops listening for Txs pertaining to specified addresses
// Most be registered to NotifyAddressTxChangedRequestMessage for this command to work
message StopNotifyAddressesTxsRequestMessage{
repeated string addresses = 1; repeated string addresses = 1;
} }
message StopNotifyTxListenerResponseMessage{ message StopNotifyAddressesTxsResponseMessage{
RPCError error = 1000;
} }
message StartNotifyTxListenerRequestMessage{ // StartNotifyAddressesTxsRequestMessage starts listening for Txs pertaining to specified addresses
// Most be registered to NotifyAddressTxChangedRequestMessage for this command to work
message StartNotifyAddressesTxsRequestMessage{
repeated string addresses = 1; repeated string addresses = 1;
} }
message StartNotifyTxListenerResponseMessage{ message StartNotifyAddressesTxsResponseMessage{
RPCError error = 1000;
} }
// ModifyNotifyAddressesTxsParamsRequestMessage modifies the params used for a regesitered `NotifyAddressesTxsRequest`
message ChangeNotifyTxListenerRequiredConfirmationsRequestMessage{ // Most be registered to NotifyAddressTxChangedRequestMessage for this command to work
message ModifyNotifyAddressesTxsParamsRequestMessage{
uint32 requiredConfirmations = 1; uint32 requiredConfirmations = 1;
bool includePending = 3;
bool includeSending = 4;
bool includeReceiving = 5;
} }
message ChangeNotifyTxListenerRequiredConfirmationsResponseMessage{ message ModifyNotifyAddressesTxsParamsResponseMessage{
RPCError error = 1000;
} }
message TxListenerNotificationMessage{ // AddressesTxsNotificationMessage is the notification about txs pertaining to specified addresses
message Pending{ message AddressesTxsNotificationMessage{
repeated TxEntryByAddress sent = 1; uint32 requiredConfirmations = 1; //the required confirmations set when notification was sent
repeated TxEntryByAddress received = 2; TxEntriesByAddresses pending = 2; // TxEntriesByAddresses which have entered the blockdag but not passed the required confirmations
} TxEntriesByAddresses confirmed = 3; // TxEntriesByAddresses which have entered the blockdag and passed the required confirmations
message Confirmed{ TxEntriesByAddresses unconfirmed = 4; // TxEntriesByAddresses which have been pending, but removed via a reorg within the number of required confirmations.
uint32 requiredConfirmations = 1;
repeated TxEntryByAddress sent = 2;
repeated TxEntryByAddress received = 3;
}
Pending pending = 1;
Confirmed confirmed = 2;
} }