Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

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().