Skip to main content
Faremeter API
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.
PropertyTypeDescription
walletNameOrIdstringName or ID of the wallet in the OWS vault.
passphrasestringPassphrase to unlock the wallet for signing.
vaultPathstring (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: (tx: VersionedTransaction) => Promise<VersionedTransaction>
Signs a versioned transaction via the OWS vault.
updateTransaction
updateTransaction: (tx: VersionedTransaction) => Promise<VersionedTransaction>
Updates and re-signs a versioned transaction.

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.
PropertyType
signTypedData(params: { domain: Record<string, unknown>; types: Record<string, unknown>; primaryType: string; message: Record<string, unknown>; }) => Promise<0x$>

Functions

createOWSSolanaWallet()

createOWSSolanaWallet(network, opts, getWallet?): OWSSolanaWallet
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.

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(chain, opts, getWallet?): OWSEvmWallet
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.

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.