You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/api/query-helpers.ts
+47Lines changed: 47 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -111,6 +111,53 @@ export function getBlockParams(
111
111
}
112
112
}
113
113
114
+
/**
115
+
* Parses a block hash value from a given request query param.
116
+
* If an error is encountered while parsing the param then a 400 response with an error message is sent and the function throws.
117
+
* @param queryParamName - name of the query param
118
+
* @param paramRequired - if true then the function will throw and return a 400 if the param is missing, if false then the function will return null if the param is missing
0 commit comments