Ramestta
  • 🤝Welcome To Ramestta
    • Overview
    • Ramestta Pos Chain
    • Building on Ramestta
    • Architecture
      • Heimdall
      • Bor
      • Contracts
        • Genesis contracts
        • Delegation via validator shares
        • Staking manager
        • Burns
    • Bridge
      • Core
        • Polygon To Ramestta
        • Ramestta To Polygon
      • Plasma
        • Deposit
        • Withdraw
      • PoS
        • Deposit
        • Withdraw
      • PoS vs Plasma Bridge
    • Node Setup
      • Sentry Node
        • Mainnet
        • Testnet
      • Validator Node
        • Mainnet
        • Testnet
      • Heimdall and Bor Snapshots
    • Security models
    • Staking - Validators and Delegators
    • Validate
      • Validator Responsibilities
      • Maintaining your validator node
      • How to Become a Validator(Testnet)
    • Delegate
      • FAQ's
    • Deploy smart contracts
    • MetaMask Installation & Set up Web3 RPC URL
  • 🪙Blockchain Fundamental
    • Introduction
      • What is a Blockchain?
      • Types of Blockchain
      • Consensus Mechanism
    • Bitcoin
    • Ethereum
      • Accounts
      • Solidity
      • Proof of Stake
      • Transactions
      • Gas
    • Layer2 Blockchain
      • Side Chain
      • Rollup
  • ⚙️Ramestta SDK
    • Rama.js
      • Plasma
        • RAMA20
        • RAMA721
        • Common Methods
      • POS
        • RAMA20
        • RAMA721
        • RAMA1155
        • Common Methods
      • setProofApi
Powered by GitBook
On this page
  1. Ramestta SDK
  2. Rama.js

setProofApi

PreviousCommon Methods

Last updated 1 year ago

You will see some of the APIs with faster suffix, which makes the process faster. It does so by using proof generation api in the backend which can be hosted by anyone.

Ramestta has hosted the proof generation api which can be used by anyone. The API url is -

The setProofApi can be used to set the proof api url.

import { setProofApi } from '@ramestta/ramajs'

setProofApi("https://proof-generator.ramestta.com/");

👉 We recommend to host the proof API by yourself which will give you better performance. The default api provided by Ramestta might have performance issue as it is being used by multiple people.

Here is proof api repo link -

After you have deployed the api, you can set the api url in rama.js by using setProofApi.

e.g - if you have deployed the proof api and the base url is - https://xyz.com/, then you need to set base url in setProofApi

import { setProofApi } from '@ramestta/ramajs'

setProofApi("https://xyz.com/");

We recommend using faster API's, because some API's particularly where proof is being generated does a lot of RPC calls and it might be very slow with public RPC's.

⚙️
https://proof-generator.ramestta.com/
https://github.com/Ramestta-Blockchain/proof-generation-api