Credit
Profile
Leaderboard
Webhook
Webhook Secret
Credit
Transfer Credit Token
This is endpoint receives transfer information, a permit signature and returns an unsigned transaction that executes the transfer. Permit data is obtained by calling the Request Permit Data endpoint and it is signed using the private key of the token holder. Transfer information needs to match the used to generate the permit. The unsigned transaction should be signed using your private key and can be broadcasted using Execute Transaction or Execute Transaction and Wait endpoints.
POST
/
credit
/
transfer
Copy
curl --request POST \
--url https://api.openformat.tech/v1/credit/transfer \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"chain": "arbitrum-sepolia",
"token_id": "0xd1f09c70f6f2838a3ab6209c1465af68594667ec",
"holder_address": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266",
"receiver_address": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266",
"amount": 123,
"deadline": 1700766991,
"signedPermit": {
"r": "0xab26c603cc459019835a3872bf1d8b4142f23c40f952f208e8c1dfacf857b9f0",
"s": "0x61d6e5f463437afd2a541fb88d806f8e71718a6af5227043be06b0dd59b3503f",
"v": 28
}
}'
Copy
{
"success": true,
"unsignedTransaction": {
"to": "0x014b680bed2433b1861239cf812dbe660fe339f2",
"data": "0x609512c90000000000000000000000009574e9ba92cb0966c9d2ff1a9ab9e11949b9b873000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000de0b6b3a7640000647261676f6e5f736c6179656400000000000000000000000000000000000000414354494f4e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000",
"maxPriorityFeePerGas": "1020840008",
"maxFeePerGas": "1035102698",
"gas": "476358",
"gasLimit": "476358",
"nonce": 36,
"chainId": 31337,
"type": 2
}
}
Copy
{
"success": true,
"unsignedTransaction": {
"to": "0x014b680bed2433b1861239cf812dbe660fe339f2",
"data": "0x609512c90000000000000000000000009574e9ba92cb0966c9d2ff1a9ab9e11949b9b873000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000de0b6b3a7640000647261676f6e5f736c6179656400000000000000000000000000000000000000414354494f4e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000",
"maxPriorityFeePerGas": "1020840008",
"maxFeePerGas": "1035102698",
"gas": "476358",
"gasLimit": "476358",
"nonce": 36,
"chainId": 31337,
"type": 2
}
}
Authorizations
Body
application/json
Response
200
application/json
Transfer transaction to sign
The response is of type object
.
Copy
curl --request POST \
--url https://api.openformat.tech/v1/credit/transfer \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '{
"chain": "arbitrum-sepolia",
"token_id": "0xd1f09c70f6f2838a3ab6209c1465af68594667ec",
"holder_address": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266",
"receiver_address": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266",
"amount": 123,
"deadline": 1700766991,
"signedPermit": {
"r": "0xab26c603cc459019835a3872bf1d8b4142f23c40f952f208e8c1dfacf857b9f0",
"s": "0x61d6e5f463437afd2a541fb88d806f8e71718a6af5227043be06b0dd59b3503f",
"v": 28
}
}'
Copy
{
"success": true,
"unsignedTransaction": {
"to": "0x014b680bed2433b1861239cf812dbe660fe339f2",
"data": "0x609512c90000000000000000000000009574e9ba92cb0966c9d2ff1a9ab9e11949b9b873000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000de0b6b3a7640000647261676f6e5f736c6179656400000000000000000000000000000000000000414354494f4e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000",
"maxPriorityFeePerGas": "1020840008",
"maxFeePerGas": "1035102698",
"gas": "476358",
"gasLimit": "476358",
"nonce": 36,
"chainId": 31337,
"type": 2
}
}
Assistant
Responses are generated using AI and may contain mistakes.