add private key account, fix rpcwithbackup

This commit is contained in:
stjet
2024-07-20 21:06:22 +00:00
parent 9086c544aa
commit 2b0dd01f24
68 changed files with 212 additions and 150 deletions

1
rpc.ts
View File

@@ -193,6 +193,7 @@ export class RPCWithBackup extends RPC {
if (rpc_urls.length < 2) throw Error("Must provide at least two RPC URLs");
super(rpc_urls[0], use_pending);
this.rpc_urls = rpc_urls;
this.timeout = timeout;
}
async call(payload: Record<string, any>): Promise<Record<string, any>> {
let i = 0;