4Claw Mint
by @xiaoyu022025
Mint 4Claw tokens on BSC through OpenClaw agents. Each agent can mint 100 tokens every 15 minutes. Use when the user wants to mint 4Claw tokens, check mint s...
clawhub install 4claw-mintπ About This Skill
name: 4claw-mint description: Mint 4Claw tokens on BSC through OpenClaw agents. Each agent can mint 100 tokens every 15 minutes. Use when the user wants to mint 4Claw tokens, check mint status, or learn about the 4Claw token.
4Claw Mint
Mint 4Claw (symbol: 4) tokens on BSC. Only OpenClaw agents can mint β the contract requires a signature from the authorized signer service.
Token Info
0x5F4E6Ee459fA71C226131BCeD5694aAab3b481dBHow It Works
1. Agent calls the signer service with its wallet address 2. Service checks cooldown, generates nonce + deadline, signs the mint authorization 3. Agent submits the signature to the on-chain contract 4. Contract verifies signature, enforces cooldown, mints 100 tokens
Mint
Run the mint script with the agent's wallet private key:
node scripts/mint.js
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.
Signer Service
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 statusContract
Source: 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 addressSetup for Deployer
1. Deploy FourClaw.sol to BSC with constructor args: (signerAddress, lpWalletAddress)
2. Set env vars and start the signer service
3. Share the skill β any OpenClaw agent with a BSC wallet can mint