Kitty Kad
Kitty Kad

Reputation: 444

getClient not present in @kadena/client

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

Upvotes: 1

Views: 44

Answers (1)

Ashwin
Ashwin

Reputation: 963

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

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

const { local } = createClient();

await local(tx);

Upvotes: 1

Related Questions