0.1.7 • Published 5 months ago
@betswirl/wagmi-provider v0.1.7
@betswirl/wagmi-provider
A provider allowing to use @betswirl/sdk-core through a Wagmi client.
Installation
pnpm i @betswirl/wagmi-providerUsage
import { createConfig } from "@wagmi/core";
import { initWagmiBetSwirlClient} from "@betswirl/wagmi-provider";
/* Init the client */
const wagmiConfig = createConfig(...)
const wagmiBetSwirlClient = initWagmiBetSwirlClient(wagmiConfig, {
chainId: 137,
affiliate: "0x...",
gasPriceType: GAS_PRICE_TYPE.FAST,
...
});
/* Use the client */
const casinoGames = await wagmiBetSwirlClient.getCasinoGames(false, 137);
...
wagmiBetSwirlClient.playDice(77, ...)
...Example
0.1.7
5 months ago
0.1.6
6 months ago
0.1.5
6 months ago
0.1.4
6 months ago
0.1.4-beta.1
6 months ago
0.1.4-beta.0
6 months ago
0.1.3
6 months ago
0.1.3-beta.3
6 months ago
0.1.3-beta.1
6 months ago
0.1.3-beta.0
6 months ago
0.1.2
6 months ago
0.1.2-beta.3
6 months ago
0.1.2-beta.2
6 months ago
0.1.2-beta.1
6 months ago
0.1.2-beta.0
6 months ago
0.1.0
7 months ago
0.0.9
7 months ago
0.0.8
8 months ago
0.0.7
8 months ago
0.0.6
8 months ago
0.0.5
9 months ago
0.0.4
9 months ago
0.0.3
9 months ago
0.0.2
9 months ago
0.0.1
9 months ago
0.0.1-beta-21
9 months ago