@eth-optimism/viem • Docs
@eth-optimism/viem / chains / shape
constshape:object
Chain Definition for Shape
blockExplorers:
object
Collection of block explorers
readonlydefault:object
readonlyname:"Shape Explorer"='Shape Explorer'
readonlyurl:"https://shape-mainnet.explorer.alchemy.com/"='https://shape-mainnet.explorer.alchemy.com/'
contracts:
object
Collection of contracts
readonlydisputeGameFactory:object
readonly1:object
readonlyaddress:"0x575Aecd84083f93877291901907698F7db0Bd8b0"='0x575Aecd84083f93877291901907698F7db0Bd8b0'
readonlygasPriceOracle:object
readonlyaddress:"0x420000000000000000000000000000000000000F"
readonlyl1Block:object
readonlyaddress:"0x4200000000000000000000000000000000000015"
readonlyl1CrossDomainMessenger:object
readonly1:object
readonlyaddress:"0x2b18602877181C3cB72C687E2A771E123A3788E3"='0x2b18602877181C3cB72C687E2A771E123A3788E3'
readonlyl1Erc721Bridge:object
readonly1:object
readonlyaddress:"0xe9d3E49b0636016c5fE9eaA2347948D0bA9f15Af"='0xe9d3E49b0636016c5fE9eaA2347948D0bA9f15Af'
readonlyl1StandardBridge:object
readonly1:object
readonlyaddress:"0x62Edd5f4930Ea92dCa3fB81689bDD9b9d076b57B"='0x62Edd5f4930Ea92dCa3fB81689bDD9b9d076b57B'
readonlyl2CrossDomainMessenger:object
readonlyaddress:"0x4200000000000000000000000000000000000007"
readonlyl2Erc721Bridge:object
readonlyaddress:"0x4200000000000000000000000000000000000014"
readonlyl2OutputOracle:object
readonly1:object
readonlyaddress:"0x6Ef8c69CfE4635d866e3E02732068022c06e724D"='0x6Ef8c69CfE4635d866e3E02732068022c06e724D'
readonlyl2StandardBridge:object
readonlyaddress:"0x4200000000000000000000000000000000000010"
readonlyl2ToL1MessagePasser:object
readonlyaddress:"0x4200000000000000000000000000000000000016"
readonlyportal:object
readonly1:object
readonlyaddress:"0xEB06fFa16011B5628BaB98E29776361c83741dd3"='0xEB06fFa16011B5628BaB98E29776361c83741dd3'
readonlysystemConfig:object
readonly1:object
readonlyaddress:"0xfF11e41D5C4F522E423Ff6C064Ff8D55AF8f7355"='0xfF11e41D5C4F522E423Ff6C064Ff8D55AF8f7355'
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:
360
ID in number form
name:
"Shape"
Human-readable name
nativeCurrency:
object
Currency used by chain
readonlydecimals:18=18
readonlyname:"Ether"='Ether'
readonlysymbol:"ETH"='ETH'
rpcUrls:
object
Collection of RPC endpoints
readonlydefault:object
readonlyhttp: readonly ["https://mainnet.shape.network/"]
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