@@ -124,17 +124,17 @@ pub trait NodeRpcClient: Send + Sync {
124124 /// the `/GetBlockByNumber` RPC endpoint.
125125 async fn get_block_by_number ( & self , block_num : BlockNumber ) -> Result < ProvenBlock , RpcError > ;
126126
127- /// Fetches note-related data for a list of [NoteId] using the `/GetNotesById` rpc endpoint.
127+ /// Fetches note-related data for a list of [` NoteId` ] using the `/GetNotesById` rpc endpoint.
128128 ///
129- /// For any NoteType::Private note, the return data is only the
130- /// [miden_objects::note::NoteMetadata], whereas for NoteType::Onchain notes, the return
131- /// data includes all details.
129+ /// For any `[miden_objects::note:: NoteType::Private]` note, the return data is only the
130+ /// [` miden_objects::note::NoteMetadata` ], whereas for [`miden_objects::note:: NoteType::Public`]
131+ /// notes, the return data includes all details.
132132 async fn get_notes_by_id ( & self , note_ids : & [ NoteId ] ) -> Result < Vec < FetchedNote > , RpcError > ;
133133
134134 /// Fetches info from the node necessary to perform a state sync using the
135135 /// `/SyncState` RPC endpoint.
136136 ///
137- /// - `block_num` is the last block number known by the client. The returned [StateSyncInfo]
137+ /// - `block_num` is the last block number known by the client. The returned [` StateSyncInfo` ]
138138 /// should contain data starting from the next block, until the first block which contains a
139139 /// note of matching the requested tag, or the chain tip if there are no notes.
140140 /// - `account_ids` is a list of account IDs and determines the accounts the client is
@@ -207,7 +207,8 @@ pub trait NodeRpcClient: Send + Sync {
207207 /// then `None` is returned.
208208 /// The `block_num` parameter is the block number to start the search from.
209209 ///
210- /// The default implementation of this method uses [NodeRpcClient::check_nullifiers_by_prefix].
210+ /// The default implementation of this method uses
211+ /// [`NodeRpcClient::check_nullifiers_by_prefix`].
211212 async fn get_nullifier_commit_height (
212213 & self ,
213214 nullifier : & Nullifier ,
@@ -221,11 +222,11 @@ pub trait NodeRpcClient: Send + Sync {
221222 . map ( |update| update. block_num ) )
222223 }
223224
224- /// Fetches public note-related data for a list of [NoteId] and builds [InputNoteRecord]s with
225- /// it. If a note is not found or it's private, it is ignored and will not be included in the
226- /// returned list.
225+ /// Fetches public note-related data for a list of [` NoteId` ] and builds [` InputNoteRecord`]s
226+ /// with it. If a note is not found or it's private, it is ignored and will not be included
227+ /// in the returned list.
227228 ///
228- /// The default implementation of this method uses [NodeRpcClient::get_notes_by_id].
229+ /// The default implementation of this method uses [` NodeRpcClient::get_notes_by_id` ].
229230 async fn get_public_note_records (
230231 & self ,
231232 note_ids : & [ NoteId ] ,
@@ -256,7 +257,7 @@ pub trait NodeRpcClient: Send + Sync {
256257 /// The `local_accounts` parameter is a list of account headers that the client has
257258 /// stored locally and that it wants to check for updates. If an account is private or didn't
258259 /// change, it is ignored and will not be included in the returned list.
259- /// The default implementation of this method uses [NodeRpcClient::get_account_details].
260+ /// The default implementation of this method uses [` NodeRpcClient::get_account_details` ].
260261 async fn get_updated_public_accounts (
261262 & self ,
262263 local_accounts : & [ & AccountHeader ] ,
@@ -280,7 +281,8 @@ pub trait NodeRpcClient: Send + Sync {
280281 /// Given a block number, fetches the block header corresponding to that height from the node
281282 /// along with the MMR proof.
282283 ///
283- /// The default implementation of this method uses [NodeRpcClient::get_block_header_by_number].
284+ /// The default implementation of this method uses
285+ /// [`NodeRpcClient::get_block_header_by_number`].
284286 async fn get_block_header_with_proof (
285287 & self ,
286288 block_num : BlockNumber ,
@@ -291,10 +293,10 @@ pub trait NodeRpcClient: Send + Sync {
291293
292294 /// Fetches the note with the specified ID.
293295 ///
294- /// The default implementation of this method uses [NodeRpcClient::get_notes_by_id].
296+ /// The default implementation of this method uses [` NodeRpcClient::get_notes_by_id` ].
295297 ///
296298 /// Errors:
297- /// - [RpcError::NoteNotFound] if the note with the specified ID is not found.
299+ /// - [` RpcError::NoteNotFound` ] if the note with the specified ID is not found.
298300 async fn get_note_by_id ( & self , note_id : NoteId ) -> Result < FetchedNote , RpcError > {
299301 let notes = self . get_notes_by_id ( & [ note_id] ) . await ?;
300302 notes. into_iter ( ) . next ( ) . ok_or ( RpcError :: NoteNotFound ( note_id) )
0 commit comments