Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Address string PrivateKey *ecdsa.PrivateKey PrivateKeyEncoded string PublicKeyEncoded string }
type AccountRepository ¶
type AccountRepository interface { CreateAccount(password string) (string, error) GetAccount(address string, password string) (Account, error) }
func NewAccountRepository ¶
func NewAccountRepository(keyStorePath string) AccountRepository
type AccountService ¶
type AccountService interface { CreateAccount(password string) (string, error) GetAccount(address string, password string) (Account, error) GetBalance(ctx context.Context, address string) (big.Float, error) }
func NewAccountService ¶
func NewAccountService(accountRepository AccountRepository, client *ethclient.Client) AccountService
Click to show internal directories.
Click to hide internal directories.