VaultsСобрать derivation path

Собрать derivation path

Собирает канонический derivation path (m/44/{coinType}/{seg0}/...) из значений сегментов. Валидирует: сеть подключена к Vault, все Route.code присутствуют, static-варианты существуют и enabled, dynamic-значения — integer в [0, 2^31-1].

curl -X POST "https://policy-engine-rest.ezig.workers.dev/api/v1/vaults/test_vault/derivation-path/build" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "networkCode": "tron_network",
  "values": {
    "index": 0,
    "app_id": "otc_app",
    "purpose": "invoices",
    "asset": "usdt",
    "stage": "prod"
  }
}'
{
  "path": "m/44/195/0/0/1/1/0"
}
POST
/api/v1/vaults/{code}/derivation-path/build
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

better-auth session token. Мобилка/сервисы. Веб использует cookie.

better-auth session token. Мобилка/сервисы. Веб использует cookie.
API Key (cookie: better-auth.session_token)
path
codestring
Required

Уникальный код Vault'а (slug)

Content-Typestring
Required

The media type of the request body

Options: application/json
valuesobject
Required

Route.code → значение. Для static route — variant code (string) или pathId (number); для dynamic — number.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. better-auth session token. Мобилка/сервисы. Веб использует cookie.

path
parameterstring
Required

API Key for authentication. Provide your API key in the cookie.

Path Parameters

codestring
Required

Уникальный код Vault'а (slug)

Example:
test_vault

Body

application/json
networkCodestring
Required
Example:
tron_network
valuesobject
Required

Route.code → значение. Для static route — variant code (string) или pathId (number); для dynamic — number.

Example:
{"index":0,"app_id":"otc_app","purpose":"invoices","asset":"usdt","stage":"prod"}

Responses

pathstring
Required