What is the equivalent in ethers.js to
web3.eth.sendTransaction({from: "0x...", to: "0x...", value: ...})
to send a transaction from an unlocked account in geth.
I only can find signed transactions described in the docs.
// However you connect to your JSON-RPC node
let provider = new ethers.providers.JsonRpcProvider();
// You can pass in either the from address or the index
let signer = provider.getSigner(addressOrIndex);
// Send 1 ether to me... :)
signer.sendTransaction({
to: "ricmoo.firefly.eth",
value: ethers.utils.parseEther("1.0")
});
See: Signer API
Got it!
Most helpful comment
See: Signer API