Skip to content

updatekyc ​

Update user KYC info of provider.

  • Parameters
FieldsTypeDescription
ownereosio::nameKYC User who wants to update info
providereosio::nameKYC Provider who user wants to update
cert_ideosio::checksum256User KYC data
req_signatureeosio::signatureUser signature
pro_signatureeosio::signatureProvider signature

Required Permissions: ultra.kyc

  • cleos Example
shell
cleos push action eosio.kyc updatekyc '["<OWNER>", "<PROVIDER>", "<CERTIFICATE_ID>", "<REQUIRED_SIGNATURE>", "<PROVIDER_SIGNATURE>"]' -p ultra.kyc
  • eos-js Example
typescript
(async () => {
    const result = await api.transact(
        {
            actions: [
                {
                    account: 'eosio.kyc',
                    name: 'updatekyc',
                    authorization: [
                        {
                            actor: 'ultra.kyc',
                            permission: 'active',
                        },
                    ],
                    data: {
                        owner: '<OWNER>',
                        provider: '<PROVIDER>',
                        cert_id: '<CERTIFICATE_ID>',
                        req_signature: '<REQUIRED_SIGNATURE>',
                        pro_signature: '<PROVIDER_SIGNATURE>',
                    },
                },
            ],
        },
        {
            blocksBehind: 3,
            expireSeconds: 30,
        }
    );
})();