Skip to main content
GET
Create borrow market transaction

Authorizations

x-api-key
string
header
required

Path Parameters

network
enum<string>
required

Canonical network slug

Available options:
mainnet,
optimism,
arbitrum,
polygon,
gnosis,
base,
unichain,
swellchain,
celo,
worldchain,
berachain,
ink,
bsc,
hyperliquid,
plasma,
avalanche,
katana,
linea,
mega-eth,
monad,
etherlink,
robinhood
marketId
string
required

Canonical market identifier

Minimum string length: 1
userAddress
string
required

Address of the user whose borrow market transactions context is requested

Pattern: ^0x[a-fA-F0-9]{40}$
assetId
string
required

Market asset identifier

Minimum string length: 1
action
enum<string>
required

Action to generate for borrow market transactions

Available options:
supply,
withdraw,
borrow,
repay

Query Parameters

amount
string

Amount of the asset to use in the transactions request

all
boolean

If true, withdraw or repay the full available amount

Response

Default Response

currentActionIndex
number
required
actions
object[]
required