⛓️Blockchain Identifiers

The OffBlocks API is chain-agnostic, meaning that our services can theoretically be integrated with a variety of different blockchains that support smart-contract functionality. This includes, but is not limited to, EVM-compatible L1 and L2 chains, Solana, and Tron.

To effectively set up entities such as users and accounts, perform compliance monitoring, and manage the transaction lifecycle, we employ universal identifiers for blockchain entities. We have chosen a CAIP-compatible (Chain Agnostic Improvement Proposal) naming convention for Chain, Account and Asset identifiers, our internal Transaction identifier is also using Account-like structure for consistency.

Chain Identifier

We use a blockchain namespace identifier suggested by CAIP-2. Here are some examples of what it would look like for supported chains:

// zkSync Era Mainnet
eip155:324

// zkSync Sepolia Testnet
eip155:300

Account Identifier

We use a blockchain account identifier suggested by CAIP-10. Here are some examples of what it would look like for supported chains:

// zkSync Era Mainnet
eip155:324:0x22227A31dd842196A246d8f3b775998560eAa61d

// zkSync Sepolia Testnet
eip155:300:0x22227A31dd842196A246d8f3b775998560eAa61d

Transaction Identifier

We use a blockchain transaction identifier that is similar to the account identifier, as suggested by CAIP-10, where the transaction hash replaces the account address. Here are some examples of what it would look like for supported chains:

// zkSync Era Mainnet
eip155:324:0x4593e7f275383e76708718ead8f7226a804bea47fc9061ff649d105e943323e3

// zkSync Sepolia Testnet
eip155:300:0x4593e7f275383e76708718ead8f7226a804bea47fc9061ff649d105e943323e3

Asset Identifier

We use a blockchain asset identifier suggested by CAIP-19. Here are some examples of what it would look like for supported chains:

// zkSync Era Mainnet
eip155:324/erc20:0x6b175474e89094c44da98b954eedeac495271d0f

// zkSync Sepolia Testnet
eip155:300/erc20:0x6b175474e89094c44da98b954eedeac495271d0f

Last updated