increaseDelegateStake

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

increaseDelegateStake requires authentication.

Parameters

← Swipe to see more →
ParameterTypeDescriptionRequired
qtynumberAmount in mARIO to add to delegated stakeYes
targetstringThe gateway's wallet addressYes
tagsarrayAn array of GQL tag objects to attach to the transactionNo
← Swipe to see more →

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();