Connect to Taychain
You can use Taychain with any web3 wallet, for example MetaMask. Hardware wallets like Trezor or Ledger can be used for additional security.
To connect simply add a custom network within your wallet:
- Network Name: Taychain
- RPC URL: https://rpc.taychain.com
- Chain ID: 149
- Currency Symbol: TAY
- Block Explorer URL: https://taychain.com
The official RPC has
never been unavailable so far, but for redundancy you can use tayrpc.com or rpc.tayscan.com as alternative endpoints. None of them track or store user information.
For Developers
The official RPC is optimized for minimal latency. It supports both single and multicalls. Multicalls are executed in parallel by default and sequentially when including a minimum of 2 writes to prevent race conditions.
The following RPC methods are currently supported:
Static
- net_version: Returns Chain ID in decimal
- eth_chainId: Returns Chain ID in hexadecimal
Read
- eth_getBalance: Returns TAY balance of an address
- eth_getTransactionReceipt: Returns transaction by hash
- eth_getCode: Returns bytecode of contract
- eth_call: Reads a contract, returns result
Write
- eth_sendRawTransaction: Instantly executes a signed transaction, returns hash
There are no "pending" transactions on Taychain.
Compatibility
Only implemented to enable interaction through web3 wallets
- eth_getTransactionCount: Returns a random number 99999-999998. Enables signing the next transaction with a random 6-digit nonce, due to nonces on Taychain being non-chronological
- eth_estimateGas: Returns 21000 due to Taychain having no gas fees
- eth_gasPrice: Returns 0 due to Taychain having no gas fees
- eth_blockNumber: Returns current UNIX second, due to Taychain having no blocks
- eth_getBlockByNumber: Returns default block
- eth_getBlockByHash: Returns default block
Taychain Specific
Additional to the standardized methods above
- tay_getWallet: Returns balances & latest 10 transactions of an address
TayFS
is the filesystem used to store unstructured data on Taychain. The main use cases are ERC20 token logos and ERC721 NFTs. IPFS-compatible CIDv0 is primarily used as hash format.
Objects can be accessed via the official gateway at https://fs.taychain.com