Send Cryptocurrency To Email
This API is to send cryptocurrency to email
GRAPHQL
Headers
| Fields | Type | Description | Example | Data Management |
|---|---|---|---|---|
| URL | string | {base_url}/users | ||
| GRAPHQL | string | MUTATION | ||
| content-type | string | JSON | application/json |
Request
mutation {
send_crypto_to_email(email: "sachin@paysack.com", network: "solana", amount: 0.001) {
message
}
}
Request Parameters
| Fields | Type | Description | Required |
|---|---|---|---|
| string | email of the user | ✔ | |
| network | string | the network identifier from wallets' list of profile API | ✔ |
| amount | float | amount wants to send | ✔ |
Success
{
"data": {
"send_crypto_to_email": {
"message": "Transaction was successfull"
}
}
}
Error
{
"errors": [
{
"message": "Unauthorized",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": ["send_crypto_to_email"]
}
],
"data": {
"send_crypto_to_email": null
}
}