XRPL Bridge
Last updated
Last updated
Send Native tokens and receive Native tokens.
Send Native tokens and receive Wrapped (or minted) tokens.
Send Wrapped (or minted) tokens and receive Native tokens.
Send Wrapped (or minted) tokens and Receive Wrapped (or minted) tokens.
User (Sender / Receiver) - EOA (Externally Owned Account) / Wallet from which the token X is transferred from one chain to another.
Non-XRPL chain smart contract - a bridge smart contract on the blockchains other than XRPL.
Outgoing Transactions Ledger on NEAR - a bridge smart contract on the NEAR blockchain.
Allbridge Validator - an offchain entity that is responsible for verifying Lock, Unlock, Mint, and Burn transactions on the bridge smart contracts.
XRPL Sender - an offchain entity that is responsible for verifying Lock, Unlock, Mint, and Burn transactions on the bridge smart contracts for XRPL transfers.
With the Send transaction, the User sends a request to the non-XRPL chain smart contract, where the address of the wallet on the XRPL and the amount of token X that must be sent to the wallet is specified. Non-XRPL chain smart contract locks/burns the received tokens from the User.
When a user clicks “Receive” button on the bridge UI, the User asks Validator to receive the X tokens on the XRPL.
Validator checks if funds were actually locked/burnt on the non-XRPL chain smart contract.
If they were, the Validator sends an Unlock/Mint transaction to the Outgoing Transaction Ledger on NEAR.
After that, Validator triggers XRPL Sender.
XRPL Sender checks the finality of the Unlock/Mint transaction on NEAR OTL.
If XRPL Sender finds an Unlock/Mint transaction on the NEAR OTL, it unlocks/mints the requested amount of X tokens and sends them to the User right away.
With the Send transaction, the User sends a request to the XRPL, where the address of the wallet on the non-XRPL chain and the amount of token X that must be sent to the wallet is specified. The assets get locked/burnt.
With the Receive transaction, the User asks Validator to check the request log.
Validator checks if funds were actually sent (locked/burnt) to the XRPL.
If they were, the Validator sends its signature to the User.
User sends the signature to the non-XRPL chain smart contract.
Non-XRPL chain smart contract unlocks/mints the requested amount of X tokens and sends them to the User right away.