How can I make this async function run in Bubble?

Something in the form of:

assuming the “marketplace” variable is pre-defined, and that “< collectionaddress >” is just a placeholder for the actual fetch link that you don’t want to expose.

edit: resp.json should be resp.json()

You may have to JSON.Stringify() or .String() stuff and format things back and forth from JSON.

Here’s a helpful link that does this process in reverse: Refactoring Promise Chains w/Async-Await | by Brian Lego | JavaScript in Plain English

cheers
@JackMorgan.xyz

1 Like