Skip to content

dryRunTransactionBlock() and executeTransactionBlock() throw 'Unsupported method' with GraphQL transport #7286

Closed
@msarcev

Description

@msarcev

Description

When using IotaClient with IotaClientGraphQLTransport, transaction methods like dryRunTransactionBlock() and executeTransactionBlock() throw "Unsupported method" errors.

Steps to Reproduce

  1. Create an IotaClient with GraphQL transport:

    import { IotaClientGraphQLTransport } from '@iota/graphql-transport';
    import { IotaClient } from '@iota/iota-sdk/client';
    
    const client = new IotaClient({
        transport: new IotaClientGraphQLTransport({ url: graphqlUrl }),
    });
  2. Try to run a dry run:

    const dryRun = await client.dryRunTransactionBlock({
        transactionBlock: transaction,
    });

Expected Behavior

Dry run should execute successfully and return transaction effects.

Actual Behavior

Throws an error indicating that the method is not supported in the GraphQL API.

Additional Failing Methods

  • executeTransactionBlock() - throws UnsupportedMethodError: Method iota_executeTransactionBlock is not supported in the GraphQL API

Metadata

Metadata

Assignees

Labels

toolingIssues related to the Tooling teamts-sdkIssues related to the TS SDK

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions