increaseDelegateStake

increaseDelegateStake is a method on the ARIO class that increases the caller's stake on the target gateway.

increaseDelegateStake requires authentication.

Parameters

ParameterTypeDescriptionOptional
qtynumberNumber of tokens, in `mARIO` to add to delegate stake.false
targetstring - WalletAddressPublic Wallet address of gateway.false
tagsarrayAn array of GQL tag objects to attach to the joinNetwork AO message.true

Example

increaseDelegateStake

 const fs = require("fs");
 const { ARIO, ArweaveSigner, ARIOToken } = require("@ar.io/sdk");

 async function main() {
 const jwk = JSON.parse(fs.readFileSync("KeyFile.json"));
 const ario = ARIO.init({
     signer: new ArweaveSigner(jwk),
 });

 const { id: txId } = await ario.increaseDelegateStake(
         {
             target: 't4Xr0_J4Iurt7caNST02cMotaz2FIbWQ4Kbj616RHl3',
             qty: new ARIOToken(100).toMARIO(),
         },
         // optional additional tags
         { tags: [{ name: 'App-Name', value: 'My-Awesome-App' }] },
     );
 }

 main();