Skip to main content

Function: placeOrderMessage()

placeOrderMessage(amount: string | number, currency: Currency, receiver: string, chain?: Chain | ChainId): string

The message to be signed when placing an order.

Parameters

ParameterTypeDescription
amountstring | numberThe amount to be sent
currencyCurrencyThe currency to be sent
receiverstringThe receiver of the funds
chain?Chain | ChainIdThe chainId of the network if it's a cross-chain transaction

Returns

string

cross-chain:

 Send {CURRENCY} {AMOUNT} to {RECEIVER} on {CHAIN} at {DATE}`

off-ramp:

 Send {CURRENCY} {AMOUNT} to {RECEIVER} at {DATE}

Examples

`Send EUR 1 to 0x1234123412341234123412341234123412341234 on ethereum at 2023-04-30T12:00:00+01:00`
`Send EUR 1 to IS1234123412341234 at 2023-04-30T12:00:00+01:00`

Defined in

utils.ts:110