POST
/
v0
/
lend
/
{tokenSymbol}
/
deposit
Lend Deposit Token
curl --request POST \
  --url https://marginfi.dial.to/api/v0/lend/{tokenSymbol}/deposit \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "transaction",
  "account": "6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176"
}'
{
  "type": "<any>",
  "transaction": "<string>"
}

Path Parameters

tokenSymbol
string
default:USDC
required

Token symbol to deposit

Query Parameters

amount
number
default:100

The amount to deposit. Human readable value, e.g. 100 USDC

Required range: x >= 0.000001
Example:

100

percentage
integer

The percentage of balance to deposit

Required range: 1 <= x <= 100

Body

application/json
type
enum<string>
default:transaction
required
Available options:
transaction
Example:

"transaction"

account
string
default:6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176
required

The public key of the account that executes the transaction

Example:

"6JpNV6DK88auwzKVizdeT4Bw3D44sam5GqjcPCJ7y176"

Response

200 - application/json

OK

type
any
required
transaction
string
required