Skip to content

tmp RPC

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

Ethereum [eth]

  • 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 .
Clone this wiki locally