|
cryptnox-sdk-arduino 1.0.0
Arduino library for Cryptnox Hardware Wallet
|
#include <stdint.h>Go to the source code of this file.
Macros | |
| #define | WIFI_SSID "<YOUR_SSID>" |
| #define | WIFI_PASSWORD "<YOUR_PASSWORD>" |
| #define | RPC_HOST "ethereum-sepolia-rpc.publicnode.com" |
| #define | RPC_PORT 443 |
| #define | RPC_PATH "/" |
| #define | WIFI_CA_CERT |
| #define | CARD_PIN "<CARD_PIN>" /* 4-9 digit PIN, e.g. "000000000" */ |
| #define | CARD_PIN_LEN (9U) /* number of digits in CARD_PIN */ |
| #define | ADDR_FROM "<SENDER_ADDRESS>" |
| #define | ADDR_TO "<RECIPIENT_ADDRESS>" |
| #define | ADDR_USDC "<USDC_CONTRACT_ADDRESS>" |
| #define | CHAIN_ID_SEPOLIA 11155111 |
| #define | AMOUNT_USDC 1000000UL /* 1.0 USDC */ |
| #define | MAX_PRIORITY_FEE 2000000000ULL /* 2 Gwei */ |
| #define | MAX_FEE 4000000000ULL /* 4 Gwei */ |
| #define | GAS_LIMIT_ERC20 60000ULL |
| #define ADDR_FROM "<SENDER_ADDRESS>" |
Definition at line 101 of file config.template.h.
Referenced by determineYParity(), and fetchNonce().
| #define ADDR_TO "<RECIPIENT_ADDRESS>" |
Definition at line 104 of file config.template.h.
Referenced by encodeERC20Transfer().
| #define ADDR_USDC "<USDC_CONTRACT_ADDRESS>" |
| #define AMOUNT_USDC 1000000UL /* 1.0 USDC */ |
Definition at line 115 of file config.template.h.
Referenced by encodeERC20Transfer().
| #define CARD_PIN "<CARD_PIN>" /* 4-9 digit PIN, e.g. "000000000" */ |
| #define CARD_PIN_LEN (9U) /* number of digits in CARD_PIN */ |
| #define CHAIN_ID_SEPOLIA 11155111 |
| #define GAS_LIMIT_ERC20 60000ULL |
| #define MAX_FEE 4000000000ULL /* 4 Gwei */ |
| #define MAX_PRIORITY_FEE 2000000000ULL /* 2 Gwei */ |
| #define RPC_HOST "ethereum-sepolia-rpc.publicnode.com" |
Choose ONE provider below and comment out the other.
Option A — PublicNode (free, no account required) Uncomment the three lines under "Option A".
Option B — Infura (requires a free account at app.infura.io)
Definition at line 34 of file config.template.h.
Referenced by determineYParity(), fetchNonce(), and sendRawTx().
| #define RPC_PATH "/" |
Definition at line 36 of file config.template.h.
Referenced by determineYParity(), fetchNonce(), and sendRawTx().
| #define RPC_PORT 443 |
Definition at line 35 of file config.template.h.
Referenced by determineYParity(), fetchNonce(), and sendRawTx().
| #define WIFI_CA_CERT |
Definition at line 60 of file config.template.h.
Referenced by determineYParity(), fetchNonce(), and sendRawTx().
| #define WIFI_PASSWORD "<YOUR_PASSWORD>" |
Definition at line 15 of file config.template.h.
Referenced by ensureWiFi(), and setup().
| #define WIFI_SSID "<YOUR_SSID>" |
Definition at line 14 of file config.template.h.
Referenced by ensureWiFi(), and setup().