';
}
function submitForm(captchaData) {
const url = '/claim';
let postData = {
'address': $('input#address').val(),
'message': $('input#message').val(),
'signature': $('input#signature').val()
};
if ('#{selected_captcha_name}' != '' && captchaData != '')
postData['#{selected_captcha_name}'] = captchaData;
$.ajax({
type: 'post',
url: url,
data: postData
})
.done(function(data) {
showClaimAlert((data.status == 'success' ? 'success' : 'danger'), data.message, (data.status == 'success' && message == ''));
if (
'#{selected_captcha_name}' == 'google_recaptcha2' &&
'#{settings.captcha.google_recaptcha2.captcha_type}' == 'checkbox'
) {
// clear out the captcha to allow the form to be submitted again
grecaptcha.reset();
} else if (
'#{selected_captcha_name}' == 'hcaptcha'
) {
// clear out the captcha to allow the form to be submitted again
hcaptcha.reset()
}
$('button.btn-success').attr('disabled', false);
});
}
function onSubmit(token) {
submitForm(token);
// ensure the onSubmit event can fire again without needing to reload the page in the event that the server returns an error and the form must be submitted again
grecaptcha.reset();
$('button.btn-success').attr('disabled', false);
}
.col-xs-12.col-md-12
if settings.claim_address_page.page_header.show_img == true || settings.claim_address_page.page_header.show_title == true || settings.claim_address_page.page_header.show_description == true
#page-header-container(style='align-items:' + (settings.claim_address_page.page_header.show_img == true && settings.claim_address_page.page_header.show_title == true && settings.claim_address_page.page_header.show_description == true ? 'flex-start' : 'center'))
if settings.claim_address_page.page_header.show_img == true
#header-img-container
img#header-img(src=(settings.shared_pages.page_header.page_title_image == null || settings.shared_pages.page_header.page_title_image.image_path == null || settings.shared_pages.page_header.page_title_image.image_path == '' ? '/img/page-title-img.png' : settings.shared_pages.page_header.page_title_image.image_path))
#page-title-container
if settings.claim_address_page.page_header.show_title == true
h3#page-title #{settings.localization.claim_title.replace('{1}', settings.coin.name)}
if settings.claim_address_page.page_header.show_description == true
if settings.claim_address_page.page_header.show_title != true
#page-title-container
.sub-page-header.text-muted=settings.localization.claim_description.replace('{1}', settings.coin.name)
else
.sub-page-header.text-muted=settings.localization.claim_description.replace('{1}', settings.coin.name)
.cardSpacer.clearfix
.card.card-default.border-0.cardSpacer
.card-header
strong Claim Wallet Address
.card-body
a#showClaimInstructions.instructions.badge.bg-primary(href='#claimInstructions', style='font-size:100%;margin-bottom:15px;', data-bs-toggle='collapse' role='button' aria-expanded='false' aria-controls='claimInstructions')
i.fa-solid.fa-angle-up(style='margin-right:5px;')
span Show claim instructions
div#claimInstructions.collapse
div.alert.alert-primary
div
span Use the
span.fw-bold Sign Message
span feature from your
span.fw-bold #{settings.coin.name}
span wallet to verify ownership of a wallet address that belongs to you.
br
div Enter the following data into the wallet software:
br
div
span.fw-bold Address:
if hash == null || hash == ''
span=' '
else
span #{hash}
div
span.fw-bold Message:
span=' '
br
div
span Click the
span.fw-bold Sign Message
span button in the wallet, and copy/paste the resulting
span.fw-bold Signature
span at the bottom of this form.
br
div
span Finally, click the
span.fw-bold Claim
span button below to claim your address, which will display your custom display name instead of the default wallet address on this site.
br
div
span.fw-bold NOTE:
span You can update your claimed address at any time, as often as you wish. To remove a previously claimed display name, simply sign a blank message to return the address back to its original value.
form#claimForm
.form-group
fieldset.entryField
label.form-label(for='address') Wallet Address
if hash == null || hash == ''
input#address.form-control(type='text', maxlength='70')
else
input#address.form-control(type='text', value=hash, readonly='readonly', maxlength='70')
.form-group
fieldset.entryField
label.form-label.mt-3(for='message') Display Name
input#message.form-control(type='text', placeholder='Display Name', maxlength='50')
.form-group
fieldset.entryField
label.form-label.mt-3(for='signature') Signature
input#signature.form-control.mb-3(type='text', placeholder='Signature', maxlength='100')
if settings.claim_address_page.enable_captcha == true && selected_captcha_object != null
case selected_captcha_name
when 'google_recaptcha2'
if settings.captcha.google_recaptcha2.captcha_type == 'invisible'
div#recaptcha.g-recaptcha(data-sitekey=settings.captcha[selected_captcha_name].site_key, data-callback='onSubmit' data-size='invisible')
else
.form-group
fieldset.entryField
div(class='g-recaptcha mb-3', data-sitekey=settings.captcha[selected_captcha_name].site_key)
when 'hcaptcha'
.form-group
fieldset.entryField
div.h-captcha(data-sitekey=settings.captcha[selected_captcha_name].site_key)
.form-group
fieldset.entryField
button.btn.btn-success(type='submit') Claim