Skip to main content

Play By ID

Play By ID

Gets a Play struct for the given id if it exists.

Parameters:

  • id: The id of the play.

Returns: Golazos.PlayData - The Golazos Play data.

import Golazos from 0xGOLAZOSADDRESS

pub fun main(id: UInt64): Golazos.PlayData? {
return Golazos.getPlayData(id: id)
}