Skip to main content
added 307 characters in body
Source Link

According to iota.lib.js documents,

iota.api.getInputs(seed, [, options], callback)

the getInputs() have a options argument. options object have four members, start, end, security and inclusionStates.

i try to given the start value as 100. i expect to show only these transactions which address key index is greater than 100.

However, it still displays all transactions.

Do I misinterpret this function?


For @mihi. Sure. please check the following code.

const IOTA = require('iota.lib.js');
const iota = new IOTA ({});
const dir = require('./directory.js');

iota.api.getTransfers(dir.ivy_seed, [{start: 100}], (e, s) => {
    console.log("trans:", s); 
});

According to iota.lib.js documents,

iota.api.getInputs(seed, [, options], callback)

the getInputs() have a options argument. options object have four members, start, end, security and inclusionStates.

i try to given the start value as 100. i expect to show only these transactions which address key index is greater than 100.

However, it still displays all transactions.

Do I misinterpret this function?

According to iota.lib.js documents,

iota.api.getInputs(seed, [, options], callback)

the getInputs() have a options argument. options object have four members, start, end, security and inclusionStates.

i try to given the start value as 100. i expect to show only these transactions which address key index is greater than 100.

However, it still displays all transactions.

Do I misinterpret this function?


For @mihi. Sure. please check the following code.

const IOTA = require('iota.lib.js');
const iota = new IOTA ({});
const dir = require('./directory.js');

iota.api.getTransfers(dir.ivy_seed, [{start: 100}], (e, s) => {
    console.log("trans:", s); 
});
Source Link

Can iota.api.getTransfers() get specific transactions?

According to iota.lib.js documents,

iota.api.getInputs(seed, [, options], callback)

the getInputs() have a options argument. options object have four members, start, end, security and inclusionStates.

i try to given the start value as 100. i expect to show only these transactions which address key index is greater than 100.

However, it still displays all transactions.

Do I misinterpret this function?