Filter undefined values (#105)

filter out fields with undefined values
This commit is contained in:
Nathan Nichols
2020-09-08 17:17:14 -05:00
parent 2c99932c3c
commit a5559825ae
6 changed files with 69 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ Decode a hex-string into a transaction object.
```
### encode(json: object): string
Encode a transaction object into a hex-string.
Encode a transaction object into a hex-string. Note that encode filters out fields with undefined values.
```js
> api.encode({
LedgerEntryType: 'AccountRoot',