Custody providers

Register Squads Custody Wallets

Derives Squads V4 vault PDAs from the org multisig and registers them as SOLANA custody wallets, reviving soft-deleted rows.

POSThttps://api.toku.com/tga/register-squads-custody-wallets

Not available to API keys yet. It will need wallets:write.

curl --request POST \
  --url 'https://api.toku.com/tga/register-squads-custody-wallets' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "vaults": [
    {
      "vaultIndex": 0,
      "walletName": "string"
    }
  ]
}'
200 response
{
  "wallets": [
    {
      "custodyWalletID": "string",
      "walletAddress": "string",
      "vaultIndex": 0,
      "walletName": "string"
    }
  ],
  "feePayerWarning": "string",
  "displacedAllocationCount": 0
}

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is an access token from a Toku sign-in. See Authentication in the API reference.

Body

application/json

vaultsobject[]required

NOTE(ck): a .refine() rule is not mirrored here; TGA still enforces it

Allowed: 1 to 50 items

Show child attributes
vaultIndexintegerrequired

Allowed: 0 to 255

walletNamestringrequired

Allowed: 1 to 255 characters

Response

200Successful response
walletsobject[]required
Show child attributes
custodyWalletIDstringrequired
walletAddressstringrequired
vaultIndexintegerrequired
walletNamestringrequired
feePayerWarningstring | nullrequired
displacedAllocationCountintegerrequired
400Bad request
401Unauthorized
403Forbidden
404Not found
409Conflict
429Response 429
Was this page helpful? Suggest edits