@ledgerhq/coin-filecoin
Version:
Ledger Filecoin Coin integration
11 lines • 530 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNextSequence = getNextSequence;
const api_1 = require("../../network/api");
// The Filecoin REST API has no standalone nonce endpoint. We derive the nonce
// from the fee-estimation response, which includes the current account nonce.
async function getNextSequence(address) {
const result = await (0, api_1.fetchEstimatedFees)({ from: address, to: address });
return BigInt(result.nonce);
}
//# sourceMappingURL=getNextSequence.js.map