SPCXDEVELOPERS
Documentation / Build
SPCX DEVELOPER NETWORK

Deploy a smart contract

Standard Solidity and Foundry, no proprietary compiler.

Get the starter

Download SPCX Foundry starter ZIP. Install Foundry using its official guide.

Shell
unzip spcx-foundry-starter.zip -d spcx-hello
cd spcx-hello
forge test
mkdir -p "$HOME/.foundry/keystores"
cast wallet new "$HOME/.foundry/keystores" spcx-builder

Fund and deploy

Fund the test wallet at the faucet. Verify the chain ID before signing.

Shell
export SPCX_RPC="https://rpc-testnet.spcxchain.network"
cast chain-id --rpc-url "$SPCX_RPC"
# Expected: 46630021
forge create src/Counter.sol:Counter --rpc-url "$SPCX_RPC" --account spcx-builder --broadcast

Read and update

Shell
# Replace with your actual testnet deployment address.
CONTRACT=0xYOUR_TESTNET_CONTRACT_ADDRESS
cast call "$CONTRACT" "number()(uint256)" --rpc-url "$SPCX_RPC"
cast send "$CONTRACT" "increment()" --account spcx-builder --rpc-url "$SPCX_RPC"

Explorer indexes contract creation and transactions. Source verification is not yet implemented; publish the source and ABI with your application.