-
Notifications
You must be signed in to change notification settings - Fork 15
tmp RPC
Tanmay Bhattacharya edited this page Apr 25, 2020
·
38 revisions
broadcasttxqueryownernodeeth
- Public service for inter-op transactions (Lock and Redeem ) with the ethereum network .
Methods:
- Lock
-
eth.CreateRawExtLock- Returns an unsigned oneledger transaction for lock .
-
Request
{
"RawTx": Signed Ethereum transaction which for calling lock() function in smart contract
"Address": Locking address to get Ethereum on Oneledger network .
"Fee": Fee for this Oneledger transaction paid in olt
"Gas": Gas for this Oneledger transaction
}
Response
{
"RawTX : Unsigned Oneledger transaction
}
Example
{
"rawTx":" +GyBhoUEqBfIAINmkbaUwI5VibG3qjkvYhwuLhHgabqtPpNkhPg9CLqCCpagOg17y4f5Gq4QBA70WBtYfKmponAxH7UGqyqtLnwiL/KgdZ+Ta/0G4JpAaXpOU/D53kNz/97gFehPIjiLpBE6TRw=",
"Address": "0ltd97c69531169bf142ef40279ff2a00a0802e5df2",
"fee": {
"currency": "OLT",
"value": "10000000000"
},
"gas": 400000
}
`
- 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
-
- 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
-
© OneLedger 2018-2020 Contact Information