Skip to content

Commit

Permalink
fix: onchainPaymentSend vs onchainUsdPaymentSend (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
openoms committed Dec 6, 2023
1 parent aaeefa5 commit 798c671
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/api/btc-onchain-send.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ slug: /api/btc-onchain-send
import { AuthProvider } from '/src/components/apiTutorial/AuthContext';
import { SetApiEndpoint } from '/src/components/apiTutorial/SetApiEndpoint';
import { SetAuthToken } from '/src/components/apiTutorial/SetAuthToken';
import { GetWalletDataUsd } from '/src/components/apiTutorial/GetWalletDataUsd';
import { GetWalletDataBtc } from '/src/components/apiTutorial/GetWalletDataBtc';
import { OnChainTxFee } from '/src/components/apiTutorial/OnChainTxFee';
import { OnChainPaymentSend } from '/src/components/apiTutorial/OnChainPaymentSend';

Expand Down Expand Up @@ -39,7 +39,7 @@ query Me {
}
```

<GetWalletDataUsd />
<GetWalletDataBtc />

---

Expand Down Expand Up @@ -68,8 +68,8 @@ Send a transaction onchain from your BTC account.
**The body of the GraphQL request**

```graphql
mutation onChainUsdPaymentSend($input: OnChainUsdPaymentSendInput!) {
onChainUsdPaymentSend(input: $input) {
mutation onChainPaymentSend($input: OnChainPaymentSendInput!) {
onChainPaymentSend(input: $input) {
errors {
message
}
Expand Down
4 changes: 2 additions & 2 deletions docs/api/usd-onchain-send.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ The satoshi amount will be calculated based on the current exchange rate.
**The body of the GraphQL request**

```graphql
mutation onChainPaymentSend($input: OnChainPaymentSendInput!) {
onChainPaymentSend(input: $input) {
mutation onChainUsdPaymentSend($input: OnChainUsdPaymentSendInput!) {
onChainUsdPaymentSend(input: $input) {
errors {
message
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/apiTutorial/OnChainTxFee.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ query onChainTxFee($walletId: WalletId!, $address: OnChainAddress!, $amount: Sat
value={accountWalletId}
onChange={handleWalletIdChange}
style={{ marginLeft: '10px', width: '50%' }}
placeholder="Paste the USD wallet ID from the response above"
placeholder="Paste the BTC wallet ID from the response above"
/>
</label>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/apiTutorial/legacy/OnChainTxFee.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ query onChainTxFee($walletId: WalletId!, $address: OnChainAddress!, $amount: Sat
value={accountWalletId}
onChange={handleWalletIdChange}
style={{ marginLeft: '10px', width: '50%' }}
placeholder="Paste the USD wallet ID from the response above"
placeholder="Paste the BTC wallet ID from the response above"
/>
</label>
</div>
Expand Down

0 comments on commit 798c671

Please sign in to comment.