Docs
chromia.com

Function

hasPendingCreateAccountTransferForStrategy

  • hasPendingCreateAccountTransferForStrategy(
        strategyName: string,
        senderBlockchainRid: BufferId,
        senderId: BufferId,
        recipientId: BufferId,
        assetId: BufferId,
        amount: bigint,
    ): QueryObject<
        boolean,
        {
            amount: bigint;
            asset_id: Buffer;
            recipient_id: Buffer;
            sender_blockchain_rid: Buffer;
            sender_id: Buffer;
            strategy_name: string;
        },
    >

    Creates a query object for the has_pending_create_account_transfer_for_strategy - query

    Parameters

    • strategyName: string

      the name of the strategy to check

    • senderBlockchainRid: BufferId

      the blockchain rid of the blockchain from which the pending transfer were sent

    • senderId: BufferId

      the id of the account from which the transfer originated

    • recipientId: BufferId

      the id of the account which the transfer is intended for

    • assetId: BufferId

      the id of the asset that was sent

    • amount: bigint

      how much of the asset was sent

    Returns QueryObject<
        boolean,
        {
            amount: bigint;
            asset_id: Buffer;
            recipient_id: Buffer;
            sender_blockchain_rid: Buffer;
            sender_id: Buffer;
            strategy_name: string;
        },
    >