MyCrypto/common/libs/nodes/infura/client.ts

9 lines
219 B
TypeScript

import { randomBytes } from 'crypto';
import RPCClient from '../rpc/client';
export default class InfuraClient extends RPCClient {
public id(): number {
return parseInt(randomBytes(5).toString('hex'), 16);
}
}