{"id":2150,"date":"2025-07-11T12:42:19","date_gmt":"2025-07-11T11:42:19","guid":{"rendered":"https:\/\/onchaineconomyconference.sxb.pl\/?page_id=2150"},"modified":"2025-07-11T12:44:34","modified_gmt":"2025-07-11T11:44:34","slug":"add-wallet","status":"publish","type":"page","link":"https:\/\/onchaineconomyconference.sxb.pl\/index.php\/add-wallet\/","title":{"rendered":"Add wallet"},"content":{"rendered":"<style>.kb-form input.kadence-blocks-field.verify{opacity:0.0;position:absolute;top:0.0;left:0.0;width:0.0;height:0.0;z-index:-1;}<\/style>\n<div class=\"wp-block-kadence-form kadence-form-2150_09f85d-2b kb-form-wrap\"><form class=\"kb-form\" action=\"\" method=\"post\"><div class=\"kadence-blocks-form-field kb-field-desk-width-100 kb-input-size-standard\"><label for=\"kb_field_2150_09f85d-2b_0\">Name<\/label><input name=\"kb_field_0\" id=\"kb_field_2150_09f85d-2b_0\" data-label=\"Name\" type=\"text\" placeholder=\"\" value=\"\" data-type=\"text\" class=\"kb-field kb-text-style-field kb-text-field kb-field-0\"\/><\/div><div class=\"kadence-blocks-form-field kb-form-field-1 kb-field-desk-width-100 kb-input-size-standard\"><label for=\"kb_field_2150_09f85d-2b_1\">Email<span class=\"required\">*<\/span><\/label><input name=\"kb_field_1\" id=\"kb_field_2150_09f85d-2b_1\" data-label=\"Email\" type=\"email\" placeholder=\"\" value=\"\" data-type=\"email\" class=\"kb-field kb-text-style-field kb-email-field kb-field-1\" data-required=\"yes\"\/><\/div><div class=\"kadence-blocks-form-field kb-form-field-3 kb-field-desk-width-100 kb-input-size-standard\"><label for=\"kb_field_2150_09f85d-2b_3\">Wallet Address<\/label><input name=\"kb_field_3\" id=\"kb_field_2150_09f85d-2b_3\" data-label=\"Wallet Address\" type=\"text\" placeholder=\"Click 'Connect Wallet' to get your address\" value=\"\" data-type=\"text\" class=\"kb-field kb-text-style-field kb-text-field kb-field-3\" readonly style=\"width: 100%;\"\/><button type=\"button\" id=\"connectWalletBtn\" onclick=\"connectWallet()\" style=\"margin-top: 10px; padding: 8px 16px; background-color: #007cba; color: white; border: none; border-radius: 4px; cursor: pointer;\">Connect Wallet<\/button><\/div><input type=\"hidden\" name=\"_kb_form_id\" value=\"2150_09f85d-2b\"\/><input type=\"hidden\" name=\"_kb_form_post_id\" value=\"2150\"\/><input type=\"hidden\" name=\"action\" value=\"kb_process_ajax_submit\"\/><label class=\"kadence-verify-label\">Email<input class=\"kadence-blocks-field verify\" type=\"text\" name=\"_kb_verify_email\" autocomplete=\"new-password\" aria-hidden=\"true\" placeholder=\"Email\" tabindex=\"-1\" data-1p-ignore=\"true\" data-lpignore=\"true\" \/><\/label><div class=\"kadence-blocks-form-field kb-submit-field kb-field-desk-width-100\"><button class=\"kb-forms-submit button kb-button-size-standard kb-button-width-auto\">Submit<\/button><\/div><\/form><\/div>\n\n<script>\nasync function connectWallet() {\n    const button = document.getElementById('connectWalletBtn');\n    const walletInput = document.getElementById('kb_field_2150_09f85d-2b_3');\n    \n    \/\/ Sprawd\u017a czy MetaMask jest zainstalowany\n    if (typeof window.ethereum !== 'undefined') {\n        try {\n            \/\/ Zmie\u0144 tekst przycisku na \"Connecting...\"\n            button.textContent = 'Connecting...';\n            button.disabled = true;\n            \n            \/\/ Popro\u015b o dost\u0119p do konta\n            const accounts = await window.ethereum.request({ \n                method: 'eth_requestAccounts' \n            });\n            \n            if (accounts.length > 0) {\n                \/\/ Ustaw adres w polu readonly\n                walletInput.value = accounts[0];\n                button.textContent = 'Connected';\n                button.style.backgroundColor = '#28a745';\n                \n                \/\/ Po 2 sekundach zmie\u0144 z powrotem na \"Connect Wallet\"\n                setTimeout(() => {\n                    button.textContent = 'Connect Wallet';\n                    button.style.backgroundColor = '#007cba';\n                    button.disabled = false;\n                }, 2000);\n            }\n        } catch (error) {\n            console.error('Error connecting wallet:', error);\n            alert('Error connecting wallet. Please try again.');\n            button.textContent = 'Connect Wallet';\n            button.disabled = false;\n        }\n    } else {\n        alert('MetaMask is not installed. Please install MetaMask to connect your wallet.');\n    }\n}\n\n\/\/ Sprawd\u017a czy u\u017cytkownik jest ju\u017c po\u0142\u0105czony przy za\u0142adowaniu strony\ndocument.addEventListener('DOMContentLoaded', async function() {\n    if (typeof window.ethereum !== 'undefined') {\n        try {\n            const accounts = await window.ethereum.request({ \n                method: 'eth_accounts' \n            });\n            \n            if (accounts.length > 0) {\n                document.getElementById('kb_field_2150_09f85d-2b_3').value = accounts[0];\n                const button = document.getElementById('connectWalletBtn');\n                button.textContent = 'Connected';\n                button.style.backgroundColor = '#28a745';\n            }\n        } catch (error) {\n            console.error('Error checking wallet connection:', error);\n        }\n    }\n});\n<\/script>\n\n<noscript><div class=\"kadence-blocks-form-message kadence-blocks-form-warning\">Please enable JavaScript in your browser to submit the form<\/div><style>.kadence-form-2150_09f85d-2b .kadence-blocks-form-field.kb-submit-field { display: none; }<\/style><\/noscript>\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":7,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_price":"","_stock":"","_tribe_ticket_header":"","_tribe_default_ticket_provider":"","_tribe_ticket_capacity":"0","_ticket_start_date":"","_ticket_end_date":"","_tribe_ticket_show_description":"","_tribe_ticket_show_not_going":false,"_tribe_ticket_use_global_stock":"","_tribe_ticket_global_stock_level":"","_global_stock_mode":"","_global_stock_cap":"","_tribe_rsvp_for_event":"","_tribe_ticket_going_count":"","_tribe_ticket_not_going_count":"","_tribe_tickets_list":"[]","_tribe_ticket_has_attendee_info_fields":false,"_EventAllDay":false,"_EventTimezone":"","_EventStartDate":"","_EventEndDate":"","_EventStartDateUTC":"","_EventEndDateUTC":"","_EventShowMap":false,"_EventShowMapLink":false,"_EventURL":"","_EventCost":"","_EventCostDescription":"","_EventCurrencySymbol":"","_EventCurrencyCode":"","_EventCurrencyPosition":"","_EventDateTimeSeparator":"","_EventTimeRangeSeparator":"","_EventOrganizerID":[],"_EventVenueID":[],"_OrganizerEmail":"","_OrganizerPhone":"","_OrganizerWebsite":"","_VenueAddress":"","_VenueCity":"","_VenueCountry":"","_VenueProvince":"","_VenueState":"","_VenueZip":"","_VenuePhone":"","_VenueURL":"","_VenueStateProvince":"","_VenueLat":"","_VenueLng":"","_VenueShowMap":false,"_VenueShowMapLink":false,"_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":"","_tec_slr_enabled":"","_tec_slr_layout":""},"class_list":["post-2150","page","type-page","status-publish","hentry"],"ticketed":false,"_links":{"self":[{"href":"https:\/\/onchaineconomyconference.sxb.pl\/index.php\/wp-json\/wp\/v2\/pages\/2150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/onchaineconomyconference.sxb.pl\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/onchaineconomyconference.sxb.pl\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/onchaineconomyconference.sxb.pl\/index.php\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/onchaineconomyconference.sxb.pl\/index.php\/wp-json\/wp\/v2\/comments?post=2150"}],"version-history":[{"count":4,"href":"https:\/\/onchaineconomyconference.sxb.pl\/index.php\/wp-json\/wp\/v2\/pages\/2150\/revisions"}],"predecessor-version":[{"id":2154,"href":"https:\/\/onchaineconomyconference.sxb.pl\/index.php\/wp-json\/wp\/v2\/pages\/2150\/revisions\/2154"}],"wp:attachment":[{"href":"https:\/\/onchaineconomyconference.sxb.pl\/index.php\/wp-json\/wp\/v2\/media?parent=2150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}