Skip to content

tmp RPC

Tanmay Bhattacharya edited this page Apr 24, 2020 · 38 revisions

JSONRPC Backend

Services

  • broadcast
  • tx
  • query
  • owner
  • node
  • eth

Ethereum [eth]

  • Public service for inter-op transactions (Lock and Redeem ) with the ethereum network .

Methods:

  • Lock
    • eth.CreateRawExtLock
      • Takes users ethereum adress as input.
      • Creates an unsigned ethereum transaction for the user.
    • eth.CreateRawExtLock
      • Takes a signed ethereum transaction as input
      • Create and returns a raw oneledger transaction for Lock.
  • Redeem
    • eth.CreateRawExtRedeem
      • Takes a signed ethereum redeem transaction as input .
      • Create and returns a raw oneledger transaction for redeem.
  • Tracker Status
    • eth.GetTrackerStatus
      • Returns the status of the tracker provided.
    • eth.GetFailedTrackerStatus
      • Returns the status of the tracker if it failed ,else returns an error
    • eth.GetFailedTrackerStatus
      • Returns the status of the tracker if it successfully completed ,else returns an error

Query [query]

  • Public service to query details from the oneledger network .

Methods:

  • Balance
    • query.Balance
      • Return the balance of the address provided
  • ListValidators
    • query.CreateRawExtRedeem
      • Returns a list of all validators in the network
  • List Currencies
    • query.ListCurrencies
      • Returns a list of all the currencies supported by the network.
  • Currency Balance
    • query.ListCurrencies
      • Takes an address an a currency as input.
      • Returns the currency balance for that address
  • Fee Options
    • query.FeeOptions
      • Returns the fee options ,which includes the currency and decimal points used to pay oneledger fees.
  • List Currencies * query.ListCurrencies
    • Returns a list of all the currencies supported by the network.
  • Tx * * query.Tx
    • Takes a oneledger transaction as input.
    • Return the details for the transaction
Clone this wiki locally