curl --request POST \
  --url https://testnet.walletkit.com/policies \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "network": "Ethereum",
  "name": "<string>",
  "wallet_address": "<string>",
  "argument_rules": [
    {
      "argument": "<string>",
      "operator": "eq",
      "value": "<string>"
    }
  ],
  "expires_at": "2023-11-07T05:31:56Z",
  "developer_secret": "<string>",
  "user_pin": "<string>"
}'
{
  "uuid": "<string>",
  "project_id": "<string>",
  "network": "Ethereum",
  "name": "<string>",
  "wallet_address": "<string>",
  "argument_rules": [
    {
      "argument": "<string>",
      "operator": "eq",
      "value": "<string>"
    }
  ],
  "expires_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Headers

X-WalletKit-Project-ID
string
required

Your WalletKit Project ID can be found on the API Keys page in the WalletKit Dashboard.

Authorizations

Authorization
string
headerrequired

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

Body

application/json
network
enum<string>
required
Available options:
Ethereum,
Polygon,
Base,
Avalanche,
Polkadot,
Vara
name
string
required
wallet_address
string
required
argument_rules
object[]
required

A list of rules that govern the arguments of the function calls that the developer is allowed to make.

expires_at
string | null

The time at which the policy expires. The developer will no longer be able to make function calls on the user's behalf after this time. When omitted, the policy will never expire.

developer_secret
string | null
required

On testnet, the developer_secret is always "testnet-secret". On mainnet, the developer_secret is set by the developer during account activation.

user_pin
string | null
required

A 6-digit numeric pin that is only known to the user, set during wallet creation. This pin is required to sign transactions from this wallet.

Response

200 - application/json
uuid
string
required
project_id
string
required
network
enum<string>
required
Available options:
Ethereum,
Polygon,
Base,
Avalanche,
Polkadot,
Vara
name
string | null
wallet_address
string
required
argument_rules
object[]
required
expires_at
string | null
created_at
string
required
updated_at
string
required