diff --git a/.vitepress/scripts/rpc-docs.ts b/.vitepress/scripts/rpc-docs.ts index fc9c293..5c4b135 100644 --- a/.vitepress/scripts/rpc-docs.ts +++ b/.vitepress/scripts/rpc-docs.ts @@ -79,19 +79,21 @@ export async function generateRpcDocs() { ::: code-group \`\`\`JavaScript -const url = new URL('http://127.0.0.1:8648'); -const res = await fetch(url, { - method: 'POST', - headers: { - 'Content-Type': 'application/json' - }, - body: { - "jsonrpc": "2.0", - "method": "{{ methodName }}", - "params": [{{ parametersValues }}], - "id": 1 +const res = await fetch( + 'http://127.0.0.1:8648', + { + method: 'POST', + headers: { + 'Content-Type': 'application/json' + }, + body: { + "jsonrpc": "2.0", + "method": "{{ methodName }}", + "params": [{{ parametersValues }}], + "id": 1 + } } -}); +); const data = await res.json(); \`\`\`