@eth-optimism/viem • Docs
@eth-optimism/viem / chains / celo
constcelo:object
Chain Definition for Celo
blockExplorers:
object
Collection of block explorers
readonlydefault:object
readonlyname:"Celo Explorer"='Celo Explorer'
readonlyurl:"https://celoscan.io/"='https://celoscan.io/'
contracts:
object
Collection of contracts
readonlycreate2Deployer:object
readonlyaddress:"0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2"='0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2'
readonlydisputeGameFactory:object
readonly1:object
readonlyaddress:"0xFbAC162162f4009Bb007C6DeBC36B1dAC10aF683"='0xFbAC162162f4009Bb007C6DeBC36B1dAC10aF683'
readonlygasPriceOracle:object
readonlyaddress:"0x420000000000000000000000000000000000000F"
readonlyl1Block:object
readonlyaddress:"0x4200000000000000000000000000000000000015"
readonlyl1CrossDomainMessenger:object
readonly1:object
readonlyaddress:"0x1AC1181fc4e4F877963680587AEAa2C90D7EbB95"='0x1AC1181fc4e4F877963680587AEAa2C90D7EbB95'
readonlyl1Erc721Bridge:object
readonly1:object
readonlyaddress:"0x3C519816C5BdC0a0199147594F83feD4F5847f13"='0x3C519816C5BdC0a0199147594F83feD4F5847f13'
readonlyl1StandardBridge:object
readonly1:object
readonlyaddress:"0x9C4955b92F34148dbcfDCD82e9c9eCe5CF2badfe"='0x9C4955b92F34148dbcfDCD82e9c9eCe5CF2badfe'
readonlyl2CrossDomainMessenger:object
readonlyaddress:"0x4200000000000000000000000000000000000007"
readonlyl2Erc721Bridge:object
readonlyaddress:"0x4200000000000000000000000000000000000014"
readonlyl2StandardBridge:object
readonlyaddress:"0x4200000000000000000000000000000000000010"
readonlyl2ToL1MessagePasser:object
readonlyaddress:"0x4200000000000000000000000000000000000016"
readonlymulticall3:object
readonlyaddress:"0xca11bde05977b3631167028862be2a173976ca11"='0xca11bde05977b3631167028862be2a173976ca11'
readonlyoptimismMintableERC20Factory:object
readonlyaddress:"0x4200000000000000000000000000000000000012"='0x4200000000000000000000000000000000000012'
readonlypermit2:object
readonlyaddress:"0x000000000022D473030F116dDEE9F6B43aC78BA3"='0x000000000022D473030F116dDEE9F6B43aC78BA3'
readonlyportal:object
readonly1:object
readonlyaddress:"0xc5c5D157928BDBD2ACf6d0777626b6C75a9EAEDC"='0xc5c5D157928BDBD2ACf6d0777626b6C75a9EAEDC'
readonlysystemConfig:object
readonly1:object
readonlyaddress:"0x89E31965D844a309231B1f17759Ccaf1b7c09861"='0x89E31965D844a309231B1f17759Ccaf1b7c09861'
readonlyweth:object
readonlyaddress:"0x4200000000000000000000000000000000000006"='0x4200000000000000000000000000000000000006'
optionalcustom:Record<string,unknown>
Custom chain data.
optionalfees:ChainFees<undefined>
Modifies how fees are derived.
readonlyformatters:object
Modifies how data is formatted and typed (e.g. blocks and transactions)
readonlyblock:object
exclude:
undefined| []
format: (
args) =>object
• args: OpStackRpcBlock<BlockTag, boolean>
object
baseFeePerGas:
null|bigint
blobGasUsed:
bigint
difficulty:
bigint
excessBlobGas:
bigint
extraData: `0x${string}`
gasLimit:
bigint
gasUsed:
bigint
hash:
null| `0x${string}`
logsBloom:
null| `0x${string}`
miner: `0x${string}`
mixHash: `0x${string}`
nonce:
null| `0x${string}`
number:
null|bigint
parentHash: `0x${string}`
receiptsRoot: `0x${string}`
sealFields: `0x${string}`[]
sha3Uncles: `0x${string}`
size:
bigint
stateRoot: `0x${string}`
timestamp:
bigint
totalDifficulty:
null|bigint
transactions: `0x${string}`[] |
OpStackTransaction<boolean>[]
transactionsRoot: `0x${string}`
uncles: `0x${string}`[]
optionalwithdrawals:Withdrawal[]
optionalwithdrawalsRoot: `0x${string}`
type:
"block"
readonlytransaction:object
exclude:
undefined| []
format: (
args) =>object|object|object|object|object
• args: OpStackRpcTransaction<boolean>
object | object | object | object | object
type:
"transaction"
readonlytransactionReceipt:object
exclude:
undefined| []
format: (
args) =>object
• args: OpStackRpcTransactionReceipt
object
optionalblobGasPrice:bigint
optionalblobGasUsed:bigint
blockHash: `0x${string}`
blockNumber:
bigint
contractAddress:
undefined|null| `0x${string}`
cumulativeGasUsed:
bigint
effectiveGasPrice:
bigint
from: `0x${string}`
gasUsed:
bigint
l1Fee:
null|bigint
l1FeeScalar:
null|number
l1GasPrice:
null|bigint
l1GasUsed:
null|bigint
logs:
Log<bigint,number,false,undefined,undefined,undefined,undefined>[]
logsBloom: `0x${string}`
optionalroot: `0x${string}`
status:
"success"|"reverted"
to:
null| `0x${string}`
transactionHash: `0x${string}`
transactionIndex:
number
type:
TransactionType
type:
"transactionReceipt"
id:
42220
ID in number form
name:
"Celo"
Human-readable name
nativeCurrency:
object
Currency used by chain
readonlydecimals:18=18
readonlyname:"Celo native asset"='Celo native asset'
readonlysymbol:"CELO"='CELO'
rpcUrls:
object
Collection of RPC endpoints
readonlydefault:object
readonlyhttp: readonly ["https://forno.celo.org"]
readonlyserializers:object
Modifies how data is serialized (e.g. transactions).
readonlytransaction: (transaction,signature?) => `0x02${string}` | `0x01${string}` | `0x03${string}` |TransactionSerializedLegacy| `0x7e${string}`
• transaction: OpStackTransactionSerializable
• signature?: Signature
`0x02${string}` | `0x01${string}` | `0x03${string}` | TransactionSerializedLegacy | `0x7e${string}`
sourceId:
1
Source Chain ID (ie. the L1 chain)
optionaltestnet:boolean
Flag for test networks