Custom Transport Client
Use custom(provider) with an injected wallet provider such as
window.IWalletJS.
import { createWalletClient, custom, mainnet } from '@ivem/core'
const client = createWalletClient({
chain: mainnet,
transport: custom(window.IWalletJS),
})The provider should implement:
provider.request({
method: 'accounts',
})This transport is intended for wallet-provider flows. For direct IOST node
HTTP RPC access, use http().