Server-side Usage
Use Atomic Toolkit in Server Environments.
This section guides you through initializing Atomic Toolkit within a server environment like a backend application. Currently Atomic toolkit can be initializing in the following ways:
- Using Arweave Wallet
- Using Irys SDK
Using Arweave Wallet
It uses the Arweave Wallet to sign transactions and interact with the Arweave network.
Input Parameters
The following params are available for this function and they must be passed in as an object:
- warp (optional):
Warp
: A Warp Instance to use with Deploy Plugin. If not provided, the default Warp instance for Mainnet will be used. - arweave (optional):
Arweave
: An Arweave Instance to use. If not provided, the default Arweave instance with gateway arweave.net will be used. - key:
JWKInterface
: The Key to use for signing transactions. Should be a JWK object.
Private keys must be kept secure at all times. Please ensure that the
wallet.json
file is not pushed to a version control (eg. GitHub). If you
are using a CI/CD pipeline, ensure that the wallet.json file is not stored
in the repository.
The Warp instance should use the DeployPlugin
. It is neccessary to
register Atomic Assets
Default Values
Custom Instance Example
Using Irys SDK
This uses the Irys SDK to sign transactions and interact with the Arweave network.
Input Parameters
The following params are available for this function and they must be passed in as an object:
- warp (optional):
Warp
: A Warp Instance to use with Deploy Plugin. If not provided, the default Warp instance for Mainnet will be used. - irys:
Irys
: The Irys SDK instance to use.
The Warp instance should use the DeployPlugin
. It is neccessary to
register Atomic Assets
Default Values
Custom Instance Example
Using Turbo SDK
Input Parameters
The following params are available for this function and they must be passed in as an object:
- warp (optional):
Warp
: A Warp Instance to use with Deploy Plugin. If not provided, the default Warp instance for Mainnet will be used. - turbo: An authenticated Turbo instance to use for uploading with Turbo.
Was this page helpful?