-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
settlementCurrencies in createSingleSaleOffer #581
Comments
@redox help |
|
Have you tried passing your variable from WEI to int ? |
I'm currently using this code:
|
the problem remains..Please show prepareOfferInput and createSingleSaleOfferInput with wei and fiat |
Hi. I want to offer cards for sale in WEI and EUR. It works this way manually, but not through the API.
const prepareOfferInput = { type: "SINGLE_SALE_OFFER", sendAssetIds: [sendCard], receiveAssetIds: [], settlementCurrencies:['EUR','WEI'], receiveAmount: { amount: String(receiveWei), currency: 'WEI', }, clientMutationId: crypto.randomBytes(8).join(""), };
const createSingleSaleOfferInput = { approvals, dealId: crypto.randomBytes(8).join(""), assetId: sendCard, settlementCurrencies:['EUR','WEI'], receiveAmount: { amount: String(receiveWei), currency: 'WEI', }, clientMutationId: crypto.randomBytes(8).join(''), };
this way I get different errors
The text was updated successfully, but these errors were encountered: