Remote Data Ocean#

class defichain.transactions.remotedata.RemoteDataOcean(source: Ocean)#
get_unspent(address: str) [{}]#

Contains all needed information about the unspent input of an address

Parameters:

address – the address to list the unspent from

Returns:

[{txid: …, vout: …, value: …, scriptPubKey: …}, …]

check_masternode(masternodeId: str) bool#

Returns True if the given masternode exists and is Pre-Enabled, Enabled or Pre-Resigned

Parameters:

masternodeId (str) – txid of the creation of the masternode

Returns:

bool

test_tx(hex: str, maxFeeRate: float | None = None) bool#

Test the given raw transaction

Parameters:
  • hex – raw transaction

  • maxFeeRate – maximum fee rate to pay

Returns:

bool

send_tx(hex: str, maxFeeRate: float | None = None) str#

Sends the given raw transaction to the blockchain

Parameters:
  • hex – raw transaction

  • maxFeeRate – maximum fee rate to pay

Returns:

txid