Notus API
Smart wallets

Update Wallet Metadata

This endpoint updates the metadata for a specific wallet. The metadata is merged with existing metadata if present.

PATCH
/api/v1/wallets/{walletId}/metadata
x-api-key<token>

In: header

Path Parameters

walletIdstring

Wallet address (in hexadecimal format)

metadataobject

Custom metadata for the entity. Key-value pairs with string values. Max 1KB size.

Empty Object

Response Body

curl -X PATCH "https://api.notus.team/api/v1/wallets/0x6e397ddf51d9f15dbe0414538e7529f51f2e5464/metadata" \
  -H "Content-Type: application/json" \
  -d '{
    "metadata": {
      "property1": "string",
      "property2": "string"
    }
  }'
const body = JSON.stringify({
  "metadata": {
    "property1": "string",
    "property2": "string"
  }
})

fetch("https://api.notus.team/api/v1/wallets/0x6e397ddf51d9f15dbe0414538e7529f51f2e5464/metadata", {
  body
})
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
  "strings"
)

func main() {
  url := "https://api.notus.team/api/v1/wallets/0x6e397ddf51d9f15dbe0414538e7529f51f2e5464/metadata"
  body := strings.NewReader(`{
    "metadata": {
      "property1": "string",
      "property2": "string"
    }
  }`)
  req, _ := http.NewRequest("PATCH", url, body)
  req.Header.Add("Content-Type", "application/json")
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://api.notus.team/api/v1/wallets/0x6e397ddf51d9f15dbe0414538e7529f51f2e5464/metadata"
body = {
  "metadata": {
    "property1": "string",
    "property2": "string"
  }
}
response = requests.request("PATCH", url, json = body, headers = {
  "Content-Type": "application/json"
})

print(response.text)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.http.HttpResponse.BodyHandlers;
import java.time.Duration;
import java.net.http.HttpRequest.BodyPublishers;

var body = BodyPublishers.ofString("""{
  "metadata": {
    "property1": "string",
    "property2": "string"
  }
}""");
HttpClient client = HttpClient.newBuilder()
  .connectTimeout(Duration.ofSeconds(10))
  .build();

HttpRequest.Builder requestBuilder = HttpRequest.newBuilder()
  .uri(URI.create("https://api.notus.team/api/v1/wallets/0x6e397ddf51d9f15dbe0414538e7529f51f2e5464/metadata"))
  .header("Content-Type", "application/json")
  .PATCH(body)
  .build();

try {
  HttpResponse<String> response = client.send(requestBuilder.build(), BodyHandlers.ofString());
  System.out.println("Status code: " + response.statusCode());
  System.out.println("Response body: " + response.body());
} catch (Exception e) {
  e.printStackTrace();
}
using System;
using System.Net.Http;
using System.Text;

var body = new StringContent("""
{
  "metadata": {
    "property1": "string",
    "property2": "string"
  }
}
""", Encoding.UTF8, "application/json");

var client = new HttpClient();
var response = await client.PatchAsync("https://api.notus.team/api/v1/wallets/0x6e397ddf51d9f15dbe0414538e7529f51f2e5464/metadata", body);
var responseBody = await response.Content.ReadAsStringAsync();
{
  "wallet": {
    "walletAddress": "0x6e397ddf51d9f15dbe0414538e7529f51f2e5464",
    "accountAbstraction": "0x6e397ddf51d9f15dbe0414538e7529f51f2e5464",
    "externallyOwnedAccount": "0x133700000000000000000000000000000000c0de",
    "factory": "0x0000000000400cdfef5e2714e63d8040b700bc24",
    "implementation": "0x8e8e658e22b12ada97b402ff0b044d6a325013c7",
    "eip7702": false,
    "salt": 12345,
    "registeredAt": "2025-08-06T16:57:09.249Z"
  }
}
{
  "statusCode": 403,
  "id": "NOT_ALLOWED",
  "message": "You're not allowed to do this action"
}
{
  "statusCode": 404,
  "id": "WALLET_NOT_FOUND",
  "message": "Wallet not found"
}