Getting Started
Prerequisites
node >= v18.0.0
npm
oryarn
Installation
Installation Methods
Quick Start
The following examples demonstrate how to use the AR.IO SDK to retrieve a list of active gateways from the Gateway Address Registry (GAR) across different environments.
Node
Example Usage
Web
Polyfills
Polyfills are not provided by default for bundled web projects (Vite, ESBuild, Webpack, Rollup, etc.) . Depending on your apps bundler configuration and plugins, you will need to provide polyfills for various imports including crypto, process and buffer. Refer to examples/webpack and examples/vite for examples. For other project configurations, refer to your bundler's documentation for more information on how to provide the necessary polyfills.
Environment Setup
Output
The output for obtaining a list of gateways, regardless of the environment used, will follow the structure outlined below: