Guest User

Untitled

a guest
Apr 26th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. from __future__ import print_function
  2. import time
  3. import swagger_client
  4. from swagger_client.rest import ApiException
  5. from pprint import pprint
  6. import bitcoin
  7.  
  8. api_instance = swagger_client.TestnetNTP1Api()
  9. body = swagger_client.IssueTokenRequest(issue_address = "TUfp4Ss95xaKQPNGpbiZDsMPe4NR16CDiL", amount = float(100000000), divisibility = float(0),fee = float(1000030000), reissuable = True,
  10. metadata= {
  11. "tokenName": "SEPT2",
  12. "issuer": "Septio2",
  13. "description": "SeptioTest2"
  14. }) # IssueTokenRequest | Object representing the token to be created
  15.  
  16. try:
  17. # Builds a transaction that issues a new NTP1 Token
  18. api_response = api_instance.testnet_issue_token(body)
  19. pprint(api_response)
  20. except ApiException as e:
  21. print("Exception when calling TestnetNTP1Api->testnet_issue_token: %sn" % e)
  22.  
  23. #web3.eth.accounts.signTransaction(Raw_transaction, private_key);
  24.  
  25. private_key = "blablablabla"
  26. HEX = api_response.tx_hex
  27. What_is_it = 1
  28. signed_tx= bitcoin.sign(tx=HEX, what_is_it, priv=private_key)
Add Comment
Please, Sign In to add comment