# SDK

Quote the extra RON to send with requestRandomSeed. Production ingress is the chain, not /api/vrf/request.

The SDK is source-only until it is published: there is no `@randoo/sdk` package to install yet. Its source lives in the repo at `sdk/src/ronin.ts`, which exports `roninCoordinatorAbi`, byte-compatible with `IRoninVRFCoordinatorForConsumers`. The same quote is a plain viem `readContract` call against the coordinator, with no Randoo dependency:

```ts quote.ts
import { createPublicClient, http, parseAbi } from "viem";

// Same coordinator address on Ronin mainnet (chain 2020) and Saigon (chain 202601).
const coordinator = "0xC66eB2e7EE91145875000Ad46B55600000000001";
const client = createPublicClient({ transport: http("https://api.roninchain.com/rpc") });

const estimate = await client.readContract({
  address: coordinator,
  abi: parseAbi([
    "function estimateRequestRandomFee(uint256 callbackGasLimit, uint256 gasPrice) view returns (uint256)",
  ]),
  functionName: "estimateRequestRandomFee",
  args: [250_000n, 25n * 10n ** 9n],
});
// Send estimate (or more; leftover is refunded) as msg.value.
```

Package source is in `sdk/`.

_Last verified 2026-08-25._
