Send AUSD to anyone, gas paid by the relayer
curl --request POST \
--url https://api.matocard.xyz/sends \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"authorization": {
"from": "0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD",
"to": "0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD",
"value": "1000000",
"validAfter": "0",
"validBefore": "1791051600",
"nonce": "<string>",
"signature": "<string>"
}
}
'import requests
url = "https://api.matocard.xyz/sends"
payload = { "authorization": {
"from": "0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD",
"to": "0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD",
"value": "1000000",
"validAfter": "0",
"validBefore": "1791051600",
"nonce": "<string>",
"signature": "<string>"
} }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
authorization: {
from: '0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD',
to: '0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD',
value: '1000000',
validAfter: '0',
validBefore: '1791051600',
nonce: '<string>',
signature: '<string>'
}
})
};
fetch('https://api.matocard.xyz/sends', 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.matocard.xyz/sends",
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([
'authorization' => [
'from' => '0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD',
'to' => '0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD',
'value' => '1000000',
'validAfter' => '0',
'validBefore' => '1791051600',
'nonce' => '<string>',
'signature' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$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.matocard.xyz/sends"
payload := strings.NewReader("{\n \"authorization\": {\n \"from\": \"0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD\",\n \"to\": \"0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD\",\n \"value\": \"1000000\",\n \"validAfter\": \"0\",\n \"validBefore\": \"1791051600\",\n \"nonce\": \"<string>\",\n \"signature\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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.matocard.xyz/sends")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"authorization\": {\n \"from\": \"0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD\",\n \"to\": \"0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD\",\n \"value\": \"1000000\",\n \"validAfter\": \"0\",\n \"validBefore\": \"1791051600\",\n \"nonce\": \"<string>\",\n \"signature\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.matocard.xyz/sends")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"authorization\": {\n \"from\": \"0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD\",\n \"to\": \"0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD\",\n \"value\": \"1000000\",\n \"validAfter\": \"0\",\n \"validBefore\": \"1791051600\",\n \"nonce\": \"<string>\",\n \"signature\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"hash": "<string>"
}{
"error": "verify your identity first"
}{
"error": "verify your identity first"
}{
"error": "verify your identity first"
}{
"error": "verify your identity first"
}Money
Send AUSD to anyone, gas paid by the relayer
The sender signs an ERC-3009 transfer from their wallet to the recipient; the backend submits it and answers once it is mined. At most 50 per account per day. A reused nonce answers 400 with the contract’s error.
POST
/
sends
Send AUSD to anyone, gas paid by the relayer
curl --request POST \
--url https://api.matocard.xyz/sends \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"authorization": {
"from": "0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD",
"to": "0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD",
"value": "1000000",
"validAfter": "0",
"validBefore": "1791051600",
"nonce": "<string>",
"signature": "<string>"
}
}
'import requests
url = "https://api.matocard.xyz/sends"
payload = { "authorization": {
"from": "0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD",
"to": "0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD",
"value": "1000000",
"validAfter": "0",
"validBefore": "1791051600",
"nonce": "<string>",
"signature": "<string>"
} }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
authorization: {
from: '0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD',
to: '0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD',
value: '1000000',
validAfter: '0',
validBefore: '1791051600',
nonce: '<string>',
signature: '<string>'
}
})
};
fetch('https://api.matocard.xyz/sends', 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.matocard.xyz/sends",
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([
'authorization' => [
'from' => '0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD',
'to' => '0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD',
'value' => '1000000',
'validAfter' => '0',
'validBefore' => '1791051600',
'nonce' => '<string>',
'signature' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$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.matocard.xyz/sends"
payload := strings.NewReader("{\n \"authorization\": {\n \"from\": \"0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD\",\n \"to\": \"0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD\",\n \"value\": \"1000000\",\n \"validAfter\": \"0\",\n \"validBefore\": \"1791051600\",\n \"nonce\": \"<string>\",\n \"signature\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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.matocard.xyz/sends")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"authorization\": {\n \"from\": \"0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD\",\n \"to\": \"0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD\",\n \"value\": \"1000000\",\n \"validAfter\": \"0\",\n \"validBefore\": \"1791051600\",\n \"nonce\": \"<string>\",\n \"signature\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.matocard.xyz/sends")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"authorization\": {\n \"from\": \"0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD\",\n \"to\": \"0xC0519BE562f0De7E32e9A48e50AdecBAde605aAD\",\n \"value\": \"1000000\",\n \"validAfter\": \"0\",\n \"validBefore\": \"1791051600\",\n \"nonce\": \"<string>\",\n \"signature\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"hash": "<string>"
}{
"error": "verify your identity first"
}{
"error": "verify your identity first"
}{
"error": "verify your identity first"
}{
"error": "verify your identity first"
}Authorizations
Matocard <wallet>.<until>.<signature>, see the description at the top
Body
application/json
An ERC-3009 TransferWithAuthorization the sender signed (EIP-712, domain at the top). Numbers as decimal strings.
Show child attributes
Show child attributes
Response
Mined

