Skip to content

Instantly share code, notes, and snippets.

@JAC-02
Created September 5, 2022 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JAC-02/7527d46312034cf53b0f5c94cb270d15 to your computer and use it in GitHub Desktop.
Save JAC-02/7527d46312034cf53b0f5c94cb270d15 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": []
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"cell_type": "code",
"source": [
"trx_hash = HelloWorld.constructor().transact({'gas': 111111})\n",
"print(trx_hash)"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "cTfVkj2SUI0-",
"outputId": "098579f8-f14e-4a07-a719-807ca6671dae"
},
"execution_count": 52,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"b'l\\xc8)\\xa5N\\xea\\xd5~M_\\x9b\\xcc\\x9f\\r\\xa0OmB[\\xc0B58U\\x00\\xd7.\\xad)\\xce\\x86{'\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"tx_receipt =w3.eth.wait_for_transaction_receipt(trx_hash)\n",
"\n",
"print(tx_receipt)"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "k8To8rUoXuau",
"outputId": "8251ebf2-15c3-468d-8f78-7432380010da"
},
"execution_count": 53,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"AttributeDict({'gasUsed': 21000, 'logs': [], 'transactionHash': HexBytes('0x6cc829a54eead57e4d5f9bcc9f0da04f6d425bc04235385500d72ead29ce867b'), 'cumulativeGasUsed': 21000, 'effectiveGasPrice': 1000000000, 'type': '0x2', 'contractAddress': '0xa0Beb7081fDaF3ed157370836A85eeC20CEc9e04', 'blockNumber': 6, 'blockHash': HexBytes('0x9326b61304326c8464a36460a71892619d00c83856255eaceb3fea61b16a15a0'), 'from': '0xaBbACadABa000000000000000000000000000000', 'state_root': b'\\x00', 'status': 0, 'to': '', 'transactionIndex': 0})\n"
]
}
]
},
{
"cell_type": "code",
"source": [],
"metadata": {
"id": "WUScJ7prZjnO"
},
"execution_count": null,
"outputs": []
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment