LogoLogo
  • Introduction
  • Radius testnet access
  • Quickstart
    • Command line
    • Go
    • JavaScript
    • Postman
    • Python
    • Rust
    • TypeScript
  • How to
    • Create a Private Key
    • Get testnet ETH tokens
    • Deploy a smart contract
  • Concepts
    • Ethereum transaction types
  • Tutorials
  • Radius SDKs
  • API Reference
    • eth_blockNumber
    • eth_call
    • eth_chainId
    • eth_createAccessList
    • eth_estimateGas
    • eth_feeHistory
    • eth_gasPrice
    • eth_getBalance
    • eth_getBlock
    • eth_getBlockByHash
    • eth_getBlockByNumber
    • eth_getBlockTransactionCountByHash
    • eth_getBlockTransactionCountByNumber
    • eth_getCode
    • eth_getLogs
    • eth_getStorageAt
    • eth_getTransactionByBlockHashAndIndex
    • eth_getTransactionByBlockNumberAndIndex
    • eth_getTransactionByHash
    • eth_getTransactionCount
    • eth_getTransactionReceipt
    • eth_sendRawTransaction
    • eth_sendTransaction
    • net_version
    • web3_clientVersion
    • web3_sha3
    • web3_getTransactionCount
  • Release Notes
  • Whitepaper
  • Radius Discord
Powered by GitBook
On this page
  • Using MetaMask
  • Create a new Account
  • Getting the private key of your account
  • Using Cast
  • Generate a keypair

Was this helpful?

Edit on GitHub
  1. How to

Create a Private Key

PreviousHow toNextGet testnet ETH tokens

Last updated 2 months ago

Was this helpful?

Like most other cryptocurrencies, to send and recieve funds on Radius, you will need to generate a keypair and the associated Ethereum address. If you already have an Ethereum address and the corresponding keypair, you can use it on Radius to sign transactions and receive funds. Below we explain how you may generate one if you don't have one, or would like to create a new one.

There are many ways to do this. For l33t coders or folks who prefer a CLI interface, we recommend using . For those more comfortable with a browser and GUI, is a reasonable option.

Using MetaMask

is a popular Ethereum wallet that runs in most popular browsers.

When setting up for the first time, there will be a few simple steps to complete.

  1. Click "Create a new wallet"

  2. Finish the account setup process

  3. You should now have an account setup.

At the top middle of the screen, you will see an account nickname (default is "Account 1"), and your account address.

Create a new Account

  1. If you click on the account dropdown (the arrow next to the account nickname), you will see a prompt to "Add account or hardware wallet".

  2. Click "Add account or hardware wallet", then click "Add a new Ethereum account".

  3. Enter a nickname (or don't) and click "Add account". You should now have another account in MetaMask.

Getting the private key of your account

For app development you will likely want to work outside of MetaMask, and will likely need a way to sign transactions.

  1. Click on the account dropdown, and click the three dots next to the account for which you want to get the private key.

  2. Click on account details.

  3. Click on "Show private key" WARNING! If you plan to use this private key for anything sensitive, do not share this with anyone. Maybe even go hide in a corner when you display it on the screen.

  4. You can copy your private key from there.

Using Cast

curl -L https://foundry.paradigm.xyz | bash

If you're going this route, it's the opinion of the author that you should get familiar with the tools cast, and foundry. Additionally local testing of smart contracts can be done easily with anvil.

Generate a keypair

Once setup, generating a keypair is as simple as:

cast wallet new

This will print a keypair to the console.

$ cast wallet new
Successfully created new keypair.
Address:     0x7E5F4552091A69125d5DfCb7b8C2659029395Bdf
Private key: 0x0000000000000000000000000000000000000000000000000000000000000001

Then save these values somewhere, and use the given private key to sign transactions.

If you like, you can import this private key into Metamask or other popular wallets for a graphical interface by which you can send transactions and check your balance.

is a CLI tool for interacting with Ethereum. It's developed by Foundry, maintained by Paradigm. You can start installiation in your terminal with:

Or follow the .

Cast
official instructions
Metamask
cast
MetaMask