cURL
curl --request POST \
--url https://api.flipsuite.xyz/v1/community/tipping/transfers \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"channelId": "1234567890123456789",
"recipientAddress": "0x8dd3b9bc6f6179b8e251b8f56b2e417e74e5227e",
"item": {
"type": "TOKEN",
"chain": "Polygon",
"tokenAddress": "0x162539172b53e9a93b7d98fb6c41682de558a320",
"amount": 1000
}
}
'import requests
url = "https://api.flipsuite.xyz/v1/community/tipping/transfers"
payload = {
"channelId": "1234567890123456789",
"recipientAddress": "0x8dd3b9bc6f6179b8e251b8f56b2e417e74e5227e",
"item": {
"type": "TOKEN",
"chain": "Polygon",
"tokenAddress": "0x162539172b53e9a93b7d98fb6c41682de558a320",
"amount": 1000
}
}
headers = {
"x-api-key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
channelId: '1234567890123456789',
recipientAddress: '0x8dd3b9bc6f6179b8e251b8f56b2e417e74e5227e',
item: {
type: 'TOKEN',
chain: 'Polygon',
tokenAddress: '0x162539172b53e9a93b7d98fb6c41682de558a320',
amount: 1000
}
})
};
fetch('https://api.flipsuite.xyz/v1/community/tipping/transfers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.flipsuite.xyz/v1/community/tipping/transfers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'channelId' => '1234567890123456789',
'recipientAddress' => '0x8dd3b9bc6f6179b8e251b8f56b2e417e74e5227e',
'item' => [
'type' => 'TOKEN',
'chain' => 'Polygon',
'tokenAddress' => '0x162539172b53e9a93b7d98fb6c41682de558a320',
'amount' => 1000
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.flipsuite.xyz/v1/community/tipping/transfers"
payload := strings.NewReader("{\n \"channelId\": \"1234567890123456789\",\n \"recipientAddress\": \"0x8dd3b9bc6f6179b8e251b8f56b2e417e74e5227e\",\n \"item\": {\n \"type\": \"TOKEN\",\n \"chain\": \"Polygon\",\n \"tokenAddress\": \"0x162539172b53e9a93b7d98fb6c41682de558a320\",\n \"amount\": 1000\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.flipsuite.xyz/v1/community/tipping/transfers")
.header("x-api-key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"channelId\": \"1234567890123456789\",\n \"recipientAddress\": \"0x8dd3b9bc6f6179b8e251b8f56b2e417e74e5227e\",\n \"item\": {\n \"type\": \"TOKEN\",\n \"chain\": \"Polygon\",\n \"tokenAddress\": \"0x162539172b53e9a93b7d98fb6c41682de558a320\",\n \"amount\": 1000\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flipsuite.xyz/v1/community/tipping/transfers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"channelId\": \"1234567890123456789\",\n \"recipientAddress\": \"0x8dd3b9bc6f6179b8e251b8f56b2e417e74e5227e\",\n \"item\": {\n \"type\": \"TOKEN\",\n \"chain\": \"Polygon\",\n \"tokenAddress\": \"0x162539172b53e9a93b7d98fb6c41682de558a320\",\n \"amount\": 1000\n }\n}"
response = http.request(request)
puts response.read_bodyTransfers
Transfer Asset
Transfer onchain assets to arbitrary wallets
POST
/
v1
/
community
/
tipping
/
transfers
cURL
curl --request POST \
--url https://api.flipsuite.xyz/v1/community/tipping/transfers \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"channelId": "1234567890123456789",
"recipientAddress": "0x8dd3b9bc6f6179b8e251b8f56b2e417e74e5227e",
"item": {
"type": "TOKEN",
"chain": "Polygon",
"tokenAddress": "0x162539172b53e9a93b7d98fb6c41682de558a320",
"amount": 1000
}
}
'import requests
url = "https://api.flipsuite.xyz/v1/community/tipping/transfers"
payload = {
"channelId": "1234567890123456789",
"recipientAddress": "0x8dd3b9bc6f6179b8e251b8f56b2e417e74e5227e",
"item": {
"type": "TOKEN",
"chain": "Polygon",
"tokenAddress": "0x162539172b53e9a93b7d98fb6c41682de558a320",
"amount": 1000
}
}
headers = {
"x-api-key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
channelId: '1234567890123456789',
recipientAddress: '0x8dd3b9bc6f6179b8e251b8f56b2e417e74e5227e',
item: {
type: 'TOKEN',
chain: 'Polygon',
tokenAddress: '0x162539172b53e9a93b7d98fb6c41682de558a320',
amount: 1000
}
})
};
fetch('https://api.flipsuite.xyz/v1/community/tipping/transfers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.flipsuite.xyz/v1/community/tipping/transfers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'channelId' => '1234567890123456789',
'recipientAddress' => '0x8dd3b9bc6f6179b8e251b8f56b2e417e74e5227e',
'item' => [
'type' => 'TOKEN',
'chain' => 'Polygon',
'tokenAddress' => '0x162539172b53e9a93b7d98fb6c41682de558a320',
'amount' => 1000
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.flipsuite.xyz/v1/community/tipping/transfers"
payload := strings.NewReader("{\n \"channelId\": \"1234567890123456789\",\n \"recipientAddress\": \"0x8dd3b9bc6f6179b8e251b8f56b2e417e74e5227e\",\n \"item\": {\n \"type\": \"TOKEN\",\n \"chain\": \"Polygon\",\n \"tokenAddress\": \"0x162539172b53e9a93b7d98fb6c41682de558a320\",\n \"amount\": 1000\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.flipsuite.xyz/v1/community/tipping/transfers")
.header("x-api-key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"channelId\": \"1234567890123456789\",\n \"recipientAddress\": \"0x8dd3b9bc6f6179b8e251b8f56b2e417e74e5227e\",\n \"item\": {\n \"type\": \"TOKEN\",\n \"chain\": \"Polygon\",\n \"tokenAddress\": \"0x162539172b53e9a93b7d98fb6c41682de558a320\",\n \"amount\": 1000\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.flipsuite.xyz/v1/community/tipping/transfers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"channelId\": \"1234567890123456789\",\n \"recipientAddress\": \"0x8dd3b9bc6f6179b8e251b8f56b2e417e74e5227e\",\n \"item\": {\n \"type\": \"TOKEN\",\n \"chain\": \"Polygon\",\n \"tokenAddress\": \"0x162539172b53e9a93b7d98fb6c41682de558a320\",\n \"amount\": 1000\n }\n}"
response = http.request(request)
puts response.read_bodyHeaders
Your community API key
Body
application/json
ID of a Discord channel in your server where the transfer should be sent.
Pattern:
^\d+$Wallet address to send the assets to.
Maximum string length:
128Token or NFT to transfer.
- Token
- NFT
Show child attributes
Show child attributes
Note that will be shown on the "Transfer successful" message.
Maximum string length:
256Whether to hide the public "Transfer successful" channel notification after sending the asset.
Response
201
Transfer has been executed successfully
⌘I