is there any simple example to send data to network?
like name, email, phone, address (which is made keyring), and address, etc
Substrate and Polkadot Stack Exchange is a question and answer site for developers building blockchains with the Substrate SDK. It only takes a minute to sign up.
Sign up to join this communityIn Substrate you have the pallet identity:
Enables a federated naming system that allows multiple registrars to be added from a specified origin. Registrars can set a fee to provide identity-verification service.
It has an extrinsic set_identity that associates the identity of an account. (You can see the struct IdentityInfo here).
This pallet exists in Polkadot, so you can store data associated to an account there. If you want to do it in your custom network you can integrate that pallet in your network. Take an example about how the Polkadot runtime is configured to use this pallet here.
And finally as you added the tag Polkadot-js
in order to set the identity using this tool: api.tx.identity.setIdentity
.
Check the docs.