Skip to content

Create RPC Endpoint

We recommend using the web interface for creating RPC endpoints. However, if you need to create RPC endpoints programmatically, you can use the SDK.

import { ChainId, KriptonioSdk } from '@kriptonio/sdk';
 
const sdk = new KriptonioSdk({
  accessToken: 'your-access-token',
});
 

const rpc = await sdk.rpc.create({
  title: 'My Polygon RPC Node',
  chainId: ChainId.Polygon,
});

 
console.log(rpc.url);