pactwallet-connectkadena

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


Solution

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

    import { createClient } from '@kadena/client';
    
    const { local } = createClient();
    
    await local(tx);