POST
/
credit
/
new
curl --request POST \
  --url https://api.openformat.tech/v1/credit/new \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "chain": "arbitrum-sepolia",
  "app_id": "0x9716fb655f2a72b1fc1b4db02b8ad20b6747442a",
  "token_name": "My Credit Token",
  "token_symbol": "CRED",
  "token_decimals": 18,
  "token_supply": 123
}'
{
  "success": true,
  "unsignedTransaction": {
    "to": "0x014b680bed2433b1861239cf812dbe660fe339f2",
    "data": "0x609512c90000000000000000000000009574e9ba92cb0966c9d2ff1a9ab9e11949b9b873000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000de0b6b3a7640000647261676f6e5f736c6179656400000000000000000000000000000000000000414354494f4e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000",
    "maxPriorityFeePerGas": "1020840008",
    "maxFeePerGas": "1035102698",
    "gas": "476358",
    "gasLimit": "476358",
    "nonce": 36,
    "chainId": 31337,
    "type": 2
  }
}
{
  "success": true,
  "unsignedTransaction": {
    "to": "0x014b680bed2433b1861239cf812dbe660fe339f2",
    "data": "0x609512c90000000000000000000000009574e9ba92cb0966c9d2ff1a9ab9e11949b9b873000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb922660000000000000000000000000000000000000000000000000de0b6b3a7640000647261676f6e5f736c6179656400000000000000000000000000000000000000414354494f4e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000",
    "maxPriorityFeePerGas": "1020840008",
    "maxFeePerGas": "1035102698",
    "gas": "476358",
    "gasLimit": "476358",
    "nonce": 36,
    "chainId": 31337,
    "type": 2
  }
}

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"

app_id
string
required

Ethereum address of the application

Example:

"0x9716fb655f2a72b1fc1b4db02b8ad20b6747442a"

token_name
string
required

Token name

Required string length: 1 - 512
Example:

"My Credit Token"

token_symbol
string
required

Token symbol

Required string length: 1 - 512
Example:

"CRED"

token_supply
number
required

Token initial supply amount

Required range: x >= 0
Example:

123

token_decimals
integer
default:18

Token decimals

Required range: x >= 0
Example:

18

Response

200
application/json
Unsigned transaction to sign
success
boolean
required

Success response

Example:

true

unsignedTransaction
any | null

Unsigned transaction object for the user to sign