Skip to main content

wallet-ows/src

Interfaces

OWSEvmWallet

Defined in: packages/wallet-ows/src/types.ts:21 OWS wallet interface for EVM chains. XXX: OWS signing calls are synchronous/blocking under the hood.

Properties

account
account: object
Defined in: packages/wallet-ows/src/types.ts:24
signTypedData()
signTypedData: (params) => Promise<`0x${string}`>
Parameters
params
domain
Record<string, unknown>
message
Record<string, unknown>
primaryType
string
types
Record<string, unknown>
Returns
Promise<`0x${string}`>
address
address: `0x${string}`
Defined in: packages/wallet-ows/src/types.ts:23
chain
chain: ChainInfo
Defined in: packages/wallet-ows/src/types.ts:22

OWSSolanaWallet

Defined in: packages/wallet-ows/src/types.ts:10 OWS wallet interface for Solana. XXX: OWS signing calls are synchronous/blocking under the hood.

Properties

network
network: string
Defined in: packages/wallet-ows/src/types.ts:11
partiallySignTransaction()
partiallySignTransaction: (tx) => Promise<Readonly<{ }>>
Defined in: packages/wallet-ows/src/types.ts:13
Parameters
tx
Readonly
Returns
Promise<Readonly<{ }>>
publicKey
publicKey: Address
Defined in: packages/wallet-ows/src/types.ts:12

Type Aliases

OWSWalletOpts

OWSWalletOpts = object
Defined in: packages/wallet-ows/src/types.ts:34

Properties

passphrase
passphrase: string
Defined in: packages/wallet-ows/src/types.ts:36
vaultPath?
optional vaultPath: string
Defined in: packages/wallet-ows/src/types.ts:37
walletNameOrId
walletNameOrId: string
Defined in: packages/wallet-ows/src/types.ts:35

Functions

createOWSEvmWallet()

createOWSEvmWallet(chain, opts, getWallet): OWSEvmWallet
Defined in: packages/wallet-ows/src/evm.ts:25 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. XXX - OWS signing calls are synchronous and block the event loop. Consider wrapping in worker_threads if this becomes a bottleneck.

Parameters

chain
ChainInfo EVM chain configuration.
opts
OWSWalletOpts OWS wallet options (wallet name/ID, passphrase, vault path).
getWallet
(nameOrId, vaultPathOpt?) => WalletInfo Optional wallet lookup function for testability.

Returns

OWSEvmWallet An EVM wallet that delegates signing to OWS.

createOWSSolanaWallet()

createOWSSolanaWallet(network, opts, getWallet): OWSSolanaWallet
Defined in: packages/wallet-ows/src/solana.ts:31 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. XXX - OWS signing calls are synchronous and block the event loop. Consider wrapping in worker_threads if this becomes a bottleneck.

Parameters

network
string Solana network identifier (e.g., “mainnet-beta”, “devnet”).
opts
OWSWalletOpts OWS wallet options (wallet name/ID, passphrase, vault path).
getWallet
(nameOrId, vaultPathOpt?) => WalletInfo Optional wallet lookup function for testability.

Returns

OWSSolanaWallet A Solana wallet that delegates signing to OWS.