increaseDelegateStake
increaseDelegateStake
is a method on the ARIO
class that increases the caller's stake on the target gateway.
increaseDelegateStake
requires authentication.
Parameters
Parameter | Type | Description | Optional |
---|---|---|---|
qty | number | Number of tokens, in `mARIO` to add to delegate stake. | false |
target | string - WalletAddress | Public Wallet address of gateway. | false |
tags | array | An 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();