[Docs] Improve escrow creation example to have ExecuteAfter date

This commit is contained in:
mDuo13
2017-12-18 10:23:54 -08:00
parent 7e5b9948a8
commit d22828b222
2 changed files with 6 additions and 3 deletions

View File

@@ -540,7 +540,8 @@ sourceTag | integer | *Optional* Source tag.
{ {
"destination": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo", "destination": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo",
"amount": "0.01", "amount": "0.01",
"allowCancelAfter": "2014-09-24T21:21:50.000Z" "allowExecuteAfter": "2014-09-24T21:21:50.000Z",
"allowCancelAfter": "2017-01-01T00:00:00.000Z"
} }
``` ```
@@ -3291,7 +3292,8 @@ const address = 'r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59';
const escrowCreation = { const escrowCreation = {
"destination": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo", "destination": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo",
"amount": "0.01", "amount": "0.01",
"allowCancelAfter": "2014-09-24T21:21:50.000Z" "allowExecuteAfter": "2014-09-24T21:21:50.000Z",
"allowCancelAfter": "2017-01-01T00:00:00.000Z"
}; };
return api.prepareEscrowCreation(address, escrowCreation).then(prepared => return api.prepareEscrowCreation(address, escrowCreation).then(prepared =>
{/* ... */}); {/* ... */});

View File

@@ -1,5 +1,6 @@
{ {
"destination": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo", "destination": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo",
"amount": "0.01", "amount": "0.01",
"allowCancelAfter": "2014-09-24T21:21:50.000Z" "allowExecuteAfter": "2014-09-24T21:21:50.000Z",
"allowCancelAfter": "2017-01-01T00:00:00.000Z"
} }