Provider API
connect(connect wallet)
const res = await NaboxWallet.aptos.connect();
// 返回值
{
address: '0xd2cefbc892ec340.....eafd72c9d035629f6ea49df', // Account Address
publicKey: '0x63a97883e17f83......e1604beeb8ff984aa3fd1a' // Public Key(ed25519)
}account (get connected account information)
const res = await NaboxWallet.aptos.connect();
// 返回值
{
address: '0xd2cefbc892ec340.....eafd72c9d035629f6ea49df', // Account Address
publicKey: '0x63a97883e17f83......e1604beeb8ff984aa3fd1a' // Public Key(ed25519)
}network (get the currently connected network)
const network = await NaboxWallet.aptos.network();
// "Mainnet"signAndSubmitTransaction (sign and broadcast transaction)
signTransaction (not recommended and not commonly used)
signMessage(sign message)
Event
Last updated