API Integration
Developer Integration Guide
Smart Contract Integration
WAGMI Setup
import { createConfig, http } from "wagmi";
import { mantleSepoliaTestnet } from "wagmi/chains";
export const config = createConfig({
chains: [mantleSepoliaTestnet],
transports: {
[mantleSepoliaTestnet.id]: http("https://rpc.sepolia.mantle.xyz"),
},
});Contract Constants
const CONTRACTS = {
GOLD_TOKEN: "0x787c8616d9b8Ccdca3B2b930183813828291dA9c",
OWNAFARM_NFT: "0xC51601dde25775bA2740EE14D633FA54e12Ef6C7",
};Read Contract
Write Contract
Backend API
Base Configuration
Endpoints
Authentication
Endpoint
Method
Description
Farmers
Endpoint
Method
Description
Crops (Investor)
Endpoint
Method
Description
Game
Endpoint
Method
Description
Go Backend Integration
Ethereum Client
Read Contract
Event Listening
Error Handling
Contract Errors
API Errors
Code
Description
Last updated
