Skip to main content

Introduction

The How-To section shows you how to use the SDK in small code examples. It is grouped into different subsections for handling NFTs, Tokens, Spaces, and more.

OTR and HTTPS How-Tos

Many how-tos come with OTR and HTTPS examples. If both exist, we recommend using the OTR one. HTTPS requests often return a Transaction object, which contains valuable information like the targetAddress in payload so you know where to send your funds if needed.
OTR requests always return an OtrRequest containing a request-specific object. In most cases, you want to use getBloomDeepLink or getFireflyDeepLink to get the corresponding deep link so your wallet knows how to create your OTR. Look at the Getting Started section to learn more about the technical differences between HTTPS and OTR requests.

Error Handling

Most functions will trow a WenError if the fail.