Implicit Accounts
Background
Implicit accounts work similarly to Bitcoin/Ethereum accounts.
- They allow you to reserve an account ID before it's created by generating a ED25519 key-pair locally.
- This key-pair has a public key that maps to the account ID.
- The account ID is a lowercase hex representation of the public key.
- An ED25519 Public key contains 32 bytes that maps to 64 characters account ID.
- The corresponding secret key allows you to sign transactions on behalf of this account once it's created on chain.
정보
You can find the implicit accounts specification here.
Creating an account locally
For the purpose of this demo, we'll use the betanet network.
Set betanet network
export NEAR_ENV=betanet
Generating the Implicit account
near account create-account fund-later use-auto-generation save-to-folder ~/.near-credentials/implicit
Example Output
The file "~/.near-credentials/testnet/8bca86065be487de45e795b2c3154fe834d53ffa07e0a44f29e76a2a5f075df8.json" was saved successfully
Here is your console command if you need to script it or re-run:
near account create-account fund-later use-auto-generation save-to-folder ~/.near-credentials/implicit