ethereum / interfaces

Interface Specifications inside Ethereum
36 stars 175 forks source link

eth_defaultAccount #12

Open gavofyork opened 7 years ago

gavofyork commented 7 years ago

Summary

At present two RPCs allow dapps clients to ascertain a default account from which to send transactions: eth_coinbase and eth_accounts. Neither are well-suited. eth_coinbase is the already defined as the preferred block author for mining/sealing and in certain setups this may collide with the account from which transactions should be signed by default. eth_accounts returns a list of available accounts with not a single one being necessarily favourite.

This proposal is to create a new RPC for the sole duty of determining a default transaction signing account.

Spec

Notes

To be as backwards compatible as possible, client authors should consider:

Incubation

We propose the final RPC endpoint for this be eth_defaultAccount; if an incubation period is required, we suggest arb_defaultAccount be adopted initially.