This Go program reads identity registration records from a JSON file and submits them as transactions to a ShutterRegistry smart contract using batch JSON-RPC calls.
git clone <this-repo>
cd identity-registration-tx-script
go mod tidyBasic run:
go run . \
-rpc <RPC_URL> \
-registry <SHUTTER_REGISTRY_ADDRESS> \
-private-key <HEX_PRIVATE_KEY>Useful flags:
-input(string): Path to JSON file with sorted records (default:data/sorted_id_registered_eon11_1772092868.json)-rpc(string): JSON-RPC URL (required unless you hard-code it inmain.go)-registry(string): ShutterRegistry contract address-private-key(string): Sender private key in hex (required unless using-dry-run)-eon(uint): Eon for the registration (default: 11)-batch-size(int): Number of transactions per batch RPC call (default: 50)-start-index(int): Index in the records array to start from (for resuming)-limit(int): Maximum number of records to process (0 = all)-dry-run(bool): Print what would be done without sending transactions
go run . \
-input data/sorted_id_registered_eon11_1772092868.json \
-dry-runThis will log which identities would be registered, without actually sending transactions.