Flow Blockchain with Cadence Language

Creating of an account in Blockchain Network

In flow blockchain, one can create account as follows:

flow accounts create 

But first of all, you need to initialize the flow-based blockchain

flow init

๐Ÿ”„ Installing selected core contracts and dependenciesโ€ฆ

๐ŸŽ‰ Congrats! Your project was created.

Start development by following these steps:

  1. cd sampleproject to change to your new project,
  2. flow emulator or run Flowser to start the emulator,
  3. flow test to test your project.

You should also read README.md to learn more about the development process!

I name the project name as โ€œsampleprojectโ€

so you have to traverse into the directory:

cd sampleproject

give a name and select the emulator-based blockchain simulation

In order to provide a safe connection, you need to type the following flow command`to run a emulator server:

flow emulator

The emulator screen will shown as follows:


7:37PM Logs

  • INF ๐Ÿ“œ Flow contract
    FlowClusterQC=0xf8d6e0586b0a20c7
  • INF ๐Ÿ“œ Flow contract
    FlowDKG=0xf8d6e0586b0a20c7
  • INF ๐Ÿ“œ Flow contract
    FlowEpoch=0xf8d6e0586b0a20c7
  • INF ๐Ÿ“œ Flow contract
    FlowFees=0xe5a8b7f23e8b548f
  • INF ๐Ÿ“œ Flow contract
    FlowIDTableStaking=0xf8d6e0586b0a20c7
  • INF ๐Ÿ“œ Flow contract
    FlowServiceAccount=0xf8d6e0586b0a20c7
  • INF ๐Ÿ“œ Flow contract
    FlowStorageFees=0xf8d6e0586b0a20c7
  • INF ๐Ÿ“œ Flow contract
    FlowToken=0x0ae53cb6e3f42a79
  • INF ๐Ÿ“œ Flow contract
    FungibleToken=0xee82856bf20e2aa6
  • INF ๐Ÿ“œ Flow contract
    FungibleTokenMetadataViews=0xee82856bf20e2aa6
  • INF ๐Ÿ“œ Flow contract
    FungibleTokenSwitchboard=0xee82856bf20e2aa6
  • INF ๐Ÿ“œ Flow contract
    MetadataViews=0xf8d6e0586b0a20c7
  • INF ๐Ÿ“œ Flow contract
    NodeVersionBeacon=0xf8d6e0586b0a20c7
  • INF ๐Ÿ“œ Flow contract
    NonFungibleToken=0xf8d6e0586b0a20c7
  • INF ๐Ÿ“œ Flow contract
    RandomBeaconHistory=0xf8d6e0586b0a20c7
  • INF ๐Ÿ“œ Flow contract
    ViewResolver=0xf8d6e0586b0a20c7

  • INF ๐ŸŒฑ Starting gRPC server on port 3569
    port=3569
  • INF ๐ŸŒฑ Starting REST API on port 8888
    port=8888
  • INF ๐ŸŒฑ Starting admin server on port 8080
    port=8080
  • INF ๐ŸŒฑ Starting debugger on port 2345
    port=2345

  • INF โœ… Started REST API server on port 8888
    port=8888
  • INF โœ… Started admin server on port 8080
    port=8080
  • INF โœ… Started gRPC server on port 3569
    port=3569

After typing โ€˜flow accounts createโ€™ again, you see the result:

Address  0x179b6b1cb6755e31
Balance  0.00100000
Keys     1

Key 0   Public Key               dd784c90c51288bd24e52e057cdccdc58e4f5792530c695c5e5e5174ac856ece763f88e65b644ca2b523044d2d1c053de7f8250374082161706d6cea722ebd2d
        Weight                   1000
        Signature Algorithm      ECDSA_P256
        Hash Algorithm           SHA3_256
        Revoked                  false
        Sequence Number          0
        Index                    0

Contracts Deployed: 0

Congrats!!! You have initiated an account by means of a transaction into the blockchain network.

Comments

Leave a comment

What is 2 + 3?
Please solve the arithmetic question above to verify you're human.