OnchainLobClient
Last updated
import { OnchainLobClient, OnchainLobClientOptions } from 'onchain-lob-sdk';
const options: OnchainLobClientOptions = {
apiBaseUrl: 'https://api.xpressprotocol.com',
webSocketApiBaseUrl: 'wss://sockets.xpressprotocol.com',
signer: null,
webSocketConnectImmediately: false,
};
const onchainLobClient = new OnchainLobClient(options);
// If you need to use user-oriented methods, set a signer or provider:
// newSigner = new ethers.Wallet(<yourPrivateKey>, <provider>);
onchainLobClient.setSigner(newSigner);