BlockRaise API Reference

Complete API documentation for BlockRaise smart contracts. Interact directly with the blockchain for advanced integrations and custom applications.

Solidity ContractsEthereum SepoliaWeb3 IntegrationChainlink OracleDecentralized
CrowdFundingFactory Contract
Factory contract for deploying and managing crowdfunding campaigns
Sepolia Testnet0x1D86a62C58650C58ffb4262FA01a919E46176C89

Integration Examples
Code examples for integrating with BlockRaise contracts

Connect to Factory Contract

import { ethers } from 'ethers';

const factoryAddress = '0x1D86a62C58650C58ffb4262FA01a919E46176C89';
const factoryABI = [...]; // Factory contract ABI

const provider = new ethers.providers.Web3Provider(window.ethereum);
const signer = provider.getSigner();

const factoryContract = new ethers.Contract(
  factoryAddress,
  factoryABI,
  signer
);

Create New Campaign

const tx = await factoryContract.createCampaign(
  "My Project",
  "Building something amazing",
  ethers.utils.parseUnits("1000", 8), // $1000
  30 // 30 days
);

await tx.wait();
console.log("Campaign created!");

Contribute to Campaign

const campaignAddress = '0x...'; // From createCampaign event
const campaignABI = [...]; // Campaign contract ABI

const campaignContract = new ethers.Contract(
  campaignAddress,
  campaignABI,
  signer
);

// Contribute to tier 0 with 0.1 ETH
const tx = await campaignContract.fund(0, {
  value: ethers.utils.parseEther("0.1")
});

await tx.wait();
Contract Events
Important events emitted by the smart contracts for tracking and integration

CampaignCreated

Emitted when a new campaign is created through the factory.

event CampaignCreated(address indexed campaignAddress, address indexed owner, string name, uint256 goal, uint256 deadline);
Contract Source & ABI
Download contract source code and ABI files for integration

Deployment Information

Contracts are deployed on Ethereum Sepolia testnet. Use the provided addresses and ABIs for your integrations.