Create Signature
buildRFQOrder
Parameters
Function
buildRFQOrder({
id,
expiresInTimestamp,
takerAssetAddress,
makerAssetAddress,
takerAddress,
makerAddress = ZERO_ADDRESS,
takerAmount,
makerAmount,
feeAmount,
feeTokenAddress,
frontendAddress,
}: RFQOrderData): RFQOrder
Example response
{
"info":"30469414559710884007278495962",
"feeAmount":"1000000000000000000",
"takerAsset":"0xb63b211f1dB545C04829CA0a3E7D8313711E7eA9",
"makerAsset":"0xca3e951D17C520B42ED98482b1f8B6478D4531E2",
"feeTokenAddress":"0x65e3E8A0218F56858DDD669eF2B2e42f928749cD",
"frontendAddress":"0x98C3CEC32166936672A75FD7D85ad92eb5178D84",
"takerAssetData":"0x23b872dd000000000000000000000000da0dd31b18c6babc35e7d59f94fae7a180594c7b00000000000000000000000098c3cec32166936672a75fd7d85ad92eb5178d840000000000000000000000000000000000000000000000000000000000989680",
"makerAssetData":"0x23b872dd00000000000000000000000098c3cec32166936672a75fd7d85ad92eb5178d84000000000000000000000000da0dd31b18c6babc35e7d59f94fae7a180594c7b00000000000000000000000000000000000000000000000578a51c037e9d8260"
}
buildRFQOrderTypedData
Parameters
Function
buildRFQOrderTypedData(order: RFQOrder): EIP712TypedData { }
Example response
{
"primaryType":"OrderRFQ",
"types":{
"EIP712Domain":[
{
"name":"name",
"type":"string"
},
{
"name":"version",
"type":"string"
},
{
"name":"chainId",
"type":"uint256"
},
{
"name":"verifyingContract",
"type":"address"
}
],
"OrderRFQ":[
{
"name":"info",
"type":"uint256"
},
{
"name":"feeAmount",
"type":"uint256"
},
{
"name":"takerAsset",
"type":"address"
},
{
"name":"makerAsset",
"type":"address"
},
{
"name":"feeTokenAddress",
"type":"address"
},
{
"name":"frontendAddress",
"type":"address"
},
{
"name":"takerAssetData",
"type":"bytes"
},
{
"name":"makerAssetData",
"type":"bytes"
}
]
},
"domain":{
"name":"1inch Limit Order Protocol",
"version":"1",
"chainId":1,
"verifyingContract":"0x592281754AAe7252ae4A6e730eCe05303C839914"
},
"message":{
"info":"30469414559710884007278495962",
"feeAmount":"1000000000000000000",
"takerAsset":"0xb63b211f1dB545C04829CA0a3E7D8313711E7eA9",
"makerAsset":"0xca3e951D17C520B42ED98482b1f8B6478D4531E2",
"feeTokenAddress":"0x65e3E8A0218F56858DDD669eF2B2e42f928749cD",
"frontendAddress":"0x98C3CEC32166936672A75FD7D85ad92eb5178D84",
"takerAssetData":"0x23b872dd000000000000000000000000da0dd31b18c6babc35e7d59f94fae7a180594c7b00000000000000000000000098c3cec32166936672a75fd7d85ad92eb5178d840000000000000000000000000000000000000000000000000000000000989680",
"makerAssetData":"0x23b872dd00000000000000000000000098c3cec32166936672a75fd7d85ad92eb5178d84000000000000000000000000da0dd31b18c6babc35e7d59f94fae7a180594c7b00000000000000000000000000000000000000000000000578a51c037e9d8260"
}
}
buildOrderSignature
Parameters
Function
buildOrderSignature(
walletAddress: string,
typedData: EIP712TypedData
): Promise<LimitOrderSignature> { }
Example response
"0xb538830093c54b03f338d28e7e93905071560ca91a97bb4907bb5d29cb4367f7367147978fc3688449271f79d763759835f46b6b536685a7d9de0b6b1666c1d51b"
Last updated