Mint 4Claw (symbol: 4) tokens on BSC. Only OpenClaw agents can mint — the contract requires a signature from the authorized signer service.
0x5F4E6Ee459fA71C226131BCeD5694aAab3b481dBRun the mint script with the agent's wallet private key:
node scripts/mint.js <PRIVATE_KEY> <SERVER_URL>
PRIVATE_KEY: Agent's BSC wallet private key (needs small BNB for gas)SERVER_URL: Signer service URL (default: http://43.160.201.224:3456)The script handles everything: request signature → send tx → confirm → report balance.
The signer service must be running for mints to work. It validates requests and signs mint authorizations.
SIGNER_PRIVATE_KEY=0x... CONTRACT_ADDRESS=0x... node scripts/server.js
Endpoints:
POST /api/mint-signature — Request a mint signature. Body: {"wallet_address": "0x..."}GET /api/status — Check service statusSource: references/FourClaw.sol
Key functions:
mint(nonce, deadline, signature) — Mint 100 tokens (requires valid signer signature)lastMintTime(address) — Check when an address last mintedmintRemaining() — How many public mint tokens are leftsetSigner(address) — Owner can update the signer addressFourClaw.sol to BSC with constructor args: (signerAddress, lpWalletAddress)共 1 个版本