0.1.7 • Published 7 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
7 months ago
0.1.6
7 months ago
0.1.5
7 months ago
0.1.4
7 months ago
0.1.4-beta.1
7 months ago
0.1.4-beta.0
7 months ago
0.1.3
7 months ago
0.1.3-beta.3
7 months ago
0.1.3-beta.1
7 months ago
0.1.3-beta.0
7 months ago
0.1.2
7 months ago
0.1.2-beta.3
8 months ago
0.1.2-beta.2
8 months ago
0.1.2-beta.1
8 months ago
0.1.2-beta.0
8 months ago
0.1.0
8 months ago
0.0.9
8 months ago
0.0.8
9 months ago
0.0.7
10 months ago
0.0.6
10 months ago
0.0.5
10 months ago
0.0.4
10 months ago
0.0.3
10 months ago
0.0.2
10 months ago
0.0.1
10 months ago
0.0.1-beta-21
10 months ago