Safle
  • SafleID
    • About SafleID
      • Core Technical Components (1/3)
      • Core Technical Concepts (2/3)
      • Core Technical Concepts (3/3)
    • What SafleID does?
    • For Chains
      • Technical Breakdown (1/2)
      • Technical Breakdown (2/2)
    • For dApps
    • For Wallet Providers (Exchanges and independent wallets)
      • Why Integrate SafleID (1/2)
      • Why Integrate SafleID (2/2)
    • SafleID's Technology
      • Data Flow and Interactions
      • Resolving Functionalities (RegistrarMain Contract)
      • Auction Functionalities (Auction Contract)
    • Conclusion
    • Terminology
    • Technical Documentation
  • Safle Wallet
    • Onboarding
    • Buy Crypto with Fiat enabled via Transak
    • Safle Swaps
    • Transaction processing on multiple Chains
    • Annexure: Encryption Sequence
  • Safle Vault
    • Features
    • Blockchains Supported
    • Installation & Initialisation
    • Encryption/Decryption Module
    • Controllers
Powered by GitBook
On this page
  • User flow
  • Send funds to public address:
  1. Safle Wallet

Transaction processing on multiple Chains

PreviousSafle SwapsNextAnnexure: Encryption Sequence

Last updated 10 months ago

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

    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

here