Skip to content

Commit

Permalink
update doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
45930 committed Jan 9, 2025
1 parent 67d9570 commit 5ef0bdc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/mina/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -641,9 +641,11 @@ function sendZkapp(
* @returns A promise that resolves to an array of objects containing event data, block information and transaction information for the account.
* @throws If the GraphQL request fails or the response is invalid.
* @example
* ```ts
* const accountInfo = { publicKey: 'B62qiwmXrWn7Cok5VhhB3KvCwyZ7NHHstFGbiU5n7m8s2RqqNW1p1wF' };
* const events = await fetchEvents(accountInfo);
* console.log(events);
* ```
*/
async function fetchEvents(
accountInfo: { publicKey: string; tokenId?: string },
Expand Down Expand Up @@ -701,9 +703,11 @@ async function fetchEvents(
* @throws Will throw an error if the GraphQL endpoint is invalid or if the fetch request fails.
*
* @example
* ```ts
* const accountInfo = { publicKey: 'B62qiwmXrWn7Cok5VhhB3KvCwyZ7NHHstFGbiU5n7m8s2RqqNW1p1wF' };
* const actionsList = await fetchAccount(accountInfo);
* console.log(actionsList);
* ```
*/
async function fetchActions(
accountInfo: ActionsQueryInputs,
Expand Down

0 comments on commit 5ef0bdc

Please sign in to comment.