Transaction

  • To create the transaction with wallet

ETH Transaction

1. Build ETH Transaction

To create an Ethereum transaction, use the ETHTransactionRequest with the following attributes:

  • create a new Build ETHTransactionRequest should include the following attributes:

    • chainID : Chain ID (e.g., Ethereum is 1).

    • toAddress : Recipient's wallet address.

    • amount : Amount to transfer.

    • gasPrice : Gas price per unit.

    • gasLimit : Maximum gas allowed for the transaction.

    • nonce : Transaction count for the sender's account.

    • data : Optional additional data for the transaction.

    • paillierGroupID : User's Paillier group ID.

    • keyGenGroupID : the keygen Group ID of master wallet

    • keyIdentity : the keyIdentity of wallet

    • ecType: Cryptographic algorithm type (e.g., eddsa, ecdsa)

Example:

2. Send ETH Transaction with Web3

Example:

SOLANA Transaction

1. Build Solana Transaction

  • create a new Build BuildSolTransactionRequest should include the following attributes:

    • chainID: Chain ID (e.g., Solana mainnet is 501).

    • fromAddress: Sender's wallet address.

    • toAddress: Recipient's wallet address.

    • Amount: Amount to transfer.

    • paillierGroupID: User's Paillier group ID.

    • keyGenGroupID: Master wallet's key generation group ID.

    • KkeyIdentity: the keyIdentity of wallet

    • eCType: Cryptographic algorithm type (e.g., eddsa, ecdsa).

Example:

2. Send SOLANA Transaction

  • Use a Solana library to send the raw transaction. Encode the raw transaction to Base58 before sending. Example:

Tron Transaction

1. Build Tron Transaction

  • create a new Build BuildTronTransactionRequest should include the following attributes:

    • chainID: Chain ID (e.g., Tron mainnet is 728, testnet is 939).

    • fromAddress: Sender's wallet address.

    • toAddress: Recipient's wallet address.

    • Amount: Amount to transfer.

    • paillierGroupID: User's Paillier group ID.

    • keyGenGroupID: Master wallet's key generation group ID.

    • KkeyIdentity: the keyIdentity of wallet

    • eCType: Cryptographic algorithm type (e.g., eddsa, ecdsa).

Example:

2. Send Tron Transaction

  • Use a Tron library to send the raw transaction. Encode the raw transaction to Base58 before sending. Example:

Ton CoinTransaction

1. Build Ton Coin Transaction

  • create a new Build PayloadBuildTonTransactionRequest should include the following attributes:

    • chainID: Chain ID (e.g., Ton mainnet is ton, testnet is ton-testnet).

    • fromAddress: Sender's wallet address.

    • toAddress: Recipient's wallet address.

    • amount: Amount to transfer.

    • paillierGroupID: User's Paillier group ID.

    • keyGenGroupID: Master wallet's key generation group ID.

    • keyIdentity: the keyIdentity of wallet

    • ellipticCurveType: Cryptographic algorithm type (e.g., eddsa, ecdsa).

    • derivationPath: derivation Path of Ton chain "m/44'/607'/0'"

    • subwallet: The type of ton wallet v3r2 (698983191)

    • comment: memo of transaction

    • bounce: the transaction to bounce (true, false)

Example:

2. Send Ton Coin Transaction

  • Use a Ton library to send the raw transaction. Encode the raw transaction to Base64 before sending. Example:

Bitcoin Transaction

1. Build Bitcoin Transaction

  • create a new Build PayloadBuildBtcTransactionRequest should include the following attributes:

    • chainID: Chain ID (e.g., BTC mainnet is btc, testnet is btc-testnet).

    • fromAddress: Sender's wallet address.

    • receiverAddress: Recipient's wallet address.

    • amount: Amount to transfer.

    • paillierGroupID: User's Paillier group ID.

    • keyGenGroupID: Master wallet's key generation group ID.

    • keyIdentity: the keyIdentity of wallet

    • ellipticCurveType: Cryptographic algorithm type (e.g., eddsa, ecdsa).

    • IgnoringFee: The flag used to skip fee enforcement on testnet. This should always be set to false on mainnet.

Example:

2. Send Bitcoin Transaction

  • Use a BTC library to send the raw transaction Example:

Xrp Transaction

1. Build XRP Transaction

  • create a new Build PayloadBuildXrpTransactionRequest should include the following attributes:

    • chainId: Chain ID (e.g., XRP mainnet is xrp, testnet is xrp-testnet).

    • fromAddress: Sender's XRP wallet address.

    • toAddr: Recipient's XRP wallet address.

    • amount: Amount to transfer.

    • paillierGroupID: User's Paillier group ID.

    • keyGenGroupID: Master wallet's key generation group ID.

    • keyIdentity: The keyIdentity of the wallet.

    • ellipticCurveType: Cryptographic algorithm type (e.g., ecdsa, eddsa).

    • derivationPath: Derivation path for the key.

Example:

2. Send XRP Transaction

  • Use an XRP library or network provider (such as the XRPL JSON-RPC API) to send the raw transaction.

Last updated