-
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 which can be signed and broadcast for lock
}
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.
`
Request
{
"UserOLTaddress": Oneledger address from which ether will be deducted on Onledger network .
"UserETHaddress": Ethereum address which receives ether on Ethereum network.
"ETHTxn": Broadcasted Ethereum transaction for calling redeem() function in smart contract .
"Fee": Fee for this Oneledger transaction paid in olt
"Gas": Gas for this Oneledger transaction }
-
Response { "RawTX : Unsigned Oneledger transaction which can be signed and broadcast for redeem }
Example { "userOLTAddress": "0ltd97c69531169bf142ef40279ff2a00a0802e5df2", "userETHAddress": "0x3760136a6327e6e3f6e6284e2173da2414e89894", "ethTxn": "+JOBh4UEqBfIAINgdzaUwI5VibG3qjkvYhwuLhHgabqtPpOHI4byb8EAAKTbAGp1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAqCCpWgOXW9h5ECVid19oikWZgNfPveTE0qKlyCJaurPa8qRjCgUU3Okp2N1YS0dpVqDqLFSLA3pT7Nlp2F+xBOBqmo00s=", "fee": { "currency": "OLT", "value": "10000000000" }, "gas": 400000 } `
- 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