@cosmosapp/pay_sdkDefinitionsServer

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: Client
  • data: Usdt0TransferData

Properties

status

status: Usdt0TransferStatus

network

Always mainnet (public).

network: string

source

The Stellar account that holds the USDT0, signs and pays the fees in XLM.

source: string

to

to: Usdt0Destination

eid

The destination network's LayerZero endpoint id.

eid: number

receives

receives: Usdt0Receives

recipient

The EVM address credited.

recipient: string

amount

amount: string

amountSent

amountSent: string

amountReceived

amountReceived: string

dust

dust: string

nativeFee

LayerZero's quoted messaging fee, in XLM.

nativeFee: string

nativeFeeLimit

What the transaction offers LayerZero, in XLM; the unused part is refunded.

nativeFeeLimit: string

networkFee

The Stellar network fee, in XLM.

networkFee: string

feeBps

feeBps: number

feeAmount

feeAmount: string

feeWallet

feeWallet: string | null

xdr

The unsigned transaction (base64 XDR) to sign.

xdr: string

uri

SEP-7 tx link carrying {@link xdr}.

uri: string

qr

QR of {@link uri}; usually null (a Soroban transaction is too large for one), and absent from list rows.

qr: string | null

txHash

txHash: string | null

guid

LayerZero's message id, once the transaction landed.

guid: string | null

destinationTxHash

destinationTxHash: string | null

scanStatus

LayerZero Scan's own status word, verbatim.

scanStatus: string | null

scanUrl

scanUrl: string | null

failureReason

failureReason: string | null

merchantFee

merchantFee: MerchantFeeData | null

idempotencyKey

idempotencyKey: string | null

expiresAt

Submit refuses the transaction after this.

expiresAt: Date

submittedAt

submittedAt: Date | null

createdAt

createdAt: Date

updatedAt

updatedAt: Date

publicToken

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 | null

protected

protected _patch(data: Usdt0TransferData): this

get

Whether the transfer is still waiting for its signature.

get isPending(): boolean

get

Whether it was credited on the destination network.

get isDelivered(): boolean

get

Whether it reached an outcome that will not change (DELIVERED, FAILED or EXPIRED).

get isFinal(): boolean

submit

Relay the signed transaction. Mutates this instance from the transfer in the outcome and returns the outcome.

submit(options: { signedXdr: string

member

}): 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(): Usdt0TransferData

Returns Usdt0TransferData

On this page