All Projects → rchain-community → rchain-api

rchain-community / rchain-api

Licence: other
An API for rchain dapps to communicate with the blockchain

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to rchain-api

Carmel
The Open Digital Innovation Marketplace
Stars: ✭ 136 (+518.18%)
Mutual labels:  dapp, decentralization
platform
L2 solution for seriously fast decentralized applications for the Dash network
Stars: ✭ 24 (+9.09%)
Mutual labels:  dapp, decentralization
Unstoppable Wallet Android
A secure and decentralized Bitcoin and other cryptocurrency wallet for Android phones. Supports Bitcoin, Ethereum, EOS, Binance Chain, Bitcoin Cash, DASH, ...
Stars: ✭ 165 (+650%)
Mutual labels:  dapp, decentralization
DAOcreator
dApp for creating and interacting with DAOs
Stars: ✭ 34 (+54.55%)
Mutual labels:  dapp, decentralization
Unstoppable Wallet Ios
A secure and decentralized Bitcoin and other cryptocurrency wallet for iPhone. Supports Bitcoin, Ethereum, EOS, Binance Chain, Bitcoin Cash, DASH, ...
Stars: ✭ 180 (+718.18%)
Mutual labels:  dapp, decentralization
colonyDapp
Colony dApp client
Stars: ✭ 52 (+136.36%)
Mutual labels:  dapp
court
The Kleros court user interface.
Stars: ✭ 19 (-13.64%)
Mutual labels:  dapp
zeneth
🏵️ Let Your ETH Chill — Gasless Ethereum account abstraction with Flashbots
Stars: ✭ 112 (+409.09%)
Mutual labels:  dapp
poa-popa
DApp for proof of physical address (PoPA) attestation for validators of POA Network
Stars: ✭ 22 (+0%)
Mutual labels:  dapp
Artion-Client
Client app for Artion, a global NFT marketplace on Fantom Opera.
Stars: ✭ 71 (+222.73%)
Mutual labels:  dapp
create-truffle-dapp
Create and deploy Truffle projects with no configuration.
Stars: ✭ 17 (-22.73%)
Mutual labels:  dapp
tzprofiles
Create portable verified profiles on Tezos with public accounts.
Stars: ✭ 37 (+68.18%)
Mutual labels:  dapp
vue-web3
🐙 Web3 blockchain bindings for Vue.js (inspired by Vuefire and Drizzle)
Stars: ✭ 63 (+186.36%)
Mutual labels:  dapp
goblockchain.github.io
Site of GoBlockchain.io
Stars: ✭ 27 (+22.73%)
Mutual labels:  dapp
jelly-beats
A decentralized music and podcasts streaming platform
Stars: ✭ 69 (+213.64%)
Mutual labels:  dapp
foodprint
Algorand dApp for blockchain-enabled food transparency and traceability in local food supply chains. For use by smallholder farmers, food co-operatives and consumers.
Stars: ✭ 43 (+95.45%)
Mutual labels:  dapp
view-admin-as
View the WordPress admin as a different role, switch between users, temporarily change your capabilities, set default screen settings for roles, manage your roles and capabilities.
Stars: ✭ 44 (+100%)
Mutual labels:  capabilities
BankRollerApp
Desktop application for bankroller. Invest BET and take reward for random generation.
Stars: ✭ 38 (+72.73%)
Mutual labels:  dapp
trampoline
A complete dapp development framework for Nervos Network
Stars: ✭ 27 (+22.73%)
Mutual labels:  dapp
defi
Tools for use in DeFi. Impermanent Loss calculations, staking and farming strategies, coingecko and pancakeswap API queries, liquidity pools and more
Stars: ✭ 464 (+2009.09%)
Mutual labels:  dapp

RChain-API

An API for dApp frontends to communicate with the RChain blockchain.

The RChain Cooperative is developing a decentralized, economically sustainable public compute infrastructure. Decentralized applications or "dApps" will run their business logic as smart contracts on the blockchain. Their user interfaces will be more traditional programs that interact with the blockchain as a backend. This separation allows dApp developers to create nice abstract interfaces, and allows end users to create their own sovereign interfaces should they choose to do so.

Quickstart

Install with npm install rchain-community/rchain-api. Then, to get current block info from testnet:

import { RNode } = from 'rchain-api';

const obs = RNode(fetch)
  .observer('https://observer.testnet.rchain.coop');
(async () => {
  const blocks = await rnode.getBlocks(1);
  assert.ok(blocks[0].blockHash);
})();

If your node is a validator and you have a key to authorize payment, you can deploy code:

const { RNode, signDeploy } = require('rchain-api');

const val = RNode(fetch)
  .validator('https://node1.testnet.rchain-dev.tk');

const term = '@"world"!("Hello!")';
const myKey = '11'.repeat(32);
const timestamp = new Date('2019-04-12T17:59:29.274Z').valueOf();
const [recent] = await observer.getBlocks(1);
const info = signDeploy(myKey, { timestamp, term, phloLimit: 10000, phloPrice: 1, validAfterBlockNumber: recent.blockNumber });
rnode.deploy(info).then((message) => { assert(message.startsWith('Success')); });

API (OUT OF DATE)

./docs/

Getting access to an RChain node

Choices include:

Examples and Related Projects

  • Nth Caller a minimal RChain-based dApp game that uses RChain-API
  • Status a moderately complex dapp that uses more RChain-API features as well as RSign
  • Coin Faucet An advanced robust dApp that use raspberry PI to airdrop tokens to devices in physical proximity
  • RChain-dbr A web-of-trust based distributed budgeting and rewards dApp
  • RSign A chrome extension for generating client-side signatures akin to metamask
  • node-client A similar but less mature RChain API written in python

License

Copyright 2018-2019 RChain Cooperative

Apache 2.0 License (See LICENSE.txt)

Contributions welcome (See CONTRIBUTING.md)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].