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 Mainneteip155:324// zkSync Sepolia Testneteip155:300
// Tron Mainnettron:27Lqcw:TNPeeaaFB7K9cmo4uQpcU32zGK8G1NYqeL// Tron Shasta Testnettron:4oPwXB:TNPeeaaFB7K9cmo4uQpcU32zGK8G1NYqeL// Tron Nile Testnettron:6FhfKq:TNPeeaaFB7K9cmo4uQpcU32zGK8G1NYqeL
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 Mainneteip155:324:0x4593e7f275383e76708718ead8f7226a804bea47fc9061ff649d105e943323e3// zkSync Sepolia Testneteip155:300:0x4593e7f275383e76708718ead8f7226a804bea47fc9061ff649d105e943323e3
// Tron Mainnettron:27Lqcw:7e1c4712c81b5e2b960883dc4beb78c26f3549e862c139aab88206eb4a577430// Tron Shasta Testnettron:4oPwXB:7e1c4712c81b5e2b960883dc4beb78c26f3549e862c139aab88206eb4a577430// Tron Nile Testnettron:6FhfKq:7e1c4712c81b5e2b960883dc4beb78c26f3549e862c139aab88206eb4a577430
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 Mainneteip155:324/erc20:0x6b175474e89094c44da98b954eedeac495271d0f// zkSync Sepolia Testneteip155:300/erc20:0x6b175474e89094c44da98b954eedeac495271d0f
// Tron Mainnettron:27Lqcw/trc20:TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t// Tron Shasta Testnettron:4oPwXB/trc20:TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t// Tron Nile Testnettron:6FhfKq/trc20:TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t