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 Coin Transaction

1. Build TON CoinTransaction

  • create a new Build BuildTonTransactionRequest 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 Base58 before sending. Example:

Bitcoin Transaction

1. Build Bitcoin Transaction

  • create a new Build BuildBtcTransactionRequest 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. Encode the raw transaction to Base58 before sending. Example:

XRP Transaction

Build XRP Transaction

To create an XRP transaction, use the buildXrpTransaction method with the following attributes:

  • paillierGroupId: The Paillier group ID associated with your wallet.

  • keygenGroupId: The Keygen group ID of your master wallet.

  • wallet: The current wallet object containing details like keyIdentity, ecType, etc.

  • toAddress: The recipient's XRP wallet address.

  • fromAddress: The sender's XRP wallet address.

  • chainId: The ID of the XRP chain or network.

  • amount: The amount of XRP to send.

  • keygenGroupServerShard: The server shard of the Keygen group that was saved in secure storage.

  • paillierGroupServerShard: The server shard of the Paillier group that was saved in secure storage.

Example:

Last updated