getClient not present in @kadena/client

37 Views Asked by At

I tried following the kadena wallet connect example

However it can't import {getClient} from '@kadena/client' This causes a failure when trying to get balances for the accounts

1

There are 1 best solutions below

0
Ashwin On BEST ANSWER

getClient has been renamed to createClient. It can be used like this:

import { createClient } from '@kadena/client';

const { local } = createClient();

await local(tx);