Aeternity snap for MetaMask
Prerequisite
Usage
import { AccountMetamaskFactory } from '@aeternity/aepp-sdk';
const accountFactory = new AccountMetamaskFactory();const account = await accountFactory.initialize(0);
console.log(account.address); // 'ak_2dA...'
console.log(await account.signTransaction('tx_...')); // 'tx_...' (with signature added)Account persistence
Account discovery
Error handling
Last updated
Was this helpful?