Skip to content

Commit

Permalink
Merge pull request #261 from koinos/get-pending-nonce
Browse files Browse the repository at this point in the history
Add messages for get_pending_nonce mempool RPC
  • Loading branch information
sgerbino authored Oct 24, 2024
2 parents 1afa227 + d7cced3 commit 5bd1080
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions koinos/rpc/mempool/mempool_rpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,23 @@ message get_reserved_account_rc_response {
uint64 rc = 1;
}

message get_pending_nonce_request {
bytes payee = 1 [(btype) = ADDRESS];
optional bytes block_id = 2 [(btype) = BLOCK_ID];
}

message get_pending_nonce_response {
bytes nonce = 1;
}

message mempool_request {
oneof request {
rpc.reserved_rpc reserved = 1;
check_pending_account_resources_request check_pending_account_resources = 2;
get_pending_transactions_request get_pending_transactions = 3;
check_account_nonce_request check_account_nonce = 4;
get_reserved_account_rc_request get_reserved_account_rc = 5;
get_pending_nonce_request get_pending_nonce = 6;
}
}

Expand All @@ -70,5 +80,6 @@ message mempool_response {
get_pending_transactions_response get_pending_transactions = 4;
check_account_nonce_response check_account_nonce = 5;
get_reserved_account_rc_response get_reserved_account_rc = 6;
get_pending_nonce_response get_pending_nonce = 7;
}
}

0 comments on commit 5bd1080

Please sign in to comment.