Skip to content

Commit

Permalink
Add Data Transaction Code Sample
Browse files Browse the repository at this point in the history
Demonstrate how to perform a DataTransaction (Type 12)
  • Loading branch information
James authored Oct 10, 2018
1 parent 8e712ca commit bf18216
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,21 @@ transfers = [
address = pw.Address(privateKey = "CtMQWJZqfc7PRzSWiMKaGmWFm4q2VN5fMcYyKDBPDx6S")
address.massTransferAssets(transfers, pw.Asset('9DtBNdyBCyViLZHptyF1HbQk73F6s7nQ5dXhNHubtBhd'))
```
#### Data Transaction:
```python
import pywaves as py

myAddress = py.Address(privateKey='CtMQWJZqfc7PRzSWiMKaGmWFm4q2VN5fMcYyKDBPDx6S')

data = [{
'type':'string',
'key': 'test',
'value':'testval'
}]

myAddress.dataTransaction(data)

```
#### Token airdrop:
```python
import pywaves as pw
Expand Down

0 comments on commit bf18216

Please sign in to comment.