For AI agents: visit https://docs.openweb3.io/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI. Append .md to any documentation page URL to get its markdown version.
JavaScript
window.OpenWeb3.WebApp.showAlert("Hello, OpenWeb3!")
JavaScript
window.OpenWeb3.WebApp.showPopup({
title: 'Popup title',
message: 'Popup message',
buttons: [
{id: 'delete', type: 'destructive', text: 'Delete all'},
{id: 'faq', type: 'default', text: 'Open FAQ'},
{type: 'cancel'},
]
}, function(button_id) {
if (button_id == 'delete') {
window.OpenWeb3.WebApp.showAlert("'Delete all' selected");
} else if (button_id == 'faq') {
window.OpenWeb3.WebApp.openLink('https://docs.openweb3.io/reference/initialization-1');
}
});
JavaScript
window.OpenWeb3.WebApp.close()
JavaScript
window.OpenWeb3.WebApp.expand()
JavaScript
window.OpenWeb3.WebApp.openLink("https://docs.openweb3.io/reference/initialization-1")
JavaScript
window.OpenWeb3.WebApp.openWebAppLink("https://mini-app-me-host/botUserName/miniAppName?startattach=xxx")
JavaScript
window.OpenWeb3.WebApp.showScanQrPopup( {text: 'Request scan qrcode by wallet.'}, result => {
console.log(result)
return true
})
JavaScript
window.OpenWeb3.openWebAppLink("https://mini-app-me-host/botUserName/miniAppName?startattach=send-assetCurrency__&choose=users")
JavaScript
window.OpenWeb3.WebApp.invokeCustomMethod( "your custom method name", "params", (err,eventData)=> {
console.log(eventData)
})