跳转到主要内容
GET
/
api
/
v1
/
staking
/
vaults
/
{id}
/
preview
金库申购或赎回预估
curl --request GET \
  --url https://api.example.com/api/v1/staking/vaults/{id}/preview
{
  "code": 0,
  "msg": "ok",
  "data": {
    "assets": "1000",
    "sharesPreview": "998.12",
    "withdrawAssetsPreview": "999.50",
    "feePreview": "1.50",
    "pricePerShare": "1.0019"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.nexfi.robert.dpdns.org/llms.txt

Use this file to discover all available pages before exploring further.

路径参数

id
string
必填

Vault 产品 ID。

示例:

"base_usdc_nexfi_vault"

查询参数

assets
string

输入资产金额,与 shares 互斥。

示例:

"1000"

shares
string

输入份额数量,与 assets 互斥。

示例:

"998.12"

响应

200 - application/json

成功返回预估结果

统一响应包裹结构。

code
integer
必填

业务状态码,0 表示成功。

示例:

0

msg
string
必填

可读返回消息。

示例:

"ok"

data
object

Vault 预估结果。