Developer Guide
Connect
The easiest way to connect to Ancient8 Wallet
function getProvider() {
const provider = window.ancient8;
if (!provider) {
return window.open('https://ancient8.gg/');
}
return provider;
}To detect Ancient8 Wallet Extension
if(window.ancient8 ){
console.log('Ancient8 Extension is installed!');
}To connect Ancient8 Extension Wallet
Access a user's accounts
Handle accounts
To check if Dapp connected
To disconnect Ancient8 Extension Wallet
To experience functions
Account
How to get Current Account
Sign Transaction
Personal_sign
eth_signTypedData_v4
personal_ecRecover
Transfer
eth_sendTransaction
Decrypt & Encrypt
eth_decrypt
eth_getEncryptionPublicKey
Encrypt
List of events
Events
Trigger
Method
Description
Last updated