For developers who want to interact with ChainPortal contracts directly (without the SDK or UI), this guide covers the factory contract ABIs, functions, and parameters.
// Get the creation feefunction creationFee() external view returns (uint256);// Get all tokens created by an addressfunction getTokensByCreator(address creator) external view returns (address[] memory);// Get total number of tokens createdfunction totalTokens() external view returns (uint256);
All factory contracts charge a creation fee. The fee is:
Paid in the chain's native token (ETH, MATIC, BNB, etc.)
Configurable by the factory owner
Reduced for referred users by the referrer's tier discount (see below)
Referral Discounts (all chains):
The creation fee is reduced by the referrer's tier discount. A tier requires both its minimum referral count and minimum referred volume (in the chain's fee token). Referrers earn their commission on the reduced fee.
Tier
Min referrals
Min volume
Discount
Bronze
0
0
0%
Silver
10
5
1.5%
Gold
25
20
2%
Platinum
50
50
2.5%
Diamond
100
100
3%
The referrer is your wallet's first referrer. Once linked, later creations use that referrer even if you enter another code, and a code you own yourself never gives a discount.
Discounts can only change after a 24-hour timelock, and no tier can ever exceed 10%.
On NEAR you attach the full fee and the discount is refunded right after deployment. On Solana, where the creation fee is a wallet transfer, the app applies the discount to that transfer.
Fee-exempt creators pay nothing and get no referral.
All factory-deployed contracts can be verified on block explorers. ChainPortal provides a source verification API to auto-verify your deployed contracts on Etherscan and compatible explorers.