Usdt0Transfer
A USDT0 transfer from Stellar to an EVM network through LayerZero, from client.usdt0.
A USDT0 transfer from Stellar to an EVM network through LayerZero, from client.usdt0. Non-custodial like a {@link Swap}: the API builds one Soroban transaction ({@link xdr}, or the SEP-7 {@link uri}), the account that holds the USDT0 ({@link source}) signs it, and await transfer.submit({ signedXdr }) relays it. LayerZero then delivers it (about 27 minutes on every route); follow it with await transfer.fetch() until {@link isFinal}.
Constructor
Usdt0Transfer
constructor(client: Client, data: Usdt0TransferData)Parameters
client:Clientdata:Usdt0TransferData
Properties
status
status: Usdt0TransferStatusnetwork
Always mainnet (public).
network: stringsource
The Stellar account that holds the USDT0, signs and pays the fees in XLM.
source: stringto
to: Usdt0Destinationeid
The destination network's LayerZero endpoint id.
eid: numberreceives
receives: Usdt0Receivesrecipient
The EVM address credited.
recipient: stringamount
amount: stringamountSent
amountSent: stringamountReceived
amountReceived: stringdust
dust: stringnativeFee
LayerZero's quoted messaging fee, in XLM.
nativeFee: stringnativeFeeLimit
What the transaction offers LayerZero, in XLM; the unused part is refunded.
nativeFeeLimit: stringnetworkFee
The Stellar network fee, in XLM.
networkFee: stringfeeBps
feeBps: numberfeeAmount
feeAmount: stringfeeWallet
feeWallet: string | nullxdr
The unsigned transaction (base64 XDR) to sign.
xdr: stringuri
SEP-7 tx link carrying {@link xdr}.
uri: stringqr
QR of {@link uri}; usually null (a Soroban transaction is too large for one), and absent from list rows.
qr: string | nulltxHash
txHash: string | nullguid
LayerZero's message id, once the transaction landed.
guid: string | nulldestinationTxHash
destinationTxHash: string | nullscanStatus
LayerZero Scan's own status word, verbatim.
scanStatus: string | nullscanUrl
scanUrl: string | nullfailureReason
failureReason: string | nullmerchantFee
merchantFee: MerchantFeeData | nullidempotencyKey
idempotencyKey: string | nullexpiresAt
Submit refuses the transaction after this.
expiresAt: DatesubmittedAt
submittedAt: Date | nullcreatedAt
createdAt: DateupdatedAt
updatedAt: DatepublicToken
The record's read token, returned by the create only when the client uses the shared public key. Kept across {@link fetch} and {@link submit}, which send it as X-Record-Token.
publicToken: string | nullprotected
protected _patch(data: Usdt0TransferData): thisget
Whether the transfer is still waiting for its signature.
get isPending(): booleanget
Whether it was credited on the destination network.
get isDelivered(): booleanget
Whether it reached an outcome that will not change (DELIVERED, FAILED or EXPIRED).
get isFinal(): booleansubmit
Relay the signed transaction. Mutates this instance from the transfer in the outcome and returns the outcome.
submit(options: { signedXdr: stringmember
}): Promise<Usdt0SubmitOutcome>Methods
fetch()
Re-read it (the API refreshes it from the ledger and LayerZero Scan), updating this instance in place.
fetch(): Promise<this>Returns Promise<this>
toJSON()
toJSON(): Usdt0TransferDataReturns Usdt0TransferData