community.lbry.lbry_account_send (0.1.1) — module

Send the same number of credits to multiple addresses from a specific account (or default account).

| "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

Send the same number of credits to multiple addresses from a specific account (or default account).

This module is not idempotent.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  - name: Transfer 2.0 LBC to a new address
    community.lbry.lbry_account_send:
      addresses:
        - address1
      amount: '2.0'
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  - name: Transfer 2.0L LBC to each address - 6.0 total
    community.lbry.lbry_account_send:
      addresses:
        - address1
        - address2
        - address3
      amount: '2.0'

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

amount:
    description:
    - Amount of credits to send.
    - Note that the total amount sent will be amount * number of addresses.
    type: str

preview:
    description:
    - do not broadcast the transaction.
    type: bool

blocking:
    description:
    - wait until tx has synced
    type: bool

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

addresses:
    aliases:
    - address
    description:
    - Address to send credits to.
    elements: str
    required: true
    type: list

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

account_id:
    description:
    - account to fund the send.
    - default account will be used if none specified.
    type: str

Outputs

msg:
  description: A short message describing what happened.
  returned: always
  sample: A new address was generated
  type: str
result:
  description: Return dictionary from lbrynet givign details of the transaction.
  returned: on success
  type: dict