Credit
Create an allowance
This is endpoint returns an unsigned transaction that pre-approves a spender_address
account to transfer a specified amount of tokens from the holder_address
account. Once you sign this transaction, using your private key held in your local environment variables, you can broadcast it using the Execute Transaction endpoint; or if you prefer to wait for confirmation using the Execute Transaction and Wait endpoint.
POST
/
credit
/
approve
Authorizations
X-API-KEY
string
headerrequiredBody
application/json
chain
string
requiredBlockchain network to use
Required string length:
1 - 255
token_id
string
requiredEthereum address of the credit token
holder_address
string
requiredEthereum address of the token holder account
spender_address
string
requiredEthereum address of the spender account
amount
number
requiredAmount of credit tokens to approve
Required range:
x > 0
Response
200 - application/json
success
boolean
requiredSuccess response
unsignedTransaction
any | null
Unsigned transaction object for the user to sign