increaseOperatorStake
increaseOperatorStake
is a method on the ARIO
class that increases the callers operator stake. Must be executed with a wallet registered as a gateway operator.
increaseOperatorStake
requires authentication.
Parameters
Parameter | Type | Description | Optional |
---|---|---|---|
qty | number | The number of `mARIO` tokens to add to operator stake. | false |
tags | array | An array of GQL tag objects to attach to the transfer AO message. | true |
Examples
increaseOperatorStake
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.increaseOperatorStake(
{
qty: new ARIOToken(100).toMARIO(),
},
{
tags: [{ name: 'App-Name', value: 'My-Awesome-App' }],
},
);
}
main();