chaingate
Version:
Multi-chain cryptocurrency SDK for TypeScript — unified API for Bitcoin, Ethereum, Litecoin, Dogecoin, Bitcoin Cash, Polygon, Arbitrum, and any EVM-compatible chain. Create wallets, query balances, send transactions, and manage tokens and NFTs across UTXO
16 lines (15 loc) • 609 B
TypeScript
/**
* Minimal RLP (Recursive Length Prefix) encoder for EVM transaction serialization.
*
* Implements the RLP encoding scheme as specified in the Ethereum Yellow Paper,
* Appendix B. Only encoding is needed — decoding is not required for transaction
* construction.
*
* @see https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/
*/
/** An RLP-encodable value: bytes, or a nested list of encodable values. */
export type RlpItem = Uint8Array | RlpItem[];
/**
* RLP-encodes a single item or nested list of items.
*/
export declare function rlpEncode(input: RlpItem): Uint8Array;