Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions www/docs/guides/connect_account.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,3 @@ const myEthAccountAddressInStarknet =
const myEthSigner = new EthSigner(myEthPrivateKey);
const myEthAccount = new Account(provider, myEthAccountAddressInStarknet, myEthSigner);
```

And if you need a random Ethereum private key:

```typescript
const myPrivateKey = eth.ethRandomPrivateKey();
```
10 changes: 9 additions & 1 deletion www/docs/guides/create_account.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,14 @@ const contractETHaddress = hash.calculateContractAddressFromHash(
console.log('Pre-calculated ETH account address =', contractETHaddress);
```

> If you need a random Ethereum private key:
>
> ```typescript
> const myPrivateKey = eth.ethRandomPrivateKey();
> ```

````

Then you have to fund this address.

### Deployment of the new account
Expand All @@ -271,7 +279,7 @@ const { transaction_hash, contract_address } = await ethAccount.deployAccount(
);
await provider.waitForTransaction(transaction_hash);
console.log('✅ New Ethereum account final address =', contract_address);
```
````

## Create your account abstraction

Expand Down