Comment on page
JSON-RPC
This section describes available JSON-RPC API interfaces.
RPC is a request–response concept when a computer program causes a procedure to execute in a different address space (commonly on another computer on a shared network).
In our case, we can say that RPC is a way for an external program—for example, a browser or front-end application—to communicate with the humanode peer to explore current network state and submit extrinsics.
Humanode provides several substrate based RPCs to communicate with a node including default list of RPCs that substrate comes with.
We would like to introduce more common and useful RPCs including custom bioauth related ones.
Storage related RPCs allows you to explore current chain state based on provided
module
and method
. It's done via api.query.<module>.<method>
call.Extrinsics for particular
module
and method
can be submitted using api.tx.module.method
call.Authentication based on provided liveness data
- interface:
api.rpc.bioauth.authenticate
- jsonrpc:
bioauth_authenticate
Enrollment based provided liveness data.
- interface:
api.rpc.bioauth.enroll
- jsonrpc:
bioauth_enroll
Getting the current bioauth status.
- interface:
api.rpc.bioauth.status
- jsonrpc:
bioauth_status
Getting a FaceTec Session Token.
- interface:
api.rpc.bioauth.getFacetecSessionToken
- jsonrpc:
bioauth_getFacetecSessionToken
Getting the configuration required for the Device SDK.
- interface:
api.rpc.bioauth.getFacetecDeviceSdkParams
- jsonrpc:
bioauth_getFacetecDeviceSdkParams
Last modified 1mo ago