To send transactions to a blockchain network, you need a private key to sign these transcations, and the private key should contain enough funds to cover the gas price for the transaction.
You can sign transactions with private keys you created outside SettleMint with e.g. MetaMask or other wallet solutions. SettleMint however provides an option to create and manage private keys within the platform.
When you deploy a blockchain node it contains a signing proxy that captures the eth_sendTransaction call, uses the appropriate key from the private key section to sign it, and sends it onwards to the blockchain node. You can use this proxy directly via the nodes JSON-RPC endpoints (https://eth.wiki/json-rpc/API) and via tools like Hardhat (https://hardhat.org/config/#json-rpc-based-networks) configured to use the “remote” default option for signing. The smart contract set IDE is preconfigured to use this signing proxy.
Create a private key
Navigate to your application , click Private keys in the left navigation, and then click Create a private key. This opens a form.
Follow these steps to create the private key:
Choose a private key type. You can choose between two types Accessible ECDSA P256 These are Ethereum-style private keys and are generated from a mnemonic and the standard derivation path. You can access the public key and address, and the private key and mnemonic. This is easy to use in external tools, in deployment scripts, and to import in e.g. MetaMask. Since the private key is exposed, it is not a good idea to use these keys to hold significant access rights and funds. HSM ECDSA P256 The HSM variant of the private keys allows you to do the same things, but only via the signing proxy. The private key never leaves the HSM and cannot be exposed to you, or even administrators of the platform. These keys are recommended for production projects or mainnet projects where the key manages large amounts of funds or access rights.
Choose a name for your private key.
Select the nodes on which you want the key to be active. You can change this later in the Nodes tab of your private key.
You see the cost for this private key displayed at the bottom of the form. Click Confirm to add the private key.
The private key is now added to the overview. You can click the private key to see detailed information.
Fund the private key
For networks that require gas to perform a transaction, your private key should contain enough funds to cover the gas price.
In the Private key section, you can fund your private key with the native cryptocurrency of that network.
Follow these steps to fund your key:
- Click the private key in the overview to see detailed information
- Open the Balances tab. You see a list of all the networks you added in your application, together with the option to fund the private key.
- Click Fund. This opens a QR code.
- Scan the QR code with the exchange or wallet of your choice to fund your private key.