Skip to content

lending:borrow

Borrow a token from a lending market against the connected account's collateral (variable rate). The borrowed tokens go to the connected account.

lending:borrow <amount> <token>
NameTypeDescription
amountnumberAmount to borrow, in base units (wei)
tokenaddressToken to borrow (use @token(SYM))
NameTypeDescription
--usinglending-adapterLending protocol: AaveV3, Spark or CompoundV3 (default: the best available on the chain)
--on-behalf-ofaddressAccount whose debt grows (requires prior credit delegation; defaults to the connected account)
# Borrow 50 WXDAI at variable rate on Aave v3 (Gnosis)
lending:borrow 50e18 0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d