Faremeter API / wallet-ows/src
wallet-ows/src
Type Aliases
OWSWalletOpts
OWSWalletOpts = { walletNameOrId: string; passphrase: string; vaultPath?: string; }
Defined in: packages/wallet-ows/src/types.ts:39
Options for creating an OWS-backed wallet.
| Property | Type | Description |
|---|---|---|
walletNameOrId | string | Name or ID of the wallet in the OWS vault. |
passphrase | string | Passphrase to unlock the wallet for signing. |
vaultPath | string (optional) | Custom path to the OWS vault directory. |
Interfaces
OWSSolanaWallet
Defined in: packages/wallet-ows/src/types.ts:10 OWS wallet interface for Solana.Properties
network
network: string
Solana network identifier (e.g., "mainnet-beta", "devnet").
publicKey
publicKey: PublicKey
The wallet’s Solana public key, derived from the vault account.
partiallySignTransaction
partiallySignTransaction: (Signs a versioned transaction via the OWS vault.tx:VersionedTransaction) =>Promise<VersionedTransaction>
updateTransaction
updateTransaction: (Updates and re-signs a versioned transaction.tx:VersionedTransaction) =>Promise<VersionedTransaction>
OWSEvmWallet
Defined in: packages/wallet-ows/src/types.ts:26 OWS wallet interface for EVM chains.Properties
chain
chain: ChainInfo
EVM chain configuration for this wallet.
address
address: `0x${string}`
Wallet address as a hex string.
account
account: object
Signing account with EIP-712 typed data support.
| Property | Type |
|---|---|
signTypedData | (params: { domain: Record<string, unknown>; types: Record<string, unknown>; primaryType: string; message: Record<string, unknown>; }) => Promise<0x$> |
Functions
createOWSSolanaWallet()
createOWSSolanaWallet(Defined in: packages/wallet-ows/src/solana.ts Creates an OWS-backed Solana wallet. Uses the Open Wallet Standard vault for transaction signing. The passphrase is closed over and used for each signing operation.network,opts,getWallet?):OWSSolanaWallet
Parameters
network
string
Solana network identifier (e.g., "mainnet-beta", "devnet").
opts
OWSWalletOpts
OWS wallet options (wallet name/ID, passphrase, optional vault path).
getWallet?
(nameOrId: string, vaultPathOpt?: string | null | undefined) => WalletInfo
Optional wallet lookup function (used for testing).
Returns
OWSSolanaWallet
A Solana wallet that delegates signing to OWS.
createOWSEvmWallet()
createOWSEvmWallet(Defined in: packages/wallet-ows/src/evm.ts Creates an OWS-backed EVM wallet. Uses the Open Wallet Standard vault for EIP-712 typed data signing. The passphrase is closed over and used for each signing operation.chain,opts,getWallet?):OWSEvmWallet
Parameters
chain
ChainInfo
EVM chain configuration.
opts
OWSWalletOpts
OWS wallet options (wallet name/ID, passphrase, optional vault path).
getWallet?
(nameOrId: string, vaultPathOpt?: string | null | undefined) => WalletInfo
Optional wallet lookup function (used for testing).
Returns
OWSEvmWallet
An EVM wallet that delegates signing to OWS.