The PayAI smart contract facilitates payment between buyers and sellers. The contract is built using the Anchor framework and is deployed on the Solana blockchain.
- Payment escrow
- Payment release
- Payment refund
- Admin management
- The same contract cannot be created more than once, meaning a buyer cannot create a contract for the same seller with the same CID and the same payment amount more than once.
- The unit tests do not reset the blockchain state between tests, therefore order matters.
- Clone the repository
git clone <repository-url>
- Install the dependencies
Follow the instructions in Getting Started With Anchor to install solana and anchor.
- Build the program
anchor build
- Test the program
anchor test
- Deploy the program
anchor deploy
This project is licensed under the MIT License - see the LICENSE file for details.