AddressesCreate an address

Create an address

Full address creation flow:

  1. Calculate the next pathIndex for the segment combination (SQL MAX, retry on a concurrency conflict)
  2. Build the canonical derivation path
  3. evaluatePolicy (action=create_address): 403 on deny/block, 202 + request id on requireApproval (creation sent for signing)
  4. Wallet Service /wallet/raw_address: get the on-chain address
  5. Write the Address + synchronously register it with tron-events monitoring; if monitoring fails, the address is rolled back (all or nothing)
curl -X POST "https://policy-engine-rest.ezig.workers.dev/api/v1/vaults/demo_vault/addresses" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "networkCode": "tron_network",
  "staticSegments": {
    "app_id": "otc_app",
    "purpose": "invoices",
    "asset": "usdt",
    "stage": "prod"
  },
  "label": "example_string",
  "description": "example_string",
  "tags": [
    "example_string"
  ],
  "logoUri": "example_string",
  "color": "#000",
  "emoji": "💳",
  "groupId": "example_string"
}'
{
  "address": {
    "id": "cmr3f41z20001psp7phmyapw3",
    "address": "123 Main St",
    "derivationPath": "example_string",
    "network": "example_string",
    "pathIndex": 42,
    "label": "example_string",
    "description": "example_string"
  }
}
POST
/api/v1/vaults/{code}/addresses
POST
Base URLstring

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

Bearer Token
Bearer Tokenstring
Required

Session token. Mobile/services. The web uses a cookie.

Session token. Mobile/services. The web uses a cookie.
API Key (cookie: session_token)
session_tokenstring
Required

API key (sent in cookie)

path
codestring
Required

Unique Vault code (slug)

Content-Typestring
Required

The media type of the request body

Options: application/json
staticSegmentsobject
Required

Route.code → variant code for all static segments

logoUristring

Link to the address's logo

Format: uri • Max length: 2048
colorstring

HEX color

Pattern: ^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$
emojistring

Emoji icon

Min length: 1 • Max length: 16
groupIdstring

Create the address IN an address group (requires the create_address permission on the group). The new address becomes a member of the group and is accessible to its participants

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Session token. Mobile/services. The web uses a cookie.

path
parameterstring
Required

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

Path Parameters

codestring
Required

Unique Vault code (slug)

Example:
demo_vault

Body

application/json
networkCodestring
Required
Example:
tron_network
staticSegmentsobject
Required

Route.code → variant code for all static segments

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

Link to the address's logo

colorstring

HEX color

Example:
#000
emojistring

Emoji icon

Example:
💳
groupIdstring

Create the address IN an address group (requires the create_address permission on the group). The new address becomes a member of the group and is accessible to its participants

Responses