Integration Flow
Step-by-step guide for integrating with the Tournament Builder for Forge Digital Ventures
1. Tournament Creation
// 1. Configure tournament parameters
const tournamentConfig = {
name: "Tournament Name",
adminAddress: "addr1...",
bracketSize: 16,
entryFee: "10000000", // 10 ADA in lovelace
payoutStructure: ["7000000", "2000000", "1000000"],
utxos: ["1234...#0", "5678...#1"]
};
// 2. Create tournament transaction
const response = await fetch("/tournaments", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(tournamentConfig)
});
const { transaction } = await response.json();
// 3. Sign and submit transaction
// See Transaction Overview documentation for details: ../guides/transaction/README.md
const signedTx = await signTransaction(transaction);
const submitResponse = await fetch("/tournaments/submit-tx", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ transaction: signedTx })
});
const { txHash } = await submitResponse.json();
console.log("Tournament created with transaction:", txHash);2. Registration Management
Phase 1: Participants Register
Phase 2: Tournament Administrator Adds Participants
Phase 3: Tournament Settlement
Last updated
Was this helpful?

