Account
Account interface
Refer to Account vs Wallet to understand the difference between Account
and Wallet
interface
type Account = { address: Address; onTransactionRequested?: ( ) => Promise<void>; sendBatchTransaction?: ( txs: Array<SendTransactionOption>, ) => Promise<SendTransactionResult>; sendRawTransaction?: ( tx: SendRawTransactionOptions, ) => Promise<SendTransactionResult>; sendTransaction: ( tx: SendTransactionOption, ) => Promise<SendTransactionResult>; signMessage: ({ message, }: { message: SignableMessage; }) => Promise<Hex>; signTransaction?: (tx: TransactionSerializable) => Promise<Hex>; signTypedData: ( _typedData: TypedDataDefinition<typedData, primaryType>, ) => Promise<Hex>; watchAsset?: (asset: WatchAssetParams) => Promise<boolean>;};
address of the account
type address = Address;
function onTransactionRequested(): Promise<void>;
function sendBatchTransaction( txs: Array<SendTransactionOption>,): Promise<SendTransactionResult>;
function sendRawTransaction( tx: SendRawTransactionOptions,): Promise<SendTransactionResult>;
function sendTransaction( tx: SendTransactionOption,): Promise<SendTransactionResult>;
function signMessage({ message,}: { message: SignableMessage;}): Promise<Hex>;
function signTransaction(tx: TransactionSerializable): Promise<Hex>;
function signTypedData( _typedData: TypedDataDefinition<typedData, primaryType>,): Promise<Hex>;
function watchAsset(asset: WatchAssetParams): Promise<boolean>;