Notus API
Smart wallets

Create Deposit Transaction

This endpoint provides a transaction to be signed by the user to deposit funds into the smart wallet.

POST
/api/v1/wallets/{accountAbstractionAddress}/deposit
x-api-key<token>

In: header

Path Parameters

accountAbstractionAddressstring

The smart wallet address (in hexadecimal format) receiving the transfer.

Match^0x[a-fA-F0-9]{40}$
amountstring

The amount to be transferred, expressed as a decimal string.

chainIdnumber

The blockchain network where the transfer executes. Supported chains:

  • Arbitrum One: 42161
  • Avalanche: 43114
  • Base: 8453
  • BNB Smart Chain: 56
  • Ethereum: 1
  • OP Mainnet: 10
  • Polygon: 137
  • Gnosis: 100
tokenstring

The address (in hexadecimal format) of the token being transferred. If you want to deposit native tokens, set this value to 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.

Match^0x[a-fA-F0-9]{40}$
fromAddressstring

The wallet address (in hexadecimal format) initiating the transfer.

Match^0x[a-fA-F0-9]{40}$

Response Body

curl -X POST "https://api.notus.team/api/v1/wallets/string/deposit" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": "string",
    "chainId": 0,
    "token": "string",
    "fromAddress": "string"
  }'
const body = JSON.stringify({
  "amount": "string",
  "chainId": 0,
  "token": "string",
  "fromAddress": "string"
})

fetch("https://api.notus.team/api/v1/wallets/string/deposit", {
  body
})
package main

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

func main() {
  url := "https://api.notus.team/api/v1/wallets/string/deposit"
  body := strings.NewReader(`{
    "amount": "string",
    "chainId": 0,
    "token": "string",
    "fromAddress": "string"
  }`)
  req, _ := http.NewRequest("POST", 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/string/deposit"
body = {
  "amount": "string",
  "chainId": 0,
  "token": "string",
  "fromAddress": "string"
}
response = requests.request("POST", 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("""{
  "amount": "string",
  "chainId": 0,
  "token": "string",
  "fromAddress": "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/string/deposit"))
  .header("Content-Type", "application/json")
  .POST(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("""
{
  "amount": "string",
  "chainId": 0,
  "token": "string",
  "fromAddress": "string"
}
""", Encoding.UTF8, "application/json");

var client = new HttpClient();
var response = await client.PostAsync("https://api.notus.team/api/v1/wallets/string/deposit", body);
var responseBody = await response.Content.ReadAsStringAsync();
{
  "transfer": {
    "from": "string",
    "to": "string",
    "value": "string",
    "data": "string",
    "estimateGasCost": "string"
  }
}
{
  "statusCode": 400,
  "id": "NOT_AUTHORIZED_TOKENS",
  "message": "The tokens '[0x]' are not authorized yet."
}
{
  "statusCode": 404,
  "id": "ACCOUNT_ABSTRACTION_ADDRESS_NOT_REGISTERED_WITH_PROJECT",
  "message": "The requested wallet \"undefined\" is not registered with the project"
}