Protected_Adds an entrant to the sweepstakes.
Name of the entrant to add
Promise resolving to true if successful
Deletes a sweepstakes or pull by ID
ID of the sweepstakes to delete
OptionalpullId: stringID of the pull to delete
Promise resolving to true if successful
ProtecteddryrunGets the current AO client instance being used by this process client.
The IAOClient instance currently in use
Boolean indicating whether or not the client is set to run dryruns as messages. (non default behavior)
Retrieves the transaction that created this process. This transaction contains the initial state and configuration of the process in its tags.
Promise resolving to the transaction data containing process creation details
Gets the wallet this client uses to sign messages
the wallet used for message signing
A Readonly Client can only perform dry run and result operations, however does not require a wallet to be used. If a wallet is specified on instantiation the client will additionally be able to use write operations (messages).
Boolean indicating whether or not the client is for read operations only.
Boolean indicating whether or not the client is set to run dryruns as messages. (non default behavior)
ProtectedmessageProtectedOptionalanchor: stringOptionalanchor: stringPerforms a sweepstakes pull to select a winner.
Optionaldetails: stringPromise resolving to true if successful
Registers a new sweepstakes.
Promise resolving to true if successful
ProtectedresultProtectedProtectedresultsProtectedOptionalfrom: stringOptionalto: stringControls whether dryrun executes as a message or simulation.
When true, dryrun will execute as a real message. When false (default), executes as a simulation.
Sets the list of entrants for the sweepstakes.
Array of entrant names
Promise resolving to true if successful
Sets the wallet being used for this client. If the client is readonly it will now have write abilities.
the wallet to use with this client.
Retrieves the list of all sweepstakes.
Promise resolving to array of sweepstakes
Retrieves the sweepstakes for a specific id.
ID of the sweepstakes to view
Promise resolving to sweepstakes details
Retrieves details of a specific sweepstakes pull for a user.
ID of the pull to view
Promise resolving to pull details
StaticautoStaticbuilderStaticdefault
See
specification