Skip to main content

BorrowAction

@liquidium/client


@liquidium/client / BorrowAction

Interface: BorrowAction

Defined in: packages/client/src/modules/lending/types.ts:108

Prepared action for creating a borrow outflow.

Extends

Properties

account

account: string

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

Default account to pass to the wallet adapter.

Inherited from

SignMessageWalletAction.account


actionType

actionType: "create-borrow"

Defined in: packages/client/src/modules/lending/types.ts:115

Adapter-facing action type.

Overrides

SignMessageWalletAction.actionType


data

data: CreateBorrowData

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

Original request data needed to submit the signed action.

Inherited from

SignMessageWalletAction.data


executionKind

executionKind: "sign-message"

Defined in: packages/client/src/modules/lending/types.ts:113

Required wallet capability.

Overrides

SignMessageWalletAction.executionKind


kind

kind: "create-borrow"

Defined in: packages/client/src/modules/lending/types.ts:111

Protocol action kind.

Overrides

SignMessageWalletAction.kind


message

message: string

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

Plaintext message that must be signed.

Inherited from

SignMessageWalletAction.message

Methods

submit()

submit(signatureInfo): Promise<BorrowOutflowDetails>

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

Submits the signature and resolves the protocol result.

Parameters

signatureInfo

SignatureInfo

Returns

Promise<BorrowOutflowDetails>

Inherited from

SignMessageWalletAction.submit