Registration
API endpoints for managing Tournament registrations for Forge Digital Ventures
Creating Registration Records
Endpoint: POST /tournaments/{tournamentId}/register
Allows participants to register for a specific tournament. This only creates a registration record and does not yet add the participant to the tournament.
Request Parameters:
utxos(string[], min 1): Array of UTXO strings to use for the transactionregistererAddress(string): Address of the registering participant, used for prize payoutschangeAddress(string, optional): Address to receive change UTXOs (defaults to registererAddress)tournamentId(string): Tournament identifiercontractVersion(string, optional): Contract version for custom deploymentscontractTitle(string, optional): Contract title for custom deployments
Response:
complete: Hex-encoded transaction for signing
Technical Notes:
Creates an output at the parameterized registration script address
The output must contain the required entry fee
The registration datum stores the participant's address
This address will be used for prize payouts.
After registration, participants must wait for tournament admin to add them
Example (Node.js with fetch):
Cancelling a Registration
Endpoint: POST /tournaments/{tournamentId}/unregister
Allows participants to cancel their registration and recover their entry fee.
Request Parameters:
utxos(string[], min 1): Array of UTXO strings to use for the transactionregistererAddress(string): Address of the registered participantchangeAddress(string, optional): Address to receive change UTXOs (defaults to registererAddress)tournamentId(string): Tournament identifieroutputRef(string): Reference to the registration UTXO in formattxHash#indexcontractTitle(string, optional): Contract title for custom deploymentscontractVersion(string, optional): Contract version for custom deployments
Response:
complete: Hex-encoded transaction for signing
Technical Notes:
Only the original registrant can cancel their registration
The "Cancel" redeemer is used to validate the transaction
The registration UTXO (including the entry fee) is returned to the participant
This provides a full refund of the entry fee to the canceling participant
Cancellation is only possible before the administrator has added the participant to the tournament
Example (Node.js with fetch):
Retrieving Registrations
Endpoint: GET /tournaments/{tournamentId}/registrations
Retrieves a list of all registrations for a specific tournament.
Request Parameters:
tournamentId(string): Tournament identifiervalid(boolean, optional): Filter to only valid or invalid registrationslimit(number, optional): Max number of results to return (1-100, default: 100)page(number, optional): Page number for paginationcursor(number, optional): Alias for page, enables TRPC infinite queriescontractTitle(string, optional): Contract title for custom deploymentscontractVersion(string, optional): Contract version for custom deployments
Response:
entryFeeLovelace(string): The required entry fee amount in lovelaceresults: Array of registration objects, each containing:address(string): Registrant addressoutputRef(string): Registration UTXO referencevalid(boolean): Whether the registration has sufficient fundspaidFeesLovelace(string): Amount of fees paid in lovelace
Technical Notes:
Results can be filtered by validity (sufficient funds)
Results are paginated with a default limit of 100 registrations
Output refs uniquely identify each registration UTXO on the blockchain
Example (Node.js with fetch):
Technical Notes:
Returns both valid and invalid registrations (can be filtered with the
validparameter)Invalid registrations may not have paid the correct entry fee
Example (Node.js with fetch):
Last updated
Was this helpful?

