go run cmd/node/main.go -port=8080 -address=127.0.0.1:8080 --wallet=wallet.jsonExplanation of Flags
- -port: The port on which the node will listen for incoming connections (e.g., 8080).
- -address: The IP address and port of the current node (e.g., 127.0.0.1:8080).
- -wallet: The filename for saving the wallet
go run cmd/node/main.go -port=8081 -address=127.0.0.1:8081 -bootstrap=127.0.0.1:8080 --wallet=wallet.jsonExplanation of Flags
- -port: The port on which the node will listen for incoming connections (e.g., 8081).
- -address: The IP address and port of the current node (e.g., 127.0.0.1:8081).
- -bootstrap (optional): The address of a bootstrap node to join the existing P2P network (e.g., 127.0.0.1:8080).
- -wallet: The filename for saving the wallet
go run cmd/wallet/main.go -action=createWallet -wallet=wallet.jsonExplanation of Flags
- -action: Action to perform
- -wallet: The filename for saving the wallet
go run cmd/wallet/main.go -address=127.0.0.1:8081 -bootstrap=127.0.0.1:8080 -action=createTx -wallet=wallet.json -recipient=827c60efba743153785e6f790ddda0a1d5412608e3633c8808a44da10d7ce6c5 -amount=0.01 -fee=0.001Explanation of Flags
- -action: Action to perform
- -wallet: The filename for saving the wallet