Skip to content

Funding devnet wallets throws 'waitForLastSuccessIndexerVersionSync timeout' #774

Description

@anthonyjoeseph

🐛 Bug Description

Funding devnet wallets throws an exception

How to reproduce

Code snippet to reproduce

The simple_transfer.ts example in the 'examples/typescript' directory fails

https://github.com/aptos-labs/aptos-ts-sdk/blob/main/examples/typescript/simple_transfer.ts

Here's a simplified version that also fails:

const config = new AptosConfig({ network: APTOS_NETWORK });
const aptos = new Aptos(config);
const alice = Account.generate();
const aliceFundTxn = await aptos.fundAccount({
  // this also fails when given a pre-existing, already-funded devnet address
  accountAddress: alice.accountAddress, 
  amount: 100_000_000,
});

Stack trace / error message

> tsx aptos-example.ts

This example will create two accounts (Alice and Bob), fund them, and transfer between them.
=== Addresses ===

Alice's address is: 0x4d1086d9b220d4d3537d4febbea3cb9a812f80016cbd663d22046ae9beed0089
Bob's address is: 0x7db689d9a48d530bbbb7e3caa1021c7b1fcbed449d9504c2987bb42b386b1a78

=== Funding accounts ===

/Users/[...]/node_modules/.pnpm/@aptos-labs+ts-sdk@5.1.0_got@11.8.6/node_modules/@aptos-labs/ts-sdk/src/transactions/typeTag/parser.ts:359
        throw new TypeTagParserError(str, TypeTagParserErrorType.UnexpectedVectorTypeArgumentCount);
                                          ^


Error: waitForLastSuccessIndexerVersionSync timeout
    at _AuthenticationKey (/Users/[...]/node_modules/.pnpm/@aptos-labs+ts-sdk@5.1.0_got@11.8.6/node_modules/@aptos-labs/ts-sdk/src/transactions/typeTag/parser.ts:359:43)
    at async _AuthenticationKey (/Users/[...]/node_modules/.pnpm/@aptos-labs+ts-sdk@5.1.0_got@11.8.6/node_modules/@aptos-labs/ts-sdk/src/transactions/typeTag/parser.ts:359:43)
    at async example (/Users/[...]/e2e-payments/aptos-example.ts:69:24)

Node.js v23.7.0
/Users/[...]/aptos-example:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  aptos-example: `tsx aptos-example.ts`
Exit status 1

Expected Behavior

would expect this to successfully fund a devnet account

System information

System details:

  • Typescript SDK Version: 3.1.2 and 5.1.0 (haven't tried any others)
  • Platform (e.g. Node, browser, etc.): Nodejs v23.7.0

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions