Skip to main content
POST
/
environments
/
{environmentId}
/
waas
/
{walletId}
/
signaturePolicy
Create a new WAAS signature policy for a wallet
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/environments/{environmentId}/waas/{walletId}/signaturePolicy \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "chain": "EVM",
  "toAddresses": [
    "0xbF394748301603f18d953C90F0b087CBEC0E1834"
  ],
  "tokenAddresses": [
    "0xbF394748301603f18d953C90F0b087CBEC0E1834"
  ],
  "timeLimit": 2,
  "maxAmount": "<string>"
}
'
{
  "id": "95b11417-f18f-457f-8804-68e361f9164f",
  "walletId": "95b11417-f18f-457f-8804-68e361f9164f",
  "chain": "EVM",
  "toAddresses": [
    "0xbF394748301603f18d953C90F0b087CBEC0E1834"
  ],
  "tokenAddresses": [
    "0xbF394748301603f18d953C90F0b087CBEC0E1834"
  ],
  "expiresAt": "2023-11-07T05:31:56Z",
  "maxAmount": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

walletId
string
required

UUID of the wallet

Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

Body

application/json
chain
enum<string>
required
Available options:
EVM,
SVM,
SUI,
BTC,
TON
toAddresses
string[]
required

Array of allowed destination addresses

Valid blockchain wallet address, must be an alphanumeric string without any special characters

Maximum string length: 255
Example:

"0xbF394748301603f18d953C90F0b087CBEC0E1834"

tokenAddresses
string[]
required

Array of allowed token contract addresses

Valid blockchain wallet address, must be an alphanumeric string without any special characters

Maximum string length: 255
Example:

"0xbF394748301603f18d953C90F0b087CBEC0E1834"

timeLimit
integer
required

Time limit in seconds until the policy expires. Must be greater than 0 seconds.

Required range: x >= 1
maxAmount
string
required

Maximum amount allowed for transactions (as string to handle bigint). Must be a non-negative integer.

Response

WAAS signature policy created successfully

id
string
required
Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

walletId
string
required
Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

chain
enum<string>
required
Available options:
EVM,
SVM,
SUI,
BTC,
TON
toAddresses
string[]
required

Array of allowed destination addresses

Valid blockchain wallet address, must be an alphanumeric string without any special characters

Maximum string length: 255
Example:

"0xbF394748301603f18d953C90F0b087CBEC0E1834"

tokenAddresses
string[]
required

Array of allowed token contract addresses

Valid blockchain wallet address, must be an alphanumeric string without any special characters

Maximum string length: 255
Example:

"0xbF394748301603f18d953C90F0b087CBEC0E1834"

expiresAt
string<date-time>
required

Timestamp when the policy expires

maxAmount
string
required

Maximum amount allowed for transactions (as string to handle bigint). Must be a non-negative integer.