Skip to content
Discussion options

You must be logged in to vote

If you're running into errors while trying to send or sign transactions on the Aptos blockchain using a keyless account, it could be due to incorrectly building or submitting the transaction, especially when dealing with decimal conversions or missing signer logic
let me share a tnx function you can use

 export const aptosKeylessSendTnx = async (
  keylessAccount: KeylessAccount,
  amount: number,
  recipient: string,
) => {
  try {
    const APT_DECIMAL = 10 ** 8;

    const transaction = await aptos.transferCoinTransaction({
      amount: amount * APT_DECIMAL,  
      sender: keylessAccount.accountAddress,
      recipient,
    });

    const committedTxn = await aptos.signAndSubmitTrans…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@DefenceHack
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by DefenceHack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants