community.lbry.lbry_address_unused (0.1.1) — module

Return an address containing no balance.

| "added in version" 1.0.0 of community.lbry"

Authors: Rhys Campbell (@rhysmeister)

Install collection

Install with ansible-galaxy collection install community.lbry:==0.1.1


Add to requirements.yml

  collections:
    - name: community.lbry
      version: 0.1.1

Description

Return an address containing no balance.

Will create a new address if there is none.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create a new address for the default account.
  community.lbry.lbry_address_unused:
  register: result
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create a new address using a specific account
  community.lbry.lbry_address_unused:
    account_id: mitfZTqgeHFGKPTPVUVNFV2e6TqiZEN8x3
  register: result
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create a new address using a specific account & wallet
  community.lbry.lbry_address_unused:
    account_id: mitfZTqgeHFGKPTPVUVNFV2e6TqiZEN8x3
    wallet_id: 1ExAmpLe0FaBiTco1NADr3sSV5tsGaMF6hd
  register: result
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Parse the resulting address into a variable
  set_fact:
    my_new_address: result.address

Inputs

    
host:
    aliases:
    - login_host
    default: 127.0.0.1
    description:
    - The LBRY SDK Server Hostname.
    type: str

port:
    aliases:
    - login_port
    default: 5279
    description:
    - The LBRY SDK Server Port.
    type: int

debug:
    default: false
    description:
    - Enable additional debug output.
    type: bool

protocol:
    default: http
    description:
    - The LBRY SDK Server Protocol.
    type: str

wallet_id:
    description:
    - Restrict operation to specific wallet.
    type: str

account_id:
    description:
    - account to use for holding the transaction
    type: str

Outputs

address:
  description: An address that can be used to send lbry credits to.
  returned: on success
  sample: mnTXc8Neq7uhhQJyXDMPfi99QN54PpusFs
  type: str
msg:
  description: A short message describing what happened.
  returned: always
  sample: A new address was generated
  type: str