Variable findChainNameConst
findChainName: (
chainId: number,
) =>
| {
blockExplorers: {
default: {
apiUrl: "https://api.etherscan.io/api";
name: "Etherscan";
url: "https://etherscan.io";
};
};
blockTime: 12000;
contracts: {
ensUniversalResolver: {
address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
blockCreated: 23085558;
};
multicall3: {
address: "0xca11bde05977b3631167028862be2a173976ca11";
blockCreated: 14353601;
};
};
custom?: Record<string, unknown>;
ensTlds?: readonly string[];
experimental_preconfirmationTime?: number;
fees?: ChainFees;
formatters?: undefined;
id: 1;
name: "Ethereum";
nativeCurrency: { decimals: 18; name: "Ether"; symbol: "ETH" };
rpcUrls: { default: { http: readonly ["https://eth.merkle.io"] } };
serializers?: ChainSerializers;
sourceId?: number;
testnet?: boolean;
}
| {
blockExplorers: {
default: {
apiUrl: "https://api.polygonscan.com/api";
name: "PolygonScan";
url: "https://polygonscan.com";
};
};
blockTime: 2000;
contracts: {
multicall3: {
address: "0xca11bde05977b3631167028862be2a173976ca11";
blockCreated: 25770160;
};
};
custom?: Record<string, unknown>;
ensTlds?: readonly string[];
experimental_preconfirmationTime?: number;
fees?: ChainFees;
formatters?: undefined;
id: 137;
name: "Polygon";
nativeCurrency: { decimals: 18; name: "POL"; symbol: "POL" };
rpcUrls: { default: { http: readonly ["https://polygon-rpc.com"] } };
serializers?: ChainSerializers;
sourceId?: number;
testnet?: boolean;
}
| {
blockExplorers: {
default: {
apiUrl: "https://api.arbiscan.io/api";
name: "Arbiscan";
url: "https://arbiscan.io";
};
};
blockTime: 250;
contracts: {
multicall3: {
address: "0xca11bde05977b3631167028862be2a173976ca11";
blockCreated: 7654707;
};
};
custom?: Record<string, unknown>;
ensTlds?: readonly string[];
experimental_preconfirmationTime?: number;
fees?: ChainFees;
formatters?: undefined;
id: 42161;
name: "Arbitrum One";
nativeCurrency: { decimals: 18; name: "Ether"; symbol: "ETH" };
rpcUrls: { default: { http: readonly ["https://arb1.arbitrum.io/rpc"] } };
serializers?: ChainSerializers;
sourceId?: number;
testnet?: boolean;
}
| {
blockExplorers: {
default: {
apiUrl: "https://api-optimistic.etherscan.io/api";
name: "Optimism Explorer";
url: "https://optimistic.etherscan.io";
};
};
blockTime: 2000;
contracts: {
disputeGameFactory: {
"1": { address: "0xe5965Ab5962eDc7477C8520243A95517CD252fA9" };
};
gasPriceOracle: { address: "0x420000000000000000000000000000000000000F" };
l1Block: { address: "0x4200000000000000000000000000000000000015" };
l1StandardBridge: {
"1": { address: "0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1" };
};
l2CrossDomainMessenger: {
address: "0x4200000000000000000000000000000000000007";
};
l2Erc721Bridge: { address: "0x4200000000000000000000000000000000000014" };
l2OutputOracle: {
"1": { address: "0xdfe97868233d1aa22e815a266982f2cf17685a27" };
};
l2StandardBridge: {
address: "0x4200000000000000000000000000000000000010";
};
l2ToL1MessagePasser: {
address: "0x4200000000000000000000000000000000000016";
};
multicall3: {
address: "0xca11bde05977b3631167028862be2a173976ca11";
blockCreated: 4286263;
};
portal: {
"1": { address: "0xbEb5Fc579115071764c7423A4f12eDde41f106Ed" };
};
};
custom?: Record<string, unknown>;
ensTlds?: readonly string[];
experimental_preconfirmationTime?: number;
fees?: ChainFees;
formatters: {
block: {
exclude: [] | undefined;
format: (
args: OpStackRpcBlock,
action?: string,
) => {
baseFeePerGas: bigint | null;
blobGasUsed: bigint;
difficulty: bigint;
excessBlobGas: bigint;
extraData: Hex;
gasLimit: bigint;
gasUsed: bigint;
hash: `0x${string}` | null;
logsBloom: `0x${string}` | null;
miner: Address;
mixHash: Hash;
nonce: `0x${string}` | null;
number: bigint | null;
parentBeaconBlockRoot?: `0x${string}`;
parentHash: Hash;
receiptsRoot: Hex;
sealFields: Hex[];
sha3Uncles: Hash;
size: bigint;
stateRoot: Hash;
timestamp: bigint;
totalDifficulty: bigint | null;
transactions: `0x${(...)}`[] | OpStackTransaction[];
transactionsRoot: Hash;
uncles: Hash[];
withdrawals?: Withdrawal[];
withdrawalsRoot?: `0x${string}`;
} & {};
type: "block";
};
transaction: {
exclude: []
| undefined;
format: (
args: OpStackRpcTransaction,
action?: string,
) => (
| {
blockHash: (...)
| (...);
blockNumber: (...) | (...);
from: Address;
gas: bigint;
gasPrice?: (...) | (...);
hash: Hash;
input: Hex;
isSystemTx?: boolean;
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
mint?: (...) | (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash: Hex;
to: (...) | (...);
transactionIndex: (...) | (...);
type: "deposit";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList?: (...)
| (...);
authorizationList?: (...) | (...);
blobVersionedHashes?: (...) | (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId?: (...) | (...);
from: Address;
gas: bigint;
gasPrice: bigint;
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas?: (...) | (...);
maxPriorityFeePerGas?: (...) | (...);
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "legacy";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity?: (...) | (...);
}
| {
accessList: AccessList;
authorizationList?: (...)
| (...);
blobVersionedHashes?: (...) | (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId: number;
from: Address;
gas: bigint;
gasPrice: bigint;
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas?: (...) | (...);
maxPriorityFeePerGas?: (...) | (...);
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "eip2930";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList: AccessList;
authorizationList?: (...)
| (...);
blobVersionedHashes?: (...) | (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId: number;
from: Address;
gas: bigint;
gasPrice?: (...) | (...);
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "eip1559";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList: AccessList;
authorizationList?: (...)
| (...);
blobVersionedHashes: readonly (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId: number;
from: Address;
gas: bigint;
gasPrice?: (...) | (...);
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas: bigint;
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "eip4844";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList: AccessList;
authorizationList: SignedAuthorizationList;
blobVersionedHashes?: (...)
| (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId: number;
from: Address;
gas: bigint;
gasPrice?: (...) | (...);
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "eip7702";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
) & {};
type: "transaction";
};
transactionReceipt: {
exclude: []
| undefined;
format: (
args: OpStackRpcTransactionReceipt,
action?: string,
) => {
blobGasPrice?: bigint;
blobGasUsed?: bigint;
blockHash: Hash;
blockNumber: bigint;
contractAddress: Address | null | undefined;
cumulativeGasUsed: bigint;
effectiveGasPrice: bigint;
from: Address;
gasUsed: bigint;
l1Fee: bigint | null;
l1FeeScalar: number | null;
l1GasPrice: bigint | null;
l1GasUsed: bigint | null;
logs: Log[];
logsBloom: Hex;
root?: `0x${string}`;
status: "success" | "reverted";
to: Address | null;
transactionHash: Hash;
transactionIndex: number;
type: TransactionType;
} & {};
type: "transactionReceipt";
};
};
id: 10;
name: "OP Mainnet";
nativeCurrency: { decimals: 18; name: "Ether"; symbol: "ETH" };
rpcUrls: { default: { http: readonly ["https://mainnet.optimism.io"] } };
serializers: { transaction: serializeTransactionOpStack };
sourceId: 1;
testnet?: boolean;
}
| {
blockExplorers: {
default: {
apiUrl: "https://api.basescan.org/api";
name: "Basescan";
url: "https://basescan.org";
};
};
blockTime: 2000;
contracts: {
disputeGameFactory: {
"1": { address: "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e" };
};
gasPriceOracle: { address: "0x420000000000000000000000000000000000000F" };
l1Block: { address: "0x4200000000000000000000000000000000000015" };
l1StandardBridge: {
"1": {
address: "0x3154Cf16ccdb4C6d922629664174b904d80F2C35";
blockCreated: 17482143;
};
};
l2CrossDomainMessenger: {
address: "0x4200000000000000000000000000000000000007";
};
l2Erc721Bridge: { address: "0x4200000000000000000000000000000000000014" };
l2OutputOracle: {
"1": { address: "0x56315b90c40730925ec5485cf004d835058518A0" };
};
l2StandardBridge: {
address: "0x4200000000000000000000000000000000000010";
};
l2ToL1MessagePasser: {
address: "0x4200000000000000000000000000000000000016";
};
multicall3: {
address: "0xca11bde05977b3631167028862be2a173976ca11";
blockCreated: 5022;
};
portal: {
"1": {
address: "0x49048044D57e1C92A77f79988d21Fa8fAF74E97e";
blockCreated: 17482143;
};
};
};
custom?: Record<string, unknown>;
ensTlds?: readonly string[];
experimental_preconfirmationTime?: number;
fees?: ChainFees;
formatters: {
block: {
exclude: [] | undefined;
format: (
args: OpStackRpcBlock,
action?: string,
) => {
baseFeePerGas: bigint | null;
blobGasUsed: bigint;
difficulty: bigint;
excessBlobGas: bigint;
extraData: Hex;
gasLimit: bigint;
gasUsed: bigint;
hash: `0x${string}` | null;
logsBloom: `0x${string}` | null;
miner: Address;
mixHash: Hash;
nonce: `0x${string}` | null;
number: bigint | null;
parentBeaconBlockRoot?: `0x${string}`;
parentHash: Hash;
receiptsRoot: Hex;
sealFields: Hex[];
sha3Uncles: Hash;
size: bigint;
stateRoot: Hash;
timestamp: bigint;
totalDifficulty: bigint | null;
transactions: `0x${(...)}`[] | OpStackTransaction[];
transactionsRoot: Hash;
uncles: Hash[];
withdrawals?: Withdrawal[];
withdrawalsRoot?: `0x${string}`;
} & {};
type: "block";
};
transaction: {
exclude: []
| undefined;
format: (
args: OpStackRpcTransaction,
action?: string,
) => (
| {
blockHash: (...)
| (...);
blockNumber: (...) | (...);
from: Address;
gas: bigint;
gasPrice?: (...) | (...);
hash: Hash;
input: Hex;
isSystemTx?: boolean;
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
mint?: (...) | (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash: Hex;
to: (...) | (...);
transactionIndex: (...) | (...);
type: "deposit";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList?: (...)
| (...);
authorizationList?: (...) | (...);
blobVersionedHashes?: (...) | (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId?: (...) | (...);
from: Address;
gas: bigint;
gasPrice: bigint;
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas?: (...) | (...);
maxPriorityFeePerGas?: (...) | (...);
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "legacy";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity?: (...) | (...);
}
| {
accessList: AccessList;
authorizationList?: (...)
| (...);
blobVersionedHashes?: (...) | (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId: number;
from: Address;
gas: bigint;
gasPrice: bigint;
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas?: (...) | (...);
maxPriorityFeePerGas?: (...) | (...);
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "eip2930";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList: AccessList;
authorizationList?: (...)
| (...);
blobVersionedHashes?: (...) | (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId: number;
from: Address;
gas: bigint;
gasPrice?: (...) | (...);
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "eip1559";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList: AccessList;
authorizationList?: (...)
| (...);
blobVersionedHashes: readonly (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId: number;
from: Address;
gas: bigint;
gasPrice?: (...) | (...);
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas: bigint;
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "eip4844";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList: AccessList;
authorizationList: SignedAuthorizationList;
blobVersionedHashes?: (...)
| (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId: number;
from: Address;
gas: bigint;
gasPrice?: (...) | (...);
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "eip7702";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
) & {};
type: "transaction";
};
transactionReceipt: {
exclude: []
| undefined;
format: (
args: OpStackRpcTransactionReceipt,
action?: string,
) => {
blobGasPrice?: bigint;
blobGasUsed?: bigint;
blockHash: Hash;
blockNumber: bigint;
contractAddress: Address | null | undefined;
cumulativeGasUsed: bigint;
effectiveGasPrice: bigint;
from: Address;
gasUsed: bigint;
l1Fee: bigint | null;
l1FeeScalar: number | null;
l1GasPrice: bigint | null;
l1GasUsed: bigint | null;
logs: Log[];
logsBloom: Hex;
root?: `0x${string}`;
status: "success" | "reverted";
to: Address | null;
transactionHash: Hash;
transactionIndex: number;
type: TransactionType;
} & {};
type: "transactionReceipt";
};
};
id: 8453;
name: "Base";
nativeCurrency: { decimals: 18; name: "Ether"; symbol: "ETH" };
rpcUrls: { default: { http: readonly ["https://mainnet.base.org"] } };
serializers: { transaction: serializeTransactionOpStack };
sourceId: 1;
testnet?: boolean;
}
| {
blockExplorers: {
default: {
apiUrl: "https://api-sepolia.etherscan.io/api";
name: "Etherscan";
url: "https://sepolia.etherscan.io";
};
};
blockTime?: number;
contracts: {
ensUniversalResolver: {
address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
blockCreated: 8928790;
};
multicall3: {
address: "0xca11bde05977b3631167028862be2a173976ca11";
blockCreated: 751532;
};
};
custom?: Record<string, unknown>;
ensTlds?: readonly string[];
experimental_preconfirmationTime?: number;
fees?: ChainFees;
formatters?: undefined;
id: 11155111;
name: "Sepolia";
nativeCurrency: { decimals: 18; name: "Sepolia Ether"; symbol: "ETH" };
rpcUrls: {
default: { http: readonly ["https://11155111.rpc.thirdweb.com"] };
};
serializers?: ChainSerializers;
sourceId?: number;
testnet: true;
}
| undefined
Type Declaration
- (
chainId: number,
):
| {
blockExplorers: {
default: {
apiUrl: "https://api.etherscan.io/api";
name: "Etherscan";
url: "https://etherscan.io";
};
};
blockTime: 12000;
contracts: {
ensUniversalResolver: {
address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
blockCreated: 23085558;
};
multicall3: {
address: "0xca11bde05977b3631167028862be2a173976ca11";
blockCreated: 14353601;
};
};
custom?: Record<string, unknown>;
ensTlds?: readonly string[];
experimental_preconfirmationTime?: number;
fees?: ChainFees;
formatters?: undefined;
id: 1;
name: "Ethereum";
nativeCurrency: { decimals: 18; name: "Ether"; symbol: "ETH" };
rpcUrls: { default: { http: readonly ["https://eth.merkle.io"] } };
serializers?: ChainSerializers;
sourceId?: number;
testnet?: boolean;
}
| {
blockExplorers: {
default: {
apiUrl: "https://api.polygonscan.com/api";
name: "PolygonScan";
url: "https://polygonscan.com";
};
};
blockTime: 2000;
contracts: {
multicall3: {
address: "0xca11bde05977b3631167028862be2a173976ca11";
blockCreated: 25770160;
};
};
custom?: Record<string, unknown>;
ensTlds?: readonly string[];
experimental_preconfirmationTime?: number;
fees?: ChainFees;
formatters?: undefined;
id: 137;
name: "Polygon";
nativeCurrency: { decimals: 18; name: "POL"; symbol: "POL" };
rpcUrls: { default: { http: readonly ["https://polygon-rpc.com"] } };
serializers?: ChainSerializers;
sourceId?: number;
testnet?: boolean;
}
| {
blockExplorers: {
default: {
apiUrl: "https://api.arbiscan.io/api";
name: "Arbiscan";
url: "https://arbiscan.io";
};
};
blockTime: 250;
contracts: {
multicall3: {
address: "0xca11bde05977b3631167028862be2a173976ca11";
blockCreated: 7654707;
};
};
custom?: Record<string, unknown>;
ensTlds?: readonly string[];
experimental_preconfirmationTime?: number;
fees?: ChainFees;
formatters?: undefined;
id: 42161;
name: "Arbitrum One";
nativeCurrency: { decimals: 18; name: "Ether"; symbol: "ETH" };
rpcUrls: { default: { http: readonly ["https://arb1.arbitrum.io/rpc"] } };
serializers?: ChainSerializers;
sourceId?: number;
testnet?: boolean;
}
| {
blockExplorers: {
default: {
apiUrl: "https://api-optimistic.etherscan.io/api";
name: "Optimism Explorer";
url: "https://optimistic.etherscan.io";
};
};
blockTime: 2000;
contracts: {
disputeGameFactory: {
"1": { address: "0xe5965Ab5962eDc7477C8520243A95517CD252fA9" };
};
gasPriceOracle: { address: "0x420000000000000000000000000000000000000F" };
l1Block: { address: "0x4200000000000000000000000000000000000015" };
l1StandardBridge: {
"1": { address: "0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1" };
};
l2CrossDomainMessenger: {
address: "0x4200000000000000000000000000000000000007";
};
l2Erc721Bridge: { address: "0x4200000000000000000000000000000000000014" };
l2OutputOracle: {
"1": { address: "0xdfe97868233d1aa22e815a266982f2cf17685a27" };
};
l2StandardBridge: {
address: "0x4200000000000000000000000000000000000010";
};
l2ToL1MessagePasser: {
address: "0x4200000000000000000000000000000000000016";
};
multicall3: {
address: "0xca11bde05977b3631167028862be2a173976ca11";
blockCreated: 4286263;
};
portal: {
"1": { address: "0xbEb5Fc579115071764c7423A4f12eDde41f106Ed" };
};
};
custom?: Record<string, unknown>;
ensTlds?: readonly string[];
experimental_preconfirmationTime?: number;
fees?: ChainFees;
formatters: {
block: {
exclude: [] | undefined;
format: (
args: OpStackRpcBlock,
action?: string,
) => {
baseFeePerGas: bigint | null;
blobGasUsed: bigint;
difficulty: bigint;
excessBlobGas: bigint;
extraData: Hex;
gasLimit: bigint;
gasUsed: bigint;
hash: `0x${string}` | null;
logsBloom: `0x${string}` | null;
miner: Address;
mixHash: Hash;
nonce: `0x${string}` | null;
number: bigint | null;
parentBeaconBlockRoot?: `0x${string}`;
parentHash: Hash;
receiptsRoot: Hex;
sealFields: Hex[];
sha3Uncles: Hash;
size: bigint;
stateRoot: Hash;
timestamp: bigint;
totalDifficulty: bigint | null;
transactions: `0x${(...)}`[] | OpStackTransaction[];
transactionsRoot: Hash;
uncles: Hash[];
withdrawals?: Withdrawal[];
withdrawalsRoot?: `0x${string}`;
} & {};
type: "block";
};
transaction: {
exclude: []
| undefined;
format: (
args: OpStackRpcTransaction,
action?: string,
) => (
| {
blockHash: (...)
| (...);
blockNumber: (...) | (...);
from: Address;
gas: bigint;
gasPrice?: (...) | (...);
hash: Hash;
input: Hex;
isSystemTx?: boolean;
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
mint?: (...) | (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash: Hex;
to: (...) | (...);
transactionIndex: (...) | (...);
type: "deposit";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList?: (...)
| (...);
authorizationList?: (...) | (...);
blobVersionedHashes?: (...) | (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId?: (...) | (...);
from: Address;
gas: bigint;
gasPrice: bigint;
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas?: (...) | (...);
maxPriorityFeePerGas?: (...) | (...);
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "legacy";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity?: (...) | (...);
}
| {
accessList: AccessList;
authorizationList?: (...)
| (...);
blobVersionedHashes?: (...) | (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId: number;
from: Address;
gas: bigint;
gasPrice: bigint;
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas?: (...) | (...);
maxPriorityFeePerGas?: (...) | (...);
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "eip2930";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList: AccessList;
authorizationList?: (...)
| (...);
blobVersionedHashes?: (...) | (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId: number;
from: Address;
gas: bigint;
gasPrice?: (...) | (...);
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "eip1559";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList: AccessList;
authorizationList?: (...)
| (...);
blobVersionedHashes: readonly (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId: number;
from: Address;
gas: bigint;
gasPrice?: (...) | (...);
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas: bigint;
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "eip4844";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList: AccessList;
authorizationList: SignedAuthorizationList;
blobVersionedHashes?: (...)
| (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId: number;
from: Address;
gas: bigint;
gasPrice?: (...) | (...);
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "eip7702";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
) & {};
type: "transaction";
};
transactionReceipt: {
exclude: []
| undefined;
format: (
args: OpStackRpcTransactionReceipt,
action?: string,
) => {
blobGasPrice?: bigint;
blobGasUsed?: bigint;
blockHash: Hash;
blockNumber: bigint;
contractAddress: Address | null | undefined;
cumulativeGasUsed: bigint;
effectiveGasPrice: bigint;
from: Address;
gasUsed: bigint;
l1Fee: bigint | null;
l1FeeScalar: number | null;
l1GasPrice: bigint | null;
l1GasUsed: bigint | null;
logs: Log[];
logsBloom: Hex;
root?: `0x${string}`;
status: "success" | "reverted";
to: Address | null;
transactionHash: Hash;
transactionIndex: number;
type: TransactionType;
} & {};
type: "transactionReceipt";
};
};
id: 10;
name: "OP Mainnet";
nativeCurrency: { decimals: 18; name: "Ether"; symbol: "ETH" };
rpcUrls: { default: { http: readonly ["https://mainnet.optimism.io"] } };
serializers: { transaction: serializeTransactionOpStack };
sourceId: 1;
testnet?: boolean;
}
| {
blockExplorers: {
default: {
apiUrl: "https://api.basescan.org/api";
name: "Basescan";
url: "https://basescan.org";
};
};
blockTime: 2000;
contracts: {
disputeGameFactory: {
"1": { address: "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e" };
};
gasPriceOracle: { address: "0x420000000000000000000000000000000000000F" };
l1Block: { address: "0x4200000000000000000000000000000000000015" };
l1StandardBridge: {
"1": {
address: "0x3154Cf16ccdb4C6d922629664174b904d80F2C35";
blockCreated: 17482143;
};
};
l2CrossDomainMessenger: {
address: "0x4200000000000000000000000000000000000007";
};
l2Erc721Bridge: { address: "0x4200000000000000000000000000000000000014" };
l2OutputOracle: {
"1": { address: "0x56315b90c40730925ec5485cf004d835058518A0" };
};
l2StandardBridge: {
address: "0x4200000000000000000000000000000000000010";
};
l2ToL1MessagePasser: {
address: "0x4200000000000000000000000000000000000016";
};
multicall3: {
address: "0xca11bde05977b3631167028862be2a173976ca11";
blockCreated: 5022;
};
portal: {
"1": {
address: "0x49048044D57e1C92A77f79988d21Fa8fAF74E97e";
blockCreated: 17482143;
};
};
};
custom?: Record<string, unknown>;
ensTlds?: readonly string[];
experimental_preconfirmationTime?: number;
fees?: ChainFees;
formatters: {
block: {
exclude: [] | undefined;
format: (
args: OpStackRpcBlock,
action?: string,
) => {
baseFeePerGas: bigint | null;
blobGasUsed: bigint;
difficulty: bigint;
excessBlobGas: bigint;
extraData: Hex;
gasLimit: bigint;
gasUsed: bigint;
hash: `0x${string}` | null;
logsBloom: `0x${string}` | null;
miner: Address;
mixHash: Hash;
nonce: `0x${string}` | null;
number: bigint | null;
parentBeaconBlockRoot?: `0x${string}`;
parentHash: Hash;
receiptsRoot: Hex;
sealFields: Hex[];
sha3Uncles: Hash;
size: bigint;
stateRoot: Hash;
timestamp: bigint;
totalDifficulty: bigint | null;
transactions: `0x${(...)}`[] | OpStackTransaction[];
transactionsRoot: Hash;
uncles: Hash[];
withdrawals?: Withdrawal[];
withdrawalsRoot?: `0x${string}`;
} & {};
type: "block";
};
transaction: {
exclude: []
| undefined;
format: (
args: OpStackRpcTransaction,
action?: string,
) => (
| {
blockHash: (...)
| (...);
blockNumber: (...) | (...);
from: Address;
gas: bigint;
gasPrice?: (...) | (...);
hash: Hash;
input: Hex;
isSystemTx?: boolean;
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
mint?: (...) | (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash: Hex;
to: (...) | (...);
transactionIndex: (...) | (...);
type: "deposit";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList?: (...)
| (...);
authorizationList?: (...) | (...);
blobVersionedHashes?: (...) | (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId?: (...) | (...);
from: Address;
gas: bigint;
gasPrice: bigint;
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas?: (...) | (...);
maxPriorityFeePerGas?: (...) | (...);
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "legacy";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity?: (...) | (...);
}
| {
accessList: AccessList;
authorizationList?: (...)
| (...);
blobVersionedHashes?: (...) | (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId: number;
from: Address;
gas: bigint;
gasPrice: bigint;
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas?: (...) | (...);
maxPriorityFeePerGas?: (...) | (...);
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "eip2930";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList: AccessList;
authorizationList?: (...)
| (...);
blobVersionedHashes?: (...) | (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId: number;
from: Address;
gas: bigint;
gasPrice?: (...) | (...);
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "eip1559";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList: AccessList;
authorizationList?: (...)
| (...);
blobVersionedHashes: readonly (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId: number;
from: Address;
gas: bigint;
gasPrice?: (...) | (...);
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas: bigint;
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "eip4844";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList: AccessList;
authorizationList: SignedAuthorizationList;
blobVersionedHashes?: (...)
| (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId: number;
from: Address;
gas: bigint;
gasPrice?: (...) | (...);
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "eip7702";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
) & {};
type: "transaction";
};
transactionReceipt: {
exclude: []
| undefined;
format: (
args: OpStackRpcTransactionReceipt,
action?: string,
) => {
blobGasPrice?: bigint;
blobGasUsed?: bigint;
blockHash: Hash;
blockNumber: bigint;
contractAddress: Address | null | undefined;
cumulativeGasUsed: bigint;
effectiveGasPrice: bigint;
from: Address;
gasUsed: bigint;
l1Fee: bigint | null;
l1FeeScalar: number | null;
l1GasPrice: bigint | null;
l1GasUsed: bigint | null;
logs: Log[];
logsBloom: Hex;
root?: `0x${string}`;
status: "success" | "reverted";
to: Address | null;
transactionHash: Hash;
transactionIndex: number;
type: TransactionType;
} & {};
type: "transactionReceipt";
};
};
id: 8453;
name: "Base";
nativeCurrency: { decimals: 18; name: "Ether"; symbol: "ETH" };
rpcUrls: { default: { http: readonly ["https://mainnet.base.org"] } };
serializers: { transaction: serializeTransactionOpStack };
sourceId: 1;
testnet?: boolean;
}
| {
blockExplorers: {
default: {
apiUrl: "https://api-sepolia.etherscan.io/api";
name: "Etherscan";
url: "https://sepolia.etherscan.io";
};
};
blockTime?: number;
contracts: {
ensUniversalResolver: {
address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
blockCreated: 8928790;
};
multicall3: {
address: "0xca11bde05977b3631167028862be2a173976ca11";
blockCreated: 751532;
};
};
custom?: Record<string, unknown>;
ensTlds?: readonly string[];
experimental_preconfirmationTime?: number;
fees?: ChainFees;
formatters?: undefined;
id: 11155111;
name: "Sepolia";
nativeCurrency: { decimals: 18; name: "Sepolia Ether"; symbol: "ETH" };
rpcUrls: {
default: { http: readonly ["https://11155111.rpc.thirdweb.com"] };
};
serializers?: ChainSerializers;
sourceId?: number;
testnet: true;
}
| undefined Returns
| {
blockExplorers: {
default: {
apiUrl: "https://api.etherscan.io/api";
name: "Etherscan";
url: "https://etherscan.io";
};
};
blockTime: 12000;
contracts: {
ensUniversalResolver: {
address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
blockCreated: 23085558;
};
multicall3: {
address: "0xca11bde05977b3631167028862be2a173976ca11";
blockCreated: 14353601;
};
};
custom?: Record<string, unknown>;
ensTlds?: readonly string[];
experimental_preconfirmationTime?: number;
fees?: ChainFees;
formatters?: undefined;
id: 1;
name: "Ethereum";
nativeCurrency: { decimals: 18; name: "Ether"; symbol: "ETH" };
rpcUrls: { default: { http: readonly ["https://eth.merkle.io"] } };
serializers?: ChainSerializers;
sourceId?: number;
testnet?: boolean;
}
| {
blockExplorers: {
default: {
apiUrl: "https://api.polygonscan.com/api";
name: "PolygonScan";
url: "https://polygonscan.com";
};
};
blockTime: 2000;
contracts: {
multicall3: {
address: "0xca11bde05977b3631167028862be2a173976ca11";
blockCreated: 25770160;
};
};
custom?: Record<string, unknown>;
ensTlds?: readonly string[];
experimental_preconfirmationTime?: number;
fees?: ChainFees;
formatters?: undefined;
id: 137;
name: "Polygon";
nativeCurrency: { decimals: 18; name: "POL"; symbol: "POL" };
rpcUrls: { default: { http: readonly ["https://polygon-rpc.com"] } };
serializers?: ChainSerializers;
sourceId?: number;
testnet?: boolean;
}
| {
blockExplorers: {
default: {
apiUrl: "https://api.arbiscan.io/api";
name: "Arbiscan";
url: "https://arbiscan.io";
};
};
blockTime: 250;
contracts: {
multicall3: {
address: "0xca11bde05977b3631167028862be2a173976ca11";
blockCreated: 7654707;
};
};
custom?: Record<string, unknown>;
ensTlds?: readonly string[];
experimental_preconfirmationTime?: number;
fees?: ChainFees;
formatters?: undefined;
id: 42161;
name: "Arbitrum One";
nativeCurrency: { decimals: 18; name: "Ether"; symbol: "ETH" };
rpcUrls: { default: { http: readonly ["https://arb1.arbitrum.io/rpc"] } };
serializers?: ChainSerializers;
sourceId?: number;
testnet?: boolean;
}
| {
blockExplorers: {
default: {
apiUrl: "https://api-optimistic.etherscan.io/api";
name: "Optimism Explorer";
url: "https://optimistic.etherscan.io";
};
};
blockTime: 2000;
contracts: {
disputeGameFactory: {
"1": { address: "0xe5965Ab5962eDc7477C8520243A95517CD252fA9" };
};
gasPriceOracle: { address: "0x420000000000000000000000000000000000000F" };
l1Block: { address: "0x4200000000000000000000000000000000000015" };
l1StandardBridge: {
"1": { address: "0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1" };
};
l2CrossDomainMessenger: {
address: "0x4200000000000000000000000000000000000007";
};
l2Erc721Bridge: { address: "0x4200000000000000000000000000000000000014" };
l2OutputOracle: {
"1": { address: "0xdfe97868233d1aa22e815a266982f2cf17685a27" };
};
l2StandardBridge: {
address: "0x4200000000000000000000000000000000000010";
};
l2ToL1MessagePasser: {
address: "0x4200000000000000000000000000000000000016";
};
multicall3: {
address: "0xca11bde05977b3631167028862be2a173976ca11";
blockCreated: 4286263;
};
portal: {
"1": { address: "0xbEb5Fc579115071764c7423A4f12eDde41f106Ed" };
};
};
custom?: Record<string, unknown>;
ensTlds?: readonly string[];
experimental_preconfirmationTime?: number;
fees?: ChainFees;
formatters: {
block: {
exclude: [] | undefined;
format: (
args: OpStackRpcBlock,
action?: string,
) => {
baseFeePerGas: bigint | null;
blobGasUsed: bigint;
difficulty: bigint;
excessBlobGas: bigint;
extraData: Hex;
gasLimit: bigint;
gasUsed: bigint;
hash: `0x${string}` | null;
logsBloom: `0x${string}` | null;
miner: Address;
mixHash: Hash;
nonce: `0x${string}` | null;
number: bigint | null;
parentBeaconBlockRoot?: `0x${string}`;
parentHash: Hash;
receiptsRoot: Hex;
sealFields: Hex[];
sha3Uncles: Hash;
size: bigint;
stateRoot: Hash;
timestamp: bigint;
totalDifficulty: bigint | null;
transactions: `0x${(...)}`[] | OpStackTransaction[];
transactionsRoot: Hash;
uncles: Hash[];
withdrawals?: Withdrawal[];
withdrawalsRoot?: `0x${string}`;
} & {};
type: "block";
};
transaction: {
exclude: []
| undefined;
format: (
args: OpStackRpcTransaction,
action?: string,
) => (
| {
blockHash: (...)
| (...);
blockNumber: (...) | (...);
from: Address;
gas: bigint;
gasPrice?: (...) | (...);
hash: Hash;
input: Hex;
isSystemTx?: boolean;
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
mint?: (...) | (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash: Hex;
to: (...) | (...);
transactionIndex: (...) | (...);
type: "deposit";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList?: (...)
| (...);
authorizationList?: (...) | (...);
blobVersionedHashes?: (...) | (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId?: (...) | (...);
from: Address;
gas: bigint;
gasPrice: bigint;
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas?: (...) | (...);
maxPriorityFeePerGas?: (...) | (...);
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "legacy";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity?: (...) | (...);
}
| {
accessList: AccessList;
authorizationList?: (...)
| (...);
blobVersionedHashes?: (...) | (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId: number;
from: Address;
gas: bigint;
gasPrice: bigint;
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas?: (...) | (...);
maxPriorityFeePerGas?: (...) | (...);
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "eip2930";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList: AccessList;
authorizationList?: (...)
| (...);
blobVersionedHashes?: (...) | (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId: number;
from: Address;
gas: bigint;
gasPrice?: (...) | (...);
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "eip1559";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList: AccessList;
authorizationList?: (...)
| (...);
blobVersionedHashes: readonly (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId: number;
from: Address;
gas: bigint;
gasPrice?: (...) | (...);
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas: bigint;
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "eip4844";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList: AccessList;
authorizationList: SignedAuthorizationList;
blobVersionedHashes?: (...)
| (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId: number;
from: Address;
gas: bigint;
gasPrice?: (...) | (...);
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "eip7702";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
) & {};
type: "transaction";
};
transactionReceipt: {
exclude: []
| undefined;
format: (
args: OpStackRpcTransactionReceipt,
action?: string,
) => {
blobGasPrice?: bigint;
blobGasUsed?: bigint;
blockHash: Hash;
blockNumber: bigint;
contractAddress: Address | null | undefined;
cumulativeGasUsed: bigint;
effectiveGasPrice: bigint;
from: Address;
gasUsed: bigint;
l1Fee: bigint | null;
l1FeeScalar: number | null;
l1GasPrice: bigint | null;
l1GasUsed: bigint | null;
logs: Log[];
logsBloom: Hex;
root?: `0x${string}`;
status: "success" | "reverted";
to: Address | null;
transactionHash: Hash;
transactionIndex: number;
type: TransactionType;
} & {};
type: "transactionReceipt";
};
};
id: 10;
name: "OP Mainnet";
nativeCurrency: { decimals: 18; name: "Ether"; symbol: "ETH" };
rpcUrls: { default: { http: readonly ["https://mainnet.optimism.io"] } };
serializers: { transaction: serializeTransactionOpStack };
sourceId: 1;
testnet?: boolean;
}
| {
blockExplorers: {
default: {
apiUrl: "https://api.basescan.org/api";
name: "Basescan";
url: "https://basescan.org";
};
};
blockTime: 2000;
contracts: {
disputeGameFactory: {
"1": { address: "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e" };
};
gasPriceOracle: { address: "0x420000000000000000000000000000000000000F" };
l1Block: { address: "0x4200000000000000000000000000000000000015" };
l1StandardBridge: {
"1": {
address: "0x3154Cf16ccdb4C6d922629664174b904d80F2C35";
blockCreated: 17482143;
};
};
l2CrossDomainMessenger: {
address: "0x4200000000000000000000000000000000000007";
};
l2Erc721Bridge: { address: "0x4200000000000000000000000000000000000014" };
l2OutputOracle: {
"1": { address: "0x56315b90c40730925ec5485cf004d835058518A0" };
};
l2StandardBridge: {
address: "0x4200000000000000000000000000000000000010";
};
l2ToL1MessagePasser: {
address: "0x4200000000000000000000000000000000000016";
};
multicall3: {
address: "0xca11bde05977b3631167028862be2a173976ca11";
blockCreated: 5022;
};
portal: {
"1": {
address: "0x49048044D57e1C92A77f79988d21Fa8fAF74E97e";
blockCreated: 17482143;
};
};
};
custom?: Record<string, unknown>;
ensTlds?: readonly string[];
experimental_preconfirmationTime?: number;
fees?: ChainFees;
formatters: {
block: {
exclude: [] | undefined;
format: (
args: OpStackRpcBlock,
action?: string,
) => {
baseFeePerGas: bigint | null;
blobGasUsed: bigint;
difficulty: bigint;
excessBlobGas: bigint;
extraData: Hex;
gasLimit: bigint;
gasUsed: bigint;
hash: `0x${string}` | null;
logsBloom: `0x${string}` | null;
miner: Address;
mixHash: Hash;
nonce: `0x${string}` | null;
number: bigint | null;
parentBeaconBlockRoot?: `0x${string}`;
parentHash: Hash;
receiptsRoot: Hex;
sealFields: Hex[];
sha3Uncles: Hash;
size: bigint;
stateRoot: Hash;
timestamp: bigint;
totalDifficulty: bigint | null;
transactions: `0x${(...)}`[] | OpStackTransaction[];
transactionsRoot: Hash;
uncles: Hash[];
withdrawals?: Withdrawal[];
withdrawalsRoot?: `0x${string}`;
} & {};
type: "block";
};
transaction: {
exclude: []
| undefined;
format: (
args: OpStackRpcTransaction,
action?: string,
) => (
| {
blockHash: (...)
| (...);
blockNumber: (...) | (...);
from: Address;
gas: bigint;
gasPrice?: (...) | (...);
hash: Hash;
input: Hex;
isSystemTx?: boolean;
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
mint?: (...) | (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash: Hex;
to: (...) | (...);
transactionIndex: (...) | (...);
type: "deposit";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList?: (...)
| (...);
authorizationList?: (...) | (...);
blobVersionedHashes?: (...) | (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId?: (...) | (...);
from: Address;
gas: bigint;
gasPrice: bigint;
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas?: (...) | (...);
maxPriorityFeePerGas?: (...) | (...);
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "legacy";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity?: (...) | (...);
}
| {
accessList: AccessList;
authorizationList?: (...)
| (...);
blobVersionedHashes?: (...) | (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId: number;
from: Address;
gas: bigint;
gasPrice: bigint;
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas?: (...) | (...);
maxPriorityFeePerGas?: (...) | (...);
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "eip2930";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList: AccessList;
authorizationList?: (...)
| (...);
blobVersionedHashes?: (...) | (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId: number;
from: Address;
gas: bigint;
gasPrice?: (...) | (...);
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "eip1559";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList: AccessList;
authorizationList?: (...)
| (...);
blobVersionedHashes: readonly (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId: number;
from: Address;
gas: bigint;
gasPrice?: (...) | (...);
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas: bigint;
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "eip4844";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList: AccessList;
authorizationList: SignedAuthorizationList;
blobVersionedHashes?: (...)
| (...);
blockHash: (...) | (...);
blockNumber: (...) | (...);
chainId: number;
from: Address;
gas: bigint;
gasPrice?: (...) | (...);
hash: Hash;
input: Hex;
isSystemTx?: (...) | (...);
maxFeePerBlobGas?: (...) | (...);
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
mint?: (...) | (...);
nonce: number;
r: Hex;
s: Hex;
sourceHash?: (...) | (...);
to: (...) | (...);
transactionIndex: (...) | (...);
type: "eip7702";
typeHex: (...) | (...);
v: bigint;
value: bigint;
yParity: number;
}
) & {};
type: "transaction";
};
transactionReceipt: {
exclude: []
| undefined;
format: (
args: OpStackRpcTransactionReceipt,
action?: string,
) => {
blobGasPrice?: bigint;
blobGasUsed?: bigint;
blockHash: Hash;
blockNumber: bigint;
contractAddress: Address | null | undefined;
cumulativeGasUsed: bigint;
effectiveGasPrice: bigint;
from: Address;
gasUsed: bigint;
l1Fee: bigint | null;
l1FeeScalar: number | null;
l1GasPrice: bigint | null;
l1GasUsed: bigint | null;
logs: Log[];
logsBloom: Hex;
root?: `0x${string}`;
status: "success" | "reverted";
to: Address | null;
transactionHash: Hash;
transactionIndex: number;
type: TransactionType;
} & {};
type: "transactionReceipt";
};
};
id: 8453;
name: "Base";
nativeCurrency: { decimals: 18; name: "Ether"; symbol: "ETH" };
rpcUrls: { default: { http: readonly ["https://mainnet.base.org"] } };
serializers: { transaction: serializeTransactionOpStack };
sourceId: 1;
testnet?: boolean;
}
| {
blockExplorers: {
default: {
apiUrl: "https://api-sepolia.etherscan.io/api";
name: "Etherscan";
url: "https://sepolia.etherscan.io";
};
};
blockTime?: number;
contracts: {
ensUniversalResolver: {
address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
blockCreated: 8928790;
};
multicall3: {
address: "0xca11bde05977b3631167028862be2a173976ca11";
blockCreated: 751532;
};
};
custom?: Record<string, unknown>;
ensTlds?: readonly string[];
experimental_preconfirmationTime?: number;
fees?: ChainFees;
formatters?: undefined;
id: 11155111;
name: "Sepolia";
nativeCurrency: { decimals: 18; name: "Sepolia Ether"; symbol: "ETH" };
rpcUrls: {
default: { http: readonly ["https://11155111.rpc.thirdweb.com"] };
};
serializers?: ChainSerializers;
sourceId?: number;
testnet: true;
}
| undefined