Skip to content

Add basic wallet functionality: check balance, unlock, transfer to external address #4298

@kilrau

Description

@kilrau

Abstract

For our use case, the following API calls are missing, see specification.

Motivation

We want to be able to 1) check our on-chain balance and 2) unlock an ethereum keystore file 3) send on-chain funds to an external address. All directly through raiden, without dealing with another client (e.g. geth).

This is mainly to enable the user to stick with one keystore file/account managed solely by raiden. Using another client touching the keystore to e.g. transfer funds out on-chain causes severe issues (crashes) for raiden because the nonce counting gets messed up.

Specification

API calls:

  1. check our own on-chain balance of ETH and token(s).
  2. unlock a keystore file (not via password file, this is security-wise problematic: feat: create eth keystore with master seed ExchangeUnion/xud#1247 (review)), something like v1/api/unlock - { address: "...", password: "pswd" }
  3. send on-chain ETH and Token(s) to an external address

*1) should be relatively easy to expose since functionality already exists.

Backwards Compatibility

It's new calls, I don't see a problem here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions