Skip to content

Commit

Permalink
Merge pull request #59 from nimiq/onmax/rpc-link-to-migration
Browse files Browse the repository at this point in the history
added link to migration docs
  • Loading branch information
onmax authored Oct 1, 2024
2 parents 6ddf546 + bdc2536 commit 0a12fa0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
17 changes: 17 additions & 0 deletions .vitepress/theme/components/RpcDocsHeaderActions.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<script setup lang="ts">
const specUrl = __ALBATROSS_RPC_OPENRPC_URL__
const specVersion = __ALBATROSS_RPC_OPENRPC_VERSION__
</script>

<template>
<div flex="~ items-center gap-32 justify-start" my-32 class="nq-raw">
<span op-80 text-14>Version {{ specVersion }}</span>
<a :href="withBase('/migration/migration-json-rpc')" nq-pill-orange nq-pill-sm nq-arrow cursor-pointer un-text="white" flex="~ gap-8 items-center">
Migrate from Nimiq 1.0
</a>
<a :href="specUrl" nq-pill-tertiary nq-pill-sm cursor-pointer flex="~ gap-8 items-center" download un-text="neutral-900">
<div i-nimiq:arrow-to-bottom op-80 />
Download OpenRPC.json
</a>
</div>
</template>
13 changes: 1 addition & 12 deletions build/set-up-your-own-node/rpc-docs/index.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
# Nimiq JSON-RPC Specification

<script setup lang="ts">
const specUrl = __ALBATROSS_RPC_OPENRPC_URL__
const specVersion = __ALBATROSS_RPC_OPENRPC_VERSION__
</script>

<div flex="~ items-baseline gap-32 justify-start" my-32 class="nq-raw">
<span op-80 text-14>Version {{specVersion}}</span>
<a :href="specUrl" nq-pill-tertiary nq-pill-sm cursor-pointer flex="~ gap-8 items-center" download un-text="neutral-900">
<div i-nimiq:nq-arrow-to-bottom op-80></div>
Download OpenRPC.json
</a>
</div>
<RpcDocsHeaderActions />

Through the use of JSON-RPC, Nimiq nodes expose a set of standardized methods and endpoints that allow external applications and tools to interact, stream and control the behavior of the nodes. This includes functionalities such as retrieving information about the blockchain state, submitting transactions, managing accounts, and configuring node settings.

Expand Down

0 comments on commit 0a12fa0

Please sign in to comment.