Chains and addresses
The Launch SDK supports six chains. This page lists each chain's name in the SDK, its quote tokens and the address of every contract.
Chains
| Chain | SDK chain name | Chain id | Quote tokens Bankr lists | Default quote token | Gas token | Registration bond | Holders' share of Bankr's cut is paid in |
|---|---|---|---|---|---|---|---|
| Base | "base" | 8453 | WETH, USDC, AAPLc | WETH | ETH | 0.01 ETH | BNKR |
| Robinhood Chain | "robinhood" | 4663 | WETH, USDG | WETH | ETH | 0.01 ETH | BNKR |
| Arbitrum | "arbitrum" | 42161 | WETH, USDC | WETH | ETH | 0.01 ETH | The quote token |
| Arc | "arc" | 5042 | USDC | USDC | USDC | 25 USDC | The quote token |
| Ethereum | "ethereum" | 1 | WETH, USDC | WETH | ETH | 0.01 ETH | The quote token |
| BNB Chain | "bnb" | 56 | WBNB, USDT, USDC | WBNB | BNB | 0.05 BNB | The quote token |
Pass the name as chain. There is no default chain.
// client.ts
import { createLaunchClient } from "@bankr/launch-sdk";
export const client = createLaunchClient({
chain: "base",
rpcUrl: process.env.BASE_RPC_URL, // your own RPC URL
});
- Pass your own RPC URL. Without one the client uses the chain's public RPC, which is rate-limited. Arc has no public RPC, so
rpcUrlor apublicClientis required there. - A launch can pair with any other ERC-20 too, on a launchpad that accepts it. Quote tokens says what changes on a token Bankr does not list.
- A first buy on WETH is paid in ETH with the launch, and one on WBNB in BNB. On Arc, and on any other quote token, it is paid in the token after one approval.
- USDT and USDC have 18 decimals on BNB Chain, not 6. A 25 USDC first buy there is
25n * 10n ** 18n.client.chain.quotesholds each named quote token's decimals. - A launch must fit in one transaction. A default launch uses about 7.5 million gas, and more with many fee recipients, payees or allocations.
Check a chain before you register
const status = await client.status();
console.log(status.paused, status.gated);
| Field | Meaning |
|---|---|
paused | New launches are paused on the chain. Trading and claims go on. |
gated | The chain takes launches on Bankr's own launchpad only. |
A launchpad you register launches only where both are false. Registration goes through on every chain, and its bond is not refunded.
Contract addresses
Always take addresses from the SDK. client.provider.addresses holds the client's chain:
console.log(client.provider.addresses.factory);
console.log(client.provider.addresses.launchpadRegistry);
The contracts have the same addresses on every chain but Base.
| Contract | Base | Every other chain |
|---|---|---|
| Factory | 0x8cdE4Edb9A51909eef93F102f5Ce1b950769792E | 0x2F2FDedE5b61D9B624462FB9e138913fD2620427 |
| Settings | 0xdaaee43D50D7b081C6b990eD362E2d4cFc56e1aa | 0x7fD2Bd17387e3dA342db0952Ba0b2f250114Fda2 |
| Launchpad registry | 0x893Bfef8dD523e9cf28f91498eE305Cbeb37ac80 | 0x893Bfef8dD523e9cf28f91498eE305Cbeb37ac80 |
| Hook | 0xf8Df392d399aF9c1235B02e5df8c56fEdb7978Cc | 0xf8Df392d399aF9c1235B02e5df8c56fEdb7978Cc |
| Fee ledger | 0x7C836e937831Cd5931A1ACbB9117dF9714D7d1F7 | 0x15e5F60817ee337f58A0B6c34b905C7C2dBC2F64 |
| Holder leg | 0x022624267f01a1F034809943bDB5d92F256d5991 | 0xB25d2E3e72a00bDd97d47cF8e22B3BE6C74A38A8 |
| Locker | 0x9525077330d2f7954CC85820227921acD7BD45ff | 0x6436f3A1755a11553af9E0399dFf3d5c1ddbA5f6 |
| Buyback | 0x54EC7852807D3F002EB64b360fC06C938c8b71f7 | 0xce14daAF9f405BF18382022C3cA335C9Faf92D55 |
| Terms lens | 0x0Ec2F172D558FA1289B695C06B8d265C8795F43F | 0xeDd74F56afDc34d9Bf6a083C580588514dd4aA62 |
| Claims redeemer | 0x5AF6F17dB59f7E7d7279184900446AbCf127B546 | 0x5AF6F17dB59f7E7d7279184900446AbCf127B546 |
| Owner | 0xa73215E8226258e1A367C85A728AD346172d6530 | 0xa73215E8226258e1A367C85A728AD346172d6530 |
What each contract does:
| Contract | What it does |
|---|---|
| Factory | Launches every coin. |
| Settings | Holds every launchpad's ranges, defaults and switches, and the list of quote tokens. Checks every launch. |
| Launchpad registry | Holds who each launchpad is: its operator, signer, address suffix and link. |
| Hook | The Uniswap v4 hook on every pool. Takes each fee and asks a pool's extension. |
| Fee ledger | Splits every fee and holds each party's share until claimed. |
| Holder leg | Converts the holders' share to BNKR where a route exists, and pays each coin's holders. |
| Locker | Holds every pool's liquidity. It has no function to remove it. |
| Buyback | Spends buyback shares and burns what it buys. It has no owner. |
| Terms lens | Reads a coin's stored terms and checks them against its record. |
| Claims redeemer | Turns an extension payee's claim tokens into the quote token. |
The Owner row is not a contract. It is the account that owns the contracts on that chain. What is fixed at launch lists what it can and cannot change.
Each launch also creates its own contracts: the token, its holder-rewards contract and, when something vests, a vesting escrow. client.launch returns their addresses.
On a local fork
To run against a local fork of a chain, point the client at your node and set fork:
// fork-client.ts
import { createLaunchClient } from "@bankr/launch-sdk";
export const forkClient = createLaunchClient({
chain: "base",
rpcUrl: "http://127.0.0.1:8545", // for example, `anvil --fork-url <your Base RPC>`
fork: true,
});
Reads from Bankr's launch index do not see a fork's launches. Never set fork against a live chain.