Rebar

RPC Data Access

Programmatic access to real-time blockchain data with webhooks for live updates

RPC Endpoint

http://rpc.rebar.xyz

Use this endpoint to access all node data and subscribe to real-time updates

RESTful API

Standard HTTP endpoints for easy integration

Real-time Webhooks

Get notified instantly when data changes

Live Data

Access real-time blockchain data streams

SDK Examples

Get started with these code examples in your preferred language

Enter a specific node address to customize the code examples below

JavaScript/TypeScript

import { RebarClient } from '@rebar_xyz/sdk'

// Initialize the client
const client = new RebarClient('http://rpc.rebar.xyz')

// Get a node's parsed value (recommended)
const value = await client.getValue<number>('rebar1your-node-address')

// Get full node data including metadata
const node = await client.getNode('rebar1your-node-address')

// Watch for real-time value changes
const connection = client.watchRecalcs(['rebar1your-node-address'], () => {
  console.log('Node value updated!')
})

cURL

# Get full node data including metadata
curl -X GET "http://rpc.rebar.xyz:1317/rebar/rebar/node/rebar1your-node-address" \
  -H "Content-Type: application/json"

Installation

JavaScript/TypeScript

npm install @rebar_xyz/sdk

Ready to Build?

Explore our documentation for advanced features and examples