JSON-RPC

This section describes available JSON-RPC API interfaces.

RPCarrow-up-right is a request–responsearrow-up-right concept when a computer program causes a procedure to execute in a different address spacearrow-up-right (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 RPCsarrow-up-right to communicate with a node including default list of RPCsarrow-up-right that substrate comes with.

We would like to introduce more common and useful RPCs including custom bioauth related ones.

Chain state RPCs

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.

The full list of available storage RPCs you can find herearrow-up-right.

Extrinsics RPCs

Extrinsics for particular module and method can be submitted using api.tx.module.method call.

The full list of available extrinsics RPCs you can find herearrow-up-right.

Bioauth RPCs

Humanode team has developed bioauth related custom RPCsarrow-up-right with the following functionalities:

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 updated