FireblocksSdk.Api.Contract (FireblocksSdk v0.1.4)

View Source

Summary

Functions

Adds an asset to an existing contract.

Creates a new contract.

Delete a contract

Delete a contract asset

Returns a contract asset by ID.

Returns a contract by id.

Gets a list of contracts.

Functions

add_asset(opts, idempotent_key \\ "")

Adds an asset to an existing contract.

  FireblocksSdk.Api.Contract.add_asset([
    contractId: "CONTRACT_ID",
    assetId: "ASSET_ID",
    address: "ADDRESS",
  ])

Options:

create(name, idempotent_key \\ "")

Creates a new contract.

delete(contract_id)

Delete a contract

delete_asset(contract_id, asset_id)

Delete a contract asset

find_contract_asset(contract_id, asset_id)

Returns a contract asset by ID.

get(contract_id)

Returns a contract by id.

list()

Gets a list of contracts.