The API wrapper written in Python that allows you to communicate with Essentia bridges RESTful APIs in pythonic way.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
essentia_bridges
.gitignore
AUTHORS.txt
LICENSE
README.md Fix import statements (#9) Aug 21, 2018
requirements.txt Bump requests from 2.18.4 to 2.19.1 (#11) Sep 8, 2018
setup.py

README.md

essentia-bridges-api

The API wrapper written in Python that allows you to communicate with Essentia bridges RESTful APIs in pythonic way.

Release Python36

Getting started

Install and update using pip3:

$ pip3 install essentia-bridges-api

Simple usage of the library introduced below:

>>> from essentia_bridges import EssentiaBridges
>>> essentia_bridges = EssentiaBridges()
>>> address = '0xb563Dde324fa9842E74bbf98571e9De4FD5FE9bA'
>>> essentia_bridges.wallets.ethereum.get_balance(address=address)
{
    "result": {
        "balance": 0.07724806191011209
    }
}

If you want to specify custom host and/or port (by default public Essentia bridge is using), follow the example:

>>> from essentia_bridges import EssentiaBridges
>>> essentia_bridges = EssentiaBridges()
>>> EssentiaBridges(host='https://b3.essentia.network', port=443)
>>> EssentiaBridges(host='https://b3.essentia.network')

API

Wallets

Bitcoin wallet

Get balance of the wallet — essentia_bridges.wallets.bitcoin.get_balance

Arguments Type Required Description
address String Yes Address to get balance from.
>>> address = '16DWEqF6pX314CjV5u2dmiMhcXtyY6z7od'
>>> essentia_bridges.wallets.bitcoin.get_balance(address=address)
{
    "result": {
        "balance": 0.0001487
    }
}

Get Unspent Transaction Outputs (UTXO) of the wallet — essentia_bridges.wallets.bitcoin.get_utxo

Arguments Type Required Description
address String Yes Address to get UTXO from.
>>> address = '16DWEqF6pX314CjV5u2dmiMhcXtyY6z7od'
>>> essentia_bridges.wallets.bitcoin.get_utxo(address=address)
[
    {
        "address": "16DWEqF6pX314CjV5u2dmiMhcXtyY6z7od",
        "amount": 0.0001,
        "confirmations": 1069,
        "height": 535953,
        "satoshis": 10000,
        "scriptPubKey": "76a9143936070b1eded9950affc4444953c2bb1e5abce388ac",
        "txid": "114f959a873041e87095fc71472b42debdc6780d3ac33dea8e7d6830977643ce",
        "vout": 0
    },
    {
        "address": "16DWEqF6pX314CjV5u2dmiMhcXtyY6z7od",
        "amount": 4.87e-05,
        "confirmations": 1079,
        "height": 535943,
        "satoshis": 4870,
        "scriptPubKey": "76a9143936070b1eded9950affc4444953c2bb1e5abce388ac",
        "txid": "e5bd8354909df8fc31828ced8a9121f70afa7f507e330860a8d5d9f11bc47430",
        "vout": 1
    }
]

Send raw transaction hash to blockchain — essentia_bridges.wallets.bitcoin.send_transaction

Arguments Type Required Description
raw_transaction_hash String Yes Signed raw transaction hash to send to blockchain.
>>> raw_transaction_hash = '0100000001c5d33f8bd2cf21b42fa1b1a2993a94cdd93abaa886fe1e265...'
>>> essentia_bridges.wallets.bitcoin.send_transaction(raw_transaction_hash=raw_transaction_hash)
{
    "txid": "fb20f41645dd057b365a67f4b1a0d900a26b6a93be5245e954b838aafa44ce9d"
}

Get transactions history of the wallet — essentia_bridges.wallets.bitcoin.get_transactions_history

Arguments Type Required Description
address String Yes Address to get transactions history from.
>>> address = '16DWEqF6pX314CjV5u2dmiMhcXtyY6z7od'
>>> essentia_bridges.wallets.bitcoin.get_transactions_history(address=address)
{
    "from": 0,
    "items": [
        {
            "blockhash": "00000000000000000011d372aabbef58d8fa45f960c4dfdeada3615f6e689afa",
            "blockheight": 535953,
            "blocktime": 1533833303,
            "confirmations": 1069,
            "fees": 0.00029999,
            "locktime": 0,
            "size": 519,
            "time": 1533833303,
            "txid": "114f959a873041e87095fc71472b42debdc6780d3ac33dea8e7d6830977643ce",
            "valueIn": 0.00169,
            "valueOut": 0.00139001,
            "version": 1,
            "vin": [
                {
                    "addr": "1B5K2VtjsMyfiZ1JncgSznKGiKiZayYRPc",
                    "doubleSpentTxID": null,
                    "n": 0,
                    "scriptSig": {
                        "asm": "304402204e32cfb1db89f020a7adc155fbeba4f65c4af57ba8a11c70db0cb456a2f5
                        6770022045e34cd2f203bbd413c375572834fc60a5d1ab6023fc410a01c9526e1c235f74[ALL]
                        031abb8bbf4a0513d18be9830808647e985267e576b503456788c6d271adefebda",
                        "hex": "47304402204e32cfb1db89f020a7adc155fbeba4f65c4af57ba8a11c70db0cb456a2f
                        56770022045e34cd2f203bbd413c375572834fc60a5d1ab6023fc410a01c9526e1c235f740121
                        031abb8bbf4a0513d18be9830808647e985267e576b503456788c6d271adefebda"
                    },
                    "sequence": 4294967295,
                    "txid": "e5bd8354909df8fc31828ced8a9121f70afa7f507e330860a8d5d9f11bc47430",
                    "value": 0.0001,
                    "valueSat": 10000,
                    "vout": 0
                },
                {
                    "addr": "1B5K2VtjsMyfiZ1JncgSznKGiKiZayYRPc",
                    "doubleSpentTxID": null,
                    "n": 1,
                    "scriptSig": {
                        "asm": "304402201ecb1961fb8b7482540fc06eedacf6e4383a3efa7f171d997b722e452446
                        a3c40220504d8571cee62998937f60014ef7a125c1c3b3913984bab1c5fc694b4fc97023[ALL]
                        031abb8bbf4a0513d18be9830808647e985267e576b503456788c6d271adefebda",
                        "hex": "47304402201ecb1961fb8b7482540fc06eedacf6e4383a3efa7f171d997b722e45244
                        6a3c40220504d8571cee62998937f60014ef7a125c1c3b3913984bab1c5fc694b4fc970230121
                        031abb8bbf4a0513d18be9830808647e985267e576b503456788c6d271adefebda"
                    },
                    "sequence": 4294967295,
                    "txid": "2524bb0d9af29798b73ac2a0a92be80bc6e93aaffebfe070ea750a95b38093f2",
                    "value": 0.00149,
                    "valueSat": 149000,
                    "vout": 1
                },
                {
                    "addr": "1B5K2VtjsMyfiZ1JncgSznKGiKiZayYRPc",
                    "doubleSpentTxID": null,
                    "n": 2,
                    "scriptSig": {
                        "asm": "3044022040e766c0b2b9cab69f2aaa4c2c88d078489570cc8ade642f862ba79e7d05
                        c1d00220250b37e60345c109e5ded2191229c1726b53339fe2eaa4fa23f68fb4277ad34f[ALL]
                        031abb8bbf4a0513d18be9830808647e985267e576b503456788c6d271adefebda",
                        "hex": "473044022040e766c0b2b9cab69f2aaa4c2c88d078489570cc8ade642f862ba79e7d0
                        5c1d00220250b37e60345c109e5ded2191229c1726b53339fe2eaa4fa23f68fb4277ad34f0121
                        031abb8bbf4a0513d18be9830808647e985267e576b503456788c6d271adefebda"
                    },
                    "sequence": 4294967295,
                    "txid": "e2e6ff331a10ee80fd698e2d5aa3ef2c22999be5e13f93755b2c5aa0a7dcb200",
                    "value": 0.0001,
                    "valueSat": 10000,
                    "vout": 0
                }
            ],
            "vout": [
                {
                    "n": 0,
                    "scriptPubKey": {
                        "addresses": [
                            "16DWEqF6pX314CjV5u2dmiMhcXtyY6z7od"
                        ],
                        "asm": "OP_DUP OP_HASH160 3936070b1eded9950affc4444953c2bb1e5abce3 OP_EQUALVERIFY OP_CHECKSIG",
                        "hex": "76a9143936070b1eded9950affc4444953c2bb1e5abce388ac",
                        "type": "pubkeyhash"
                    },
                    "spentHeight": null,
                    "spentIndex": null,
                    "spentTxId": null,
                    "value": "0.00010000"
                },
                {
                    "n": 1,
                    "scriptPubKey": {
                        "addresses": [
                            "1B5K2VtjsMyfiZ1JncgSznKGiKiZayYRPc"
                        ],
                        "asm": "OP_DUP OP_HASH160 6e81f8092d4b5b5a20d7257d042b0b170b5056cc OP_EQUALVERIFY OP_CHECKSIG",
                        "hex": "76a9146e81f8092d4b5b5a20d7257d042b0b170b5056cc88ac",
                        "type": "pubkeyhash"
                    },
                    "spentHeight": 536575,
                    "spentIndex": 0,
                    "spentTxId": "fb91cec2bdfd2f390f171d649b04518480c7cdd0b6b7de9d4f8a615d7e7f0181",
                    "value": "0.00129001"
                }
            ]
        },
        ...
    ]
}

Get information of the particular transaction of the wallet — essentia_bridges.wallets.bitcoin.get_transaction_information

Arguments Type Required Description
transaction_hash String Yes Transaction hash.
>>> transaction_hash = 'b7b707244f0b56a49ea9339b6a70c589f24bdacbb20d850f55e3bb855f386c87'
>>> essentia_bridges.wallets.bitcoin.get_transaction_information(transaction_hash=transaction_hash)
{
    "blockhash": "0000000000000000001a71f184d147b59a3ef170e094a9c2c435faffa6ce2262",
    "blockheight": 518607,
    "blocktime": 1523964387,
    "confirmations": 18417,
    "fees": 0.0005,
    "locktime": 0,
    "size": 225,
    "time": 1523964387,
    "txid": "b7b707244f0b56a49ea9339b6a70c589f24bdacbb20d850f55e3bb855f386c87",
    "valueIn": 0.00714,
    "valueOut": 0.00664,
    "version": 1,
    "vin": [
        {
            "addr": "1MoRmwmoA1cFSuePCGJV6UWLTmcxaBBKfW",
            "doubleSpentTxID": null,
            "n": 0,
            "scriptSig": {
                "asm": "3044022035500343804d3c08dbbe8a6168865c044a53da5ba06158e4a013b03481d6f
                f2502207a73e65e4c9f0402861b69f9387a64bebb2cf8c0ecb5038603588290f273289e[ALL]
                0388c1c8e2bd42c9e40888f2373d69b0627925da9da8246765857a8f1283d32ddd",
                "hex": "473044022035500343804d3c08dbbe8a6168865c044a53da5ba06158e4a013b03481d
                6ff2502207a73e65e4c9f0402861b69f9387a64bebb2cf8c0ecb5038603588290f273289e0121
                0388c1c8e2bd42c9e40888f2373d69b0627925da9da8246765857a8f1283d32ddd"
            },
            "sequence": 4294967295,
            "txid": "e54c10f1749ba2cc73e8f4cd07e64565846e3ebe90032e5bbd1870f1cfb3a8a8",
            "value": 0.00714,
            "valueSat": 714000,
            "vout": 1
        }
    ],
    "vout": [
        {
            "n": 0,
            "scriptPubKey": {
                "addresses": [
                    "1PGEjYqbk8CzmsFdRXQSwfAtZ7ieRWaAtA"
                ],
                "asm": "OP_DUP OP_HASH160 f434788d260a2d5665008e9912b76afa64d4c9cd OP_EQUALVERIFY OP_CHECKSIG",
                "hex": "76a914f434788d260a2d5665008e9912b76afa64d4c9cd88ac",
                "type": "pubkeyhash"
            },
            "spentHeight": null,
            "spentIndex": null,
            "spentTxId": null,
            "value": "0.00010000"
        },
        {
            "n": 1,
            "scriptPubKey": {
                "addresses": [
                    "1MoRmwmoA1cFSuePCGJV6UWLTmcxaBBKfW"
                ],
                "asm": "OP_DUP OP_HASH160 e42a54ba2042e889461c7966ac6ba13eeb144a3f OP_EQUALVERIFY OP_CHECKSIG",
                "hex": "76a914e42a54ba2042e889461c7966ac6ba13eeb144a3f88ac",
                "type": "pubkeyhash"
            },
            "spentHeight": 525948,
            "spentIndex": 1,
            "spentTxId": "f3bc1022a05b6687b55d92361457ae7ee2299238a09aa99572e615cf9682ed9c",
            "value": "0.00654000"
        }
    ]
}

Ethereum wallet

Get balance of the wallet — essentia_bridges.wallets.ethereum.get_balance

Arguments Type Required Description
address String Yes Address to get balance from.
>>> address = '0xb563Dde324fa9842E74bbf98571e9De4FD5FE9bA'
>>> essentia_bridges.wallets.ethereum.get_balance(address=address)
{
    "result": {
        "balance": 0.07724806191011209
    }
}

Get information of the particular transaction of the wallet — essentia_bridges.wallets.ethereum.get_transaction_information

Arguments Type Required Description
transaction_hash String Yes Transaction hash.
>>> transaction_hash = '0x86e03096f808820404c62dea12c7c59cdc74fdbd9020b0d71c8aba39b4a143bb'
>>> essentia_bridges.wallets.ethereum.get_transaction_information(transaction_hash=transaction_hash)
{
    "result": {
        "blockHash": "0x91a823e7c029d78ea1d46fd8aad5e8b631683a11c2ee5582f0ea5c845fbf5e64",
        "blockNumber": "0x5c23e0",
        "from": "0xb563dde324fa9842e74bbf98571e9de4fd5fe9ba",
        "gas": "0x5208",
        "gasPrice": "0x28fa6ae00",
        "hash": "0x86e03096f808820404c62dea12c7c59cdc74fdbd9020b0d71c8aba39b4a143bb",
        "input": "0x",
        "nonce": "0x73",
        "r": "0xe25959a60754de7d5480ce6cdfaa4eba3512e17c88811ca73cbbbbb67343e63b",
        "s": "0x530f09c33dbd90ac12be34b3eaea394476a88cbde85f63942d466e583a99ad9",
        "to": "0x4aa548d7589f003486892777cbb0b70dff5d6949",
        "transactionIndex": "0x76",
        "v": "0x25",
        "value": "0xaa87bee538000"
    }
}

Send raw transaction hash to blockchain — essentia_bridges.wallets.ethereum.send_transaction

Arguments Type Required Description
raw_transaction_hash String Yes Signed raw transaction hash to send to blockchain.
>>> raw_transaction_hash = '0xf86b7485028fa6ae00825208944aa548d7589f003486892777cbb..'
>>> essentia_bridges.wallets.ethereum.send_transaction(raw_transaction_hash=raw_transaction_hash)
{
    "result": "0x9d8c5483c25a26a69b6b3b831ce68a917d1dec22a56882c4ea84a0d5ff14785c"
}

Get transactions count of the wallet — essentia_bridges.wallets.ethereum.get_transactions_count

Arguments Type Required Description
address String Yes Address to get transactions count from.
>>> address = '0xb563Dde324fa9842E74bbf98571e9De4FD5FE9bA'
>>> essentia_bridges.wallets.ethereum.get_transactions_count(address=address)
{
    "result": 153
}

Get gas price — essentia_bridges.wallets.ethereum.get_gas_price

>>> essentia_bridges.wallets.ethereum.get_gas_price()
{
    "result": 1.8
}

Get gas limit estimate — essentia_bridges.wallets.ethereum.get_gas_limit_estimate

Arguments Type Required Description
address_from String Yes Address to transfer from.
address_to String Yes Address to get estimate for.
data String No Arbitrary message of transaction. By default is "0x".
>>> address_from = '0xb563Dde324fa9842E74bbf98571e9De4FD5FE9bA'
>>> address_to = '0x4aa548d7589f003486892777cbb0b70dff5d6949'
>>> essentia_bridges.wallets.ethereum.get_gas_limit_estimate(address_from=address_from, address_to=address_to)
{
    "result": 21000
}

Get block number — essentia_bridges.wallets.ethereum.get_block_number

>>> essentia_bridges.wallets.ethereum.get_block_number()
{
    "result": 6062378
}

Get smart-contracts count — essentia_bridges.wallets.ethereum.get_smart_contracts_count

Arguments Type Required Description
address String Yes Address to get smart-contracts count from.
data String Yes Arbitrary message of transaction. By default is "0x".
>>> address = '0x8f0921f30555624143d427b340b1156914882c10'
>>> data = '0x70a082310000000000000000000000002f5059f64D5C0c4895092D26CDDacC58751e0C3C'
>>> essentia_bridges.wallets.ethereum.get_smart_contracts_count(address=address, data=data)
{
    "result": "0x0000000000000000000000000000000000000000000000006b9785ba97df3eed"
}

Get receipt of transaction — essentia_bridges.wallets.ethereum.get_receipt

Arguments Type Required Description
transaction_hash String Yes Transaction hash.
>>> transaction_hash = '0x73d53064c302af6ea1038273183e8da70b87f35cdd70e133b3e96225d3834c1c'
>>> essentia_bridges.wallets.ethereum.get_receipt(transaction_hash=transaction_hash)
{
    "result": {
        "blockHash": "0xac9bec5ba838618a8abd6152eeda25cb4d47511a038d7ba9e17dded924d725ce",
        "blockNumber": "0x5df6e2",
        "contractAddress": null,
        "cumulativeGasUsed": "0x4c2740",
        "from": "0xb563dde324fa9842e74bbf98571e9de4fd5fe9ba",
        "gasUsed": "0x5208",
        "logs": [],
        "logsBloom": "0x000000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000000000000000000000
        0000000000000000000000000000000000000000000000000000000000000000000000000000000000
        000000000000000000000000000000000000",
        "status": "0x1",
        "to": "0x4aa548d7589f003486892777cbb0b70dff5d6949",
        "transactionHash": "0x73d53064c302af6ea1038273183e8da70b87f35cdd70e133b3e96225d3834c1c",
        "transactionIndex": "0x83"
    }
}

Litecoin wallet

Get balance of the wallet — essentia_bridges.wallets.litecoin.get_balance

Arguments Type Required Description
address String Yes Address to get balance from.
>>> address = 'LTNJvXUJeRi41DJuEg5V3zWRhUisC3KUtF'
>>> essentia_bridges.wallets.litecoin.get_balance(address=address)
{
    "result": {
        "balance": 0.00099999
    }
}

Get Unspent Transaction Outputs (UTXO) of the wallet — essentia_bridges.wallets.litecoin.get_utxo

Arguments Type Required Description
address String Yes Address to get UTXO from.
>>> address = 'LTNJvXUJeRi41DJuEg5V3zWRhUisC3KUtF'
>>> essentia_bridges.wallets.litecoin.get_utxo(address=address)
{
    "address": "LTNJvXUJeRi41DJuEg5V3zWRhUisC3KUtF",
    "amount": 0.00099999,
    "confirmations": 1647,
    "height": 1473441,
    "satoshis": 99999,
    "scriptPubKey": "76a9145955949e5acb12cba1cb7582c7b98eba6cdbf24b88ac",
    "txid": "963c2cea7f47061481ba00417d85494c70c7176bf7309b4210d3c7428b361470",
    "vout": 1
}

Send raw transaction hash to blockchain — essentia_bridges.wallets.litecoin.send_transaction

Arguments Type Required Description
raw_transaction_hash String Yes Signed raw transaction hash to send to blockchain.
>>> raw_transaction_hash = '01000000016c0674df8d794f0b3fd8c960b30d3c18427728f73e78b052bd1..'
>>> bridges.wallets.litecoin.send_transaction(raw_transaction_hash=raw_transaction_hash)
{
    "txid": "3cbb038f6b21f09c9967a3d8b507ae996a0f17f4a8f665b8793e3b4a6e192c50"
}

Get transactions history of the wallet — essentia_bridges.wallets.litecoin.get_transactions_history

Arguments Type Required Description
address String Yes Address to get transactions history from.
>>> address = 'LTNJvXUJeRi41DJuEg5V3zWRhUisC3KUtF'
>>> essentia_bridges.wallets.litecoin.get_transactions_history(address=address)
{
    "totalItems": 32,
    "from": 0,
    "to": 32,
    "items": [
        {
            "txid": "963c2cea7f47061481ba00417d85494c70c7176bf7309b4210d3c7428b361470",
            "version": 1,
            "locktime": 0,
            "vin": [
                {
                    "txid": "ea5d2d51f07ab0a429dc8b9c4ac7976c60b954603b1afcc4686eb5c5b78e573d",
                    "vout": 1,
                    "sequence": 4294967295,
                    "n": 0,
                    "scriptSig": {
                        "hex": "473044022018e1fe94719700a326fc2d2ce677fabd53dae4ebbb049079a35c99da2f9a6ee9022002354745ae0a1182e0af87d6e773d1f08ae234635ee24278a3a403543a9bc1ec01210390f17964138b5b7d526e0df653e47c62b72c8fe2f6569e4dbecb853cd2512ab3",
                        "asm": "3044022018e1fe94719700a326fc2d2ce677fabd53dae4ebbb049079a35c99da2f9a6ee9022002354745ae0a1182e0af87d6e773d1f08ae234635ee24278a3a403543a9bc1ec[ALL] 0390f17964138b5b7d526e0df653e47c62b72c8fe2f6569e4dbecb853cd2512ab3"
                    },
                    "addr": "LTNJvXUJeRi41DJuEg5V3zWRhUisC3KUtF",
                    "valueSat": 1149999,
                    "value": 0.01149999,
                    "doubleSpentTxID": "None"
                }
            ],
            "vout": [
                {
                    "value": "0.01000000",
                    "n": 0,
                    "scriptPubKey": {
                        "hex": "76a914cf56a629660e236e88915ee72529f825cc9dfccc88ac",
                        "asm": "OP_DUP OP_HASH160 cf56a629660e236e88915ee72529f825cc9dfccc OP_EQUALVERIFY OP_CHECKSIG",
                        "addresses": [
                            "Le8FwQRwpZR2nS9VXsn4KdintfpLCxEhk9"
                        ],
                        "type": "pubkeyhash"
                    },
                    "spentTxId": "None",
                    "spentIndex": "None",
                    "spentHeight": "None"
                },
                {
                    "value": "0.00099999",
                    "n": 1,
                    "scriptPubKey": {
                        "hex": "76a9145955949e5acb12cba1cb7582c7b98eba6cdbf24b88ac",
                        "asm": "OP_DUP OP_HASH160 5955949e5acb12cba1cb7582c7b98eba6cdbf24b OP_EQUALVERIFY OP_CHECKSIG",
                        "addresses": [
                            "LTNJvXUJeRi41DJuEg5V3zWRhUisC3KUtF"
                        ],
                        "type": "pubkeyhash"
                    },
                    "spentTxId": "None",
                    "spentIndex": "None",
                    "spentHeight": "None"
                }
            ],
            "blockhash": "29f8f76b331ac2d7be1478fc1d732807259d5778cbd7ef3474155e03920a9a81",
            "blockheight": 1473441,
            "confirmations": 1668,
            "time": 1534167772,
            "blocktime": 1534167772,
            "valueOut": 0.01099999,
            "size": 225,
            "valueIn": 0.01149999,
            "fees": 0.0005
        },
        ...
    ]
}

Get information of the particular transaction of the wallet — essentia_bridges.wallets.litecoin.get_transaction_information

Arguments Type Required Description
transaction_hash String Yes Transaction hash.
>>> transaction_hash = '5d61a2bd067081fe792e703baf28cbb8bbee137e043909d0fd5a7ccddff87ce4'
>>> essentia_bridges.wallets.litecoin.get_transaction_information(transaction_hash=transaction_hash)
{
    "blockhash": "730919fe24ee4a5daa27c0690ab1b197914b4f7e5a6c90b35ce74041a5930dbb",
    "blockheight": 1474586,
    "blocktime": 1534343622,
    "confirmations": 2,
    "fees": 0.01061571,
    "locktime": 0,
    "size": 226,
    "time": 1534343622,
    "txid": "5d61a2bd067081fe792e703baf28cbb8bbee137e043909d0fd5a7ccddff87ce4",
    "valueIn": 9.59987334,
    "valueOut": 9.58925763,
    "version": 1,
    "vin": [
        {
            "addr": "LTRJDsRDhxu1FD3qdNDr5oPK1qGHBuLTZW",
            "doubleSpentTxID": null,
            "n": 0,
            "scriptSig": {
                "asm": "3045022100a2c0147eeda8478a2468eb9f4ffa58418ad787da59c1c2bbdfb980a0b1fc3a1e02201c6b88424ccf589d2eeea94177744062a27541002bd4dfdbf891f948bcfd9ac5[ALL] 03ae0081f0b150b23c35ea80609064903db39c758cf504f4c7b6add6a64ca9836a",
                "hex": "483045022100a2c0147eeda8478a2468eb9f4ffa58418ad787da59c1c2bbdfb980a0b1fc3a1e02201c6b88424ccf589d2eeea94177744062a27541002bd4dfdbf891f948bcfd9ac5012103ae0081f0b150b23c35ea80609064903db39c758cf504f4c7b6add6a64ca9836a"
            },
            "sequence": 4294967295,
            "txid": "e1018d12bdceaf90b6bcc7091e1ed71fbf72839db4a9fb06987ce1877c94bf7d",
            "value": 9.59987334,
            "valueSat": 959987334,
            "vout": 0
        }
    ],
    "vout": [
        {
            "n": 0,
            "scriptPubKey": {
                "addresses": [
                    "Ld8PiAcP88mrCjzpbPwZwRxk8ae492J8x4"
                ],
                "asm": "OP_DUP OP_HASH160 c46502c5059c3971516a25195ae08e9128fe1dd8 OP_EQUALVERIFY OP_CHECKSIG",
                "hex": "76a914c46502c5059c3971516a25195ae08e9128fe1dd888ac",
                "type": "pubkeyhash"
            },
            "spentHeight": null,
            "spentIndex": null,
            "spentTxId": null,
            "value": "4.07153000"
        },
        {
            "n": 1,
            "scriptPubKey": {
                "addresses": [
                    "LSvLY6WcMPHvvLaW6A2n7BwA3zAkWrHWbJ"
                ],
                "asm": "OP_DUP OP_HASH160 546c1cbac0c236944ba46ff9827ddc1a748e76a8 OP_EQUALVERIFY OP_CHECKSIG",
                "hex": "76a914546c1cbac0c236944ba46ff9827ddc1a748e76a888ac",
                "type": "pubkeyhash"
            },
            "spentHeight": null,
            "spentIndex": null,
            "spentTxId": null,
            "value": "5.51772763"
        }
    ]
}

Third-party

Get Ethereum gas price for Gas Stationessentia_bridges.wallets.third_party.ethereum.get_gas_price

>>> essentia_bridges.wallets.third_party.ethereum.get_gas_price()
{
    "result": {
        "Fast": 4,
        "Average": 1.8,
        "SafeLow": 1.8
    }
}