mina_verifyFields

This method is used to verify the signature results of fields.

Params

interface VerifyFieldsArguments {
    // sign publicKey.
    publicKey: string,
    // sign fields.
    data: (string|number)[],
    signature:string
}

Result

interface ProviderError extends Error {
    message: string; // error message.
    code: number; // error code.
    data?: unknown; // error body.
}

Promise<boolean | ProviderError> 

Error

20002

Signature verification failed.

This error is returned because an exception was thrown, please check the signature format.

23001

Origin dismatch.

Check origin safe.

Example

Request

Result

Last updated