Skip to content

Error: Incorrect padding #224

Description

@algoarrayone

Following is my code.

from dydx3 import Client
from web3 import Web3
from pprint import pprint
from datetime import datetime, timedelta
from dydx3.constants import API_HOST_SEPOLIA

ETHEREUM_ADDRESS = "0x31e221e887e8Df2e199fddd337B3a0dDff088D6d"
ETH_PRIVATE_KEY = "0x0000000000000000000000000000000000000000000000000000000"

STARK_PRIVATE_KEY = "05f02655252949ef04887d14fa28fd394461a100cee9ded5a9d31ff552930a9f"
DYDX_API_KEY = "4400776c-fc51-34af-93d7-747cdbb24627"
DYDX_API_SECRET = "1Xv-RYJyOO_PRnA0sC5WpxA5kwdGu9GmUyMhOUL"
DYDX_API_PASSPHRASE = "Ue9LuYqMxEAZ02OQmHp6"
HOST = API_HOST_SEPOLIA

HTTP_PROVIDER = "https://eth-sepolia.g.alchemy.com/v2/QW8oPlBILbZSf7ypLSt4r0bzwBwyKgTM"

client = Client(
    host=HOST,
    api_key_credentials={
        "key": DYDX_API_KEY,
        "secret": DYDX_API_SECRET,
        "passphrase": DYDX_API_PASSPHRASE,
    },
    stark_private_key=STARK_PRIVATE_KEY,
    eth_private_key=ETH_PRIVATE_KEY,
    default_ethereum_address=ETHEREUM_ADDRESS,
    web3=Web3(Web3.HTTPProvider(HTTP_PROVIDER))
)

print(client.private.get_account().data)

When I try to print get_account().data, the error generated as "Incorrect padding". What it means?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions