Transaction processing on multiple Chains

Send funds to a SafleID

Safle users can send funds to other safle users without having to know about the recipients public address directly to their SafleID’s. This removes the need to share long alphanumeric public addresses and thus reduces the chances of error.

User flow

  1. User selects network and sender wallet

  2. Client calls change network method of vault SDK

    await vault.changeNetwork(chain)
    • chain : Name of chain from the supported chains

  3. Enters recipients SafleID

  4. Client calls safle-identity-wallet SDK to get public address for the corresponding safleID. 💡This SDK abstracts the safleID smart contracts to enable a seamless development of client applications. More details here

    const address = safle.getAddress()
  5. Client app build a raw transaction with the user’s input

  6. User proceeds to sign transaction. Enters vault pin to proceed

    1. Application calls vault method to sign raw transaction and enters pin

      const signedTransaction = await vault.signTransaction(rawTx, pin, chain);

      Returns the signed transaction string

      • chain - The chain for which the transaction is to be signed.

      • rawTx - The raw transaction object to be signed

      • pin - The pin to access the vault's private functions.

  7. Signed transaction broadcasted by Client Application

Send funds to public address:

User flow

  1. User selects network and sender wallet

  2. Client calls change network method of vault SDK

    await vault.changeNetwork(chain)
    • chain : Name of chain from the supported chains

  3. Enters recipients public address

  4. Client app build a raw transaction with the user’s input

  5. User proceeds to sign transaction. Enters vault pin to proceed

    1. Application calls vault method to sign raw transaction and enters pin

      const signedTransaction = await vault.signTransaction(rawTx, pin, chain);

      Returns the signed transaction string

      • chain - The chain for which the transaction is to be signed.

      • rawTx - The raw transaction object to be signed

      • pin - The pin to access the vault's private functions.

  6. Signed transaction broadcasted by client application

Last updated