Skip to main content

WalletAdapter

@liquidium/client


@liquidium/client / WalletAdapter

Interface: WalletAdapter

Defined in: packages/client/src/core/wallet-actions.ts:108

Optional wallet capabilities. Implement only what your flow uses:

  • signMessage - account creation, borrow, withdraw
  • sendBtcTransaction / sendEthTransaction - automated native-asset transfer supply
  • sendIcrcTransfer - automated ck-ledger and ICP ledger transfer supply
  • sendEthTransaction - contract-interaction supply and ETH native-asset sends

Properties​

sendBtcTransaction?​

optional sendBtcTransaction?: (request) => Promise<string>

Defined in: packages/client/src/core/wallet-actions.ts:114

Sends a BTC transaction and returns its transaction id.

Parameters​

request​

SendBtcTransactionRequest

Returns​

Promise<string>


sendEthTransaction?​

optional sendEthTransaction?: (request) => Promise<string>

Defined in: packages/client/src/core/wallet-actions.ts:112

Sends an EVM transaction and returns its transaction hash.

Parameters​

request​

SendEthTransactionRequest

Returns​

Promise<string>


sendIcrcTransfer?​

optional sendIcrcTransfer?: (request) => Promise<string>

Defined in: packages/client/src/core/wallet-actions.ts:116

Sends an ICRC ledger transfer and returns the ledger transaction reference.

Parameters​

request​

SendIcrcTransferRequest

Returns​

Promise<string>


signMessage?​

optional signMessage?: (request) => Promise<string>

Defined in: packages/client/src/core/wallet-actions.ts:110

Signs an SDK plaintext message and returns the wallet signature. BTC adapters may return base64 BIP-322 or hex-encoded signature bytes.

Parameters​

request​

SignMessageRequest

Returns​

Promise<string>