Skip to content

TricksXTech/Crypto-ERC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Crypto-ERC

Crypto-ERC is a lightweight and free PHP-based crypto API for interacting with EVM-compatible blockchains such as Ethereum, BNB Chain, Polygon, Arbitrum, Base, and many more.

It allows developers to:

  • Generate wallets
  • Check native coin balances
  • Check token balances
  • Send native coin transactions
  • Send ERC20/BEP20 token transactions
  • Build wallet automation tools
  • Create crypto bots and Web3 integrations

Built entirely with pure PHP, this project is simple, fast, and beginner-friendly. :contentReference[oaicite:0]{index=0}


πŸš€ Features

  • Generate new crypto wallets
  • Create:
    • Wallet Address
    • Private Key
    • Mnemonic Phrase
  • Check native coin balances
  • Check ERC20 / BEP20 token balances
  • Send native coin transactions
  • Send ERC20 / BEP20 token transactions
  • Support for 30+ EVM chains
  • REST-style API endpoints
  • No heavy framework required
  • Works on shared hosting / cPanel
  • Easy integration with bots and websites

🌐 Supported Chains

  • Ethereum
  • BNB Smart Chain
  • Polygon
  • Arbitrum
  • Optimism
  • Base
  • Avalanche
  • Fantom
  • Linea
  • zkSync Era
  • Scroll
  • Cronos
  • Gnosis
  • Celo
  • Harmony
  • Moonbeam
  • Moonriver
  • Aurora
  • Metis
  • Kava
  • Mantle
  • Blast
  • Manta Pacific
  • X Layer
  • Boba
  • Fuse
  • Telos
  • Core DAO
  • PulseChain
  • Evmos
  • Dogechain
  • HECO
  • Syscoin
  • IoTeX
  • WEMIX
  • Palm
  • ShimmerEVM

πŸ“‚ API Endpoints


1️⃣ Create Wallet

Endpoint: build.php

Generate a new wallet including:

  • Wallet address
  • Private key
  • Mnemonic phrase

Example Request

GET /build.php

Example Response

{
  "status": "success",
  "address": "0x1234567890abcdef...",
  "private_key": "abcdef123456...",
  "mnemonic": "apple banana river moon ..."
}

2️⃣ Check Native Coin Balance

Endpoint: balance.php

Returns the native coin balance of a wallet address.

Parameters

Parameter Type Description
chain string Blockchain network name
address string Wallet address

Example Request

GET /balance.php?chain=bnb&address=0x1234567890abcdef

Example Response

{
  "status": true,
  "chain": "bnb",
  "address": "0x1234567890abcdef",
  "balance": "0.5421",
  "symbol": "BNB"
}

3️⃣ Check Token Balance

Endpoint: token-balance.php

Returns the balance of an ERC20/BEP20 token.

Parameters

Parameter Type Description
chain string Blockchain network
address string Wallet address
token string Token contract address

Example Request

GET /token-balance.php?chain=bnb&address=0x1234567890abcdef&token=0x55d398326f99059fF775485246999027B3197955

Example Response

{
  "status": true,
  "chain": "bnb",
  "wallet": "0x1234567890abcdef",
  "token": "0x55d398326f99059fF775485246999027B3197955",
  "symbol": "USDT",
  "decimals": 18,
  "balance": "25.55",
  "balance_raw": "25550000000000000000"
}

4️⃣ Send Native Coin Transaction

Endpoint: send.php

Transfer native crypto coins between wallets.

Parameters

Parameter Type Description
chain string Blockchain network
from string Sender wallet address
to string Receiver wallet address
private_key string Sender private key
amount number Amount to send

Example Request

GET /send.php?chain=bnb&from=0x1234567890abcdef&to=0x987654321&private_key=abcdef123456&amount=0.1

Example Response

{
  "status": true,
  "chain": "bnb",
  "from": "0x1234567890abcdef",
  "to": "0x987654321",
  "amount": "0.1",
  "tx_hash": "0x2adc377ed8d9335b5070f4578255996e97a34cf388fa181b57ec8b702bceeb27",
  "symbol": "BNB"
}

5️⃣ Send ERC20 / BEP20 Tokens

Endpoint: token-send.php

Transfer ERC20/BEP20 tokens between wallets.

Parameters

Parameter Type Description
chain string Blockchain network
from string Sender wallet address
to string Receiver wallet address
private_key string Sender private key
token string Token contract address
amount number Token amount

Example Request

GET /token-send.php?chain=bnb&from=0x1234567890abcdef&to=0x987654321&private_key=abcdef123456&token=0x55d398326f99059fF775485246999027B3197955&amount=1

Example Response

{
  "status": true,
  "chain": "bnb",
  "network": "BNB Smart Chain",
  "token": "0x55d398326f99059fF775485246999027B3197955",
  "symbol": "USDT",
  "decimals": 18,
  "from": "0x1234567890abcdef",
  "to": "0x987654321",
  "amount": "1",
  "tx_hash": "0xabc123456789"
}

βš™οΈ Requirements

  • PHP 7.4+
  • Apache or Nginx
  • cPanel / Shared Hosting Supported
  • OpenSSL Enabled
  • BCMath Extension Enabled
  • cURL Enabled
  • Blockchain RPC Endpoints

πŸ“¦ Installation

Clone the repository:

git clone https://github.com/yourusername/Crypto-ERC.git

Open the project folder:

cd Crypto-ERC

Upload files to your server or hosting.

You can now access the API endpoints directly from your browser or application.


πŸ”’ Security Notice

This project is intended for:

  • Learning
  • Testing
  • Development
  • Experimental projects

Do NOT use this API in production without implementing proper security measures such as:

  • Private key encryption
  • Rate limiting
  • IP protection
  • Input sanitization
  • Secure RPC providers
  • Transaction verification
  • Request authentication
  • API key protection

Never expose private keys publicly.


πŸ§‘β€πŸ’» Use Cases

  • Blockchain learning
  • Wallet automation
  • Crypto payment systems
  • Telegram crypto bots
  • Web3 testing
  • Crypto monitoring tools
  • Balance tracking dashboards
  • EVM chain integrations

πŸ“œ License

This project is free and open-source.

You are free to use, modify, and distribute it.


⭐ Support

If you like this project:

  • Star the repository
  • Share it with others
  • Contribute improvements

Happy building πŸš€

About

Advance Free API's Demo That Build In PHP Free For All To Use

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages