Account data discriminated union for different authentication methods.
GolemBase supports two primary authentication mechanisms:
Private key account:
const privateKeyAccount: AccountData = new Tagged( "privatekey", new Uint8Array([...]) // 32-byte private key); Copy
const privateKeyAccount: AccountData = new Tagged( "privatekey", new Uint8Array([...]) // 32-byte private key);
Browser wallet provider:
const providerAccount: AccountData = new Tagged( "ethereumprovider", window.ethereum // MetaMask provider); Copy
const providerAccount: AccountData = new Tagged( "ethereumprovider", window.ethereum // MetaMask provider);
Account data discriminated union for different authentication methods.
GolemBase supports two primary authentication mechanisms: