Nsure.Network
Search…
Purchase Signature
https://api.nsure.network/v1/sign
post
https://api.nsure.network/v1
/sign
Sign data example
{
domain: {
name: 'sign',
chainId: 1,
},
message: {
account:"0x....000", // user addr
currencyType:0, // Payment asset type
amount: "0", // Insured ETH amount (unit: wei)
period:30, // Insurance period (unit: day, 30~365)
product:0, //Insurance product id
nonce:"0", // nonce
deadline:1607680924304
},
primaryType: 'sign',
types: {
EIP712Domain: [
{name: 'name', type: 'string'},
{name: 'chainId', type: 'uint256'},
],
sign: [
{
name: 'product',
type: 'uint256'
},
{
name: 'account',
type: 'address'
},
{
name: 'amount',
type: 'uint256'
},
{
name: 'currencyType',
type: 'uint256'
},
{
name: 'period',
type: 'uint256'
},
{
name: 'nonce',
type: 'uint256'
},
{
name: 'deadline',
type: 'uint256'
}
],
}
}
Last modified 1yr ago
Copy link