Closed
Description
Description
When using IotaClient
with IotaClientGraphQLTransport
, transaction methods like dryRunTransactionBlock()
and executeTransactionBlock()
throw "Unsupported method" errors.
Steps to Reproduce
-
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 }), });
-
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()
- throwsUnsupportedMethodError: Method iota_executeTransactionBlock is not supported in the GraphQL API