Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from __future__ import print_function
- import time
- import swagger_client
- from swagger_client.rest import ApiException
- from pprint import pprint
- import bitcoin
- api_instance = swagger_client.TestnetNTP1Api()
- body = swagger_client.IssueTokenRequest(issue_address = "TUfp4Ss95xaKQPNGpbiZDsMPe4NR16CDiL", amount = float(100000000), divisibility = float(0),fee = float(1000030000), reissuable = True,
- metadata= {
- "tokenName": "SEPT2",
- "issuer": "Septio2",
- "description": "SeptioTest2"
- }) # IssueTokenRequest | Object representing the token to be created
- try:
- # Builds a transaction that issues a new NTP1 Token
- api_response = api_instance.testnet_issue_token(body)
- pprint(api_response)
- except ApiException as e:
- print("Exception when calling TestnetNTP1Api->testnet_issue_token: %sn" % e)
- #web3.eth.accounts.signTransaction(Raw_transaction, private_key);
- private_key = "blablablabla"
- HEX = api_response.tx_hex
- What_is_it = 1
- signed_tx= bitcoin.sign(tx=HEX, what_is_it, priv=private_key)
Add Comment
Please, Sign In to add comment