Lease Transactions

POST /leasing/lease

master
Creates lease transaction.
Request params
1
"sender" - Sender address, Base58-encoded
2
"fee" - Amount of transaction fee
3
"amount" - amount of leased LTO
Copied!
Request JSON example
1
{
2
"sender" : "3HgqG68qfeVz5dqbyvqnxQceFaH49xmGvUS",
3
"fee" : 500000000,
4
"amount" : 500000000,
5
"recipient" : "address:3HQanDJhZSsSLbCjTCsMYpPvuj2ieGwKwQ9"
6
}
Copied!
Response JSON example
1
{
2
"type":8,
3
"id":"9q7X84wFuVvKqRdDQeWbtBmpsHt9SXFbvPPtUuKBVxxr",
4
"sender":"3MtrNP7AkTRuBhX4CBti6iT21pQpEnmHtyw",
5
"senderPublicKey":"G6h72icCSjdW2A89QWDb37hyXJoYKq3XuCUJY2joS3EU",
6
"fee":100000000,
7
"timestamp":46305781705234713,
8
"signature":"4gQyPXzJFEzMbsCd9u5n3B2WauEc4172ssyrXCL882oNa8NfNihnpKianHXrHWnZs1RzDLbQ9rcRYnSqxKWfEPJG"
9
}
Copied!

POST /leasing/cancel

master
Creates lease cancel transaction.
Request params
1
"sender" - Sender address, Base58-encoded
2
"fee" - Amount of transaction fee
3
"leaseId" - lease id for cancel
Copied!
Request JSON example
1
{
2
"sender" : "3HgqG68qfeVz5dqbyvqnxQceFaH49xmGvUS",
3
"fee" : 500000000,
4
"leaseId" : "CYPYhYe9M94t958Nsa3DcYNBZTURwcFgQ3ojyjwEeZiK"
5
}
Copied!
Response JSON example
1
{
2
"type" : 9,
3
"id" : "895ryYABK7KQWLvSbw8o8YSjTTXHCqRJw1yzC63j4Fgk",
4
"sender" : "3HgqG68qfeVz5dqbyvqnxQceFaH49xmGvUS",
5
"senderPublicKey" : "DddGQs63eWAA1G1ZJnJDVSrCpMS97NH4odnggwUV42kE",
6
"fee" : 500000000,
7
"timestamp" : 1495625418143,
8
"signature" : "2SUmFj4zo7NfZK7Xoqvqh7m7bhzFR8rT7eLtqe9Rrp18ugFH9SSvoTx1BtekWhU7PN1uLrnQCpJdS8JhmcBAjmb9",
9
"leaseId" : "CYPYhYe9M94t958Nsa3DcYNBZTURwcFgQ3ojyjwEeZiK"
10
}
Copied!
Last modified 1mo ago