# SignalHash Referral Smart Contract
Open-source smart contract powering referral cashback for SignalHash on the TON blockchain.
[Website](https://signalhash.io) · [Documentation](https://signalhash.io/tutorials/ton-referrals) · [Referral Guide](https://signalhash.io/tutorials/referrals-current-guide) · [Tonviewer](https://tonviewer.com/EQChGen86Iv7Vw2Cp5I9Q2Rkeac6l9MaW0SDzShUNeOilU-y)
The SignalHash referral contract transparently distributes qualifying TON payments between the SignalHash merchant wallet and a referrer’s wallet.
The contract:
0.2 TON;10% (1,000 basis points);Referral eligibility and the applicable cashback rate are determined by the SignalHash application. See the current referral guide for the latest player-facing rules.
| Network | TON Mainnet |
| Address | EQChGen86Iv7Vw2Cp5I9Q2Rkeac6l9MaW0SDzShUNeOilU-y |
| Explorer | View contract and transactions on Tonviewer |
| Metadata | View contract metadata |
On-chain activity is published for contract-level transparency. It should not be treated as a directory attributing payments to individual SignalHash players.
The contract is written in Tact and tested with the TON Sandbox and Jest.
npm install
npm run build
npm test
npm run fmt
npm run lint
sources/
├── referral.tact # Smart contract
├── referral.spec.ts # Sandbox test suite
├── referral.deploy.ts # Deployment helper
└── referral.live.ts # Mainnet interaction helper
public/
├── signalhash-ref.json # Public contract metadata
└── logo_v2.jpg # SignalHash logo
This project is open source and licensed under the GNU Affero General Public License v3.0.