Skip to main content
POST
Create child vault

Authorizations

Authorization
string
header
required

API key issued by a Hedgin administrator, in the form hv1_<id>_<secret>. <id> is 1 to 48 characters and <secret> is 32 to 128 characters, both from [A-Za-z0-9_-].

Body

application/json
vault
string
required

The parent vault, a vault that takes deposits. A key whose allowlist names it also reaches its child vaults.

Pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
Example:

"So11111111111111111111111111111111111111112"

name
string
required

At most 32 UTF-8 bytes.

Minimum string length: 1
fundAmount
string

Optional first funding, deposit-token base units. Must be greater than 0.

Maximum string length: 20
Pattern: ^\d+$
Example:

"1000000"

Response

Build result. One step. The step adds child, the new child vault's address.

vault
string
required

Base58 Solana public key. The server decodes it and rejects anything that is not 32 bytes.

Pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
Example:

"So11111111111111111111111111111111111111112"

result
object
required

One unsigned transaction and its ticket. Builders can add action metadata fields next to these.