community.lbry.lbry_account_fund (0.1.1) — module

Transfer LBC from one account to another.

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

Transfer LBC from one account to another.

Transfer some amount (or --everything) to an account from another account (can be the same account).

Amounts are interpreted as LBC.

This module is not idempotent.


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

amount:
    description:
    - the amount to transfer lbc.
    type: str

outputs:
    default: 1
    description:
    - split payment across many outputs.
    type: int

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

broadcast:
    default: false
    description:
    - actually broadcast the transaction.
    type: bool

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

everything:
    default: false
    description:
    - transfer everything (excluding claims).
    type: bool

to_account:
    description:
    - send to this account.
    type: str

from_account:
    description:
    - spend from this account.
    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