cryptnox-sdk-esp32
1.0.0
ESP32 SDK for Cryptnox Hardware Wallet
Loading...
Searching...
No Matches
config.template.h
Go to the documentation of this file.
1
/*
2
* SPDX-License-Identifier: LGPL-3.0-or-later
3
* Copyright (c) 2026 Cryptnox SA
4
*/
5
6
#ifndef CONFIG_H
7
#define CONFIG_H
8
9
#include <stdint.h>
10
11
/* =========================
12
* WiFi Configuration
13
* ========================= */
14
#define WIFI_SSID "<YOUR_SSID>"
15
#define WIFI_PASSWORD "<YOUR_PASSWORD>"
16
17
/* =========================
18
* Ethereum / RPC
19
* ========================= */
32
33
/* --- Option A: PublicNode ----------------------------------------- */
34
#define RPC_HOST "ethereum-sepolia-rpc.publicnode.com"
35
#define RPC_PORT 443
36
#define RPC_URL "https://" RPC_HOST
37
/* No authentication needed — leave RPC_PROJECT_ID / RPC_API_SECRET
38
* undefined (or comment them out) when using PublicNode. */
39
40
/* --- Option B: Infura --------------------------------------------- */
41
/* #define RPC_HOST "sepolia.infura.io" */
42
/* #define RPC_PORT 443 */
43
/* #define RPC_PROJECT_ID "<YOUR_INFURA_PROJECT_ID>" */
44
/* #define RPC_URL "https://sepolia.infura.io/v3/" RPC_PROJECT_ID */
45
/* #define RPC_API_SECRET "<YOUR_INFURA_API_SECRET>" */
46
47
/* =========================
48
* Wallet / Keys (SENSITIVE)
49
* ========================= */
54
55
#define CARD_PIN "<CARD_PIN>"
/* 4-9 digit PIN, e.g. "000000000" */
56
#define CARD_PIN_LEN (9U)
/* number of digits in CARD_PIN */
57
58
/* =========================
59
* Ethereum Addresses
60
* ========================= */
61
/* Sender address — lowercase hex, no 0x prefix */
62
#define ADDR_FROM "<SENDER_ADDRESS>"
63
64
/* Recipient address */
65
#define ADDR_TO "<RECIPIENT_ADDRESS>"
66
67
/* USDC contract address (Sepolia testnet) */
68
#define ADDR_USDC "<USDC_CONTRACT_ADDRESS>"
69
70
/* =========================
71
* Transaction Parameters
72
* ========================= */
73
#define CHAIN_ID_SEPOLIA 11155111
74
75
/* Amount in token smallest unit (USDC has 6 decimals) */
76
#define AMOUNT_USDC 1000000UL
/* 1.0 USDC */
77
78
/* Gas parameters (in wei) */
79
#define MAX_PRIORITY_FEE 2000000000ULL
/* 2 Gwei */
80
#define MAX_FEE 4000000000ULL
/* 4 Gwei */
81
#define GAS_LIMIT_ERC20 60000ULL
82
83
#endif
/* CONFIG_H */
examples
UsdcSigning
config.template.h
Generated by
1.15.0