Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Create a nonce and SIWE message template for wallet authentication.
curl -X POST "https://base.sepolia.api.4mica.io/auth/nonce" \ -H "Content-Type: application/json" \ -d '{"address":"0x1111111111111111111111111111111111111111"}'
const response = await fetch("https://base.sepolia.api.4mica.io/auth/nonce", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ address: "0x1111111111111111111111111111111111111111" }), }); console.log(await response.json());
import axios from "axios"; const { data } = await axios.post( "https://base.sepolia.api.4mica.io/auth/nonce", { address: "0x1111111111111111111111111111111111111111" }, ); console.log(data);
import requests url = "https://base.sepolia.api.4mica.io/auth/nonce" print(requests.post(url, json={"address": "0x1111111111111111111111111111111111111111"}).json())
package main import ("bytes"; "fmt"; "io"; "net/http") func main() { body := []byte(`{"address":"0x1111111111111111111111111111111111111111"}`) response, _ := http.Post("https://base.sepolia.api.4mica.io/auth/nonce", "application/json", bytes.NewReader(body)) defer response.Body.Close() result, _ := io.ReadAll(response.Body) fmt.Println(string(result)) }
{ "nonce": "9c1c0c7e", "siwe": { "domain": "4mica.io", "uri": "https://4mica.io", "chain_id": 84532, "statement": "Sign in to 4Mica", "expiration": "2026-06-22T11:00:00Z", "issued_at": "2026-06-22T10:00:00Z" } }
{ "error": "Invalid wallet address" }
POST /auth/nonce
200
400
500
POST /auth/verify