POST
/
credit
/
permit-data
curl --request POST \
  --url https://api.openformat.tech/v1/credit/permit-data \
  --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
}'
{
  "success": true,
  "permitData": {
    "nonce": "123",
    "domainSeparator": "0x193363de76294f014e224981928e1e2fae58895ff731778504e61d93fc4805e8",
    "deadline": 1700766991,
    "hashToSign": "0x67a58ea20b44c0f6984a58efdd57b171fa1717dfc7cbe193dc22f5af64cd9c67"
  }
}
{
  "success": true,
  "permitData": {
    "nonce": "123",
    "domainSeparator": "0x193363de76294f014e224981928e1e2fae58895ff731778504e61d93fc4805e8",
    "deadline": 1700766991,
    "hashToSign": "0x67a58ea20b44c0f6984a58efdd57b171fa1717dfc7cbe193dc22f5af64cd9c67"
  }
}

Authorizations

X-API-KEY
string
header
required

Body

application/json
chain
string
required

Blockchain network to use

Required string length: 1 - 255
Example:

"arbitrum-sepolia"

token_id
string
required

Ethereum address of the credit token

Example:

"0xd1f09c70f6f2838a3ab6209c1465af68594667ec"

holder_address
string
required

Ethereum address of the user that holds the credit tokens

Example:

"0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266"

receiver_address
string
required

Ethereum address of the user that will receive cthe redit tokens

Example:

"0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266"

amount
number
required

Amount of credit tokens to transfer

Required range: x > 0
Example:

123

Response

200
application/json
Permit Data
success
boolean
required

Successful response

Example:

true

permitData
object
required