This is the project which provides options to query chain and anchor extrinsic to chain
Ideally, client should serialize the request, and api service should deserialize this. (Refer here for how to get this done for Substrate's SubmittableExtrinsic
response).
POST: /api/v1/extrinsics
Notice that client should build extrinsic and submit data in { "extrinsic": await tx.signAsync(authorization) }
format to get it anchored on the chain.
GET : /api/v1/query/:identifiers?params
params:
- rating
- stream
- schema
- registry
- did
-
- Registration based on the email
-
- Upon successful verification (go with magic link for now, can be email OTP in future) user marked as valid user
-
- Registration would give the device a token, can use token in all APIs with cloud wallet
-
- Provide a mechanism to resolve DID (based on
did:web:
)
- - Build a basic token management
- - Expect token in all APIs (no session based login) - Rethink later
- - Token cleanup / Logout feature