(pathname: string)
| 493 | }); |
| 494 | |
| 495 | function makeBaseUrl(pathname: string) { |
| 496 | return `${pathname}?json`; |
| 497 | } |
| 498 | |
| 499 | async function baseRpcCall(pathname: string, params: Record<string, unknown> = {}) { |
| 500 | const response = await fetch(makeBaseUrl(pathname), { |