CreateOffer
post
Authorizations
Path parameters
accountstringRequired
Header parameters
AuthorizationstringRequired
Body
Represents the input body for an OpenSea NFT transaction.
tostringOptional
The recipient address.
valuestringOptional
The value to be sent in the transaction.
datastringOptional
The data to be sent in the transaction.
noncestringOptional
The nonce of the transaction.
gasstringOptional
The gas limit for the transaction.
gasPricestringOptional
The gas price for the transaction.
chainIdstringOptional
The chain ID of the blockchain network.
dryrunbooleanOptional
Indicates if the transaction is a dry run.
broadcastbooleanOptional
Indicates if the transaction should be broadcasted.
assetstring · enumRequiredPossible values:
The asset involved in the transaction.
startAmountnumber · doubleRequired
The starting amount for the offer.
expirationTimenumber · doubleOptional
The expiration time of the offer (optional).
Responses
200
Ok
application/json
post
POST //opensea/{account}/createOffer HTTP/1.1
Host: beta.usemoon.ai
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 185
{
"to": "text",
"value": "text",
"data": "text",
"nonce": "text",
"gas": "text",
"gasPrice": "text",
"chainId": "text",
"dryrun": true,
"broadcast": true,
"asset": "ETH",
"startAmount": 1,
"expirationTime": 1
}
200
Ok
{
"success": true,
"message": "text",
"data": null
}