proveOnChain
Description
The proveOnChain
method generates an on-chain proof for a ZPass credential.
Parameters
options
(OnChainOptions): An object containing:program
(string): The Aleo program source codefunctionName
(string): Name of the function to executeinputs
(string[]): Array of input parameters for the functionfee
(number, optional): Transaction fee in microcreditspassword
(string, optional): Password for key encryption
Returns
Returns a Promise that resolves to a string containing the transaction ID of the proof.
Example
Last updated