Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Counstruction metadata #96

Merged
merged 11 commits into from
Jan 24, 2025
Merged

Counstruction metadata #96

merged 11 commits into from
Jan 24, 2025

Conversation

piotr-iohk
Copy link
Collaborator

Addressing #90.

$ curl -X POST 'http://localhost:3000/construction/metadata' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
  "network_identifier": {
        "blockchain": "mina",
        "network": "testnet"
  },
  "options": {
        "sender": "B62qkUHaJUHERZuCHQhXCQ8xsGBqyYSgjQsKnKN5HhSJecakuJ4pYyk",
        "receiver": "B62qoDWfBZUxKpaoQCoFqr12wkaY84FrhxXNXzgBkMUi2Tz4K8kBDiv",
        "token_id": "1",
        "valid_until": "200000",
        "memo": "hello"
  }
}'|jq
....
{
  "metadata": {
    "memo": "hello",
    "nonce": "3",
    "receiver": "B62qoDWfBZUxKpaoQCoFqr12wkaY84FrhxXNXzgBkMUi2Tz4K8kBDiv",
    "sender": "B62qkUHaJUHERZuCHQhXCQ8xsGBqyYSgjQsKnKN5HhSJecakuJ4pYyk",
    "token_id": "1",
    "valid_until": "200000"
  },
  "suggested_fee": [
    {
      "value": "1000000",
      "currency": {
        "symbol": "MINA",
        "decimals": 9
      },
      "metadata": {
        "minimum_fee": {
          "currency": {
            "decimals": 9,
            "symbol": "MINA"
          },
          "value": "1000000"
        }
      }
    }
  ]
}

@piotr-iohk piotr-iohk self-assigned this Jan 23, 2025
@piotr-iohk piotr-iohk force-pushed the counstruction_metadata branch from da691a0 to a76beda Compare January 24, 2025 12:15
@piotr-iohk piotr-iohk merged commit 79d32ed into main Jan 24, 2025
6 checks passed
@piotr-iohk piotr-iohk deleted the counstruction_metadata branch January 24, 2025 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants